> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sidenet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update tool

> Updates a single tool (org-scoped via its provider). A `name` is normalised like on create — path punctuation (`/`, `{}`) stripped, and a name already used by ANOTHER tool in the provider disambiguated with the method and, if needed, a counter — so the saved name in the response may differ from the one sent. Reloads the org tools and rebuilds dependent agents.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/tools/{id}
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/tools/{id}:
    patch:
      tags:
        - Tools
      summary: Update tool
      description: >-
        Updates a single tool (org-scoped via its provider). A `name` is
        normalised like on create — path punctuation (`/`, `{}`) stripped, and a
        name already used by ANOTHER tool in the provider disambiguated with the
        method and, if needed, a counter — so the saved name in the response may
        differ from the one sent. Reloads the org tools and rebuilds dependent
        agents.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: c07f2b95-8d41-4e63-a029-5f7b1c8d3e40
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  example: Get customer
                description:
                  type: string
                  nullable: true
                  example: Fetches one customer by id
                method:
                  type: string
                  enum:
                    - GET
                    - POST
                    - PUT
                    - PATCH
                    - DELETE
                path:
                  type: string
                  minLength: 1
                  example: /customers/{customerId}
                input_schema:
                  type: object
                  additionalProperties: {}
                  nullable: true
                  example:
                    type: object
                    properties:
                      customerId:
                        type: string
                    required:
                      - customerId
                output_schema:
                  type: object
                  additionalProperties: {}
                  nullable: true
                  example:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                timeout_ms:
                  type: integer
                  minimum: 1000
                  maximum: 120000
                  example: 30000
                is_enabled:
                  type: boolean
                  example: true
                operation_id:
                  type: string
                  example: getCustomer
                tags:
                  type: array
                  items:
                    type: string
                  nullable: true
                  example:
                    - customers
                deprecated:
                  type: boolean
                  example: false
              additionalProperties: false
      responses:
        '200':
          description: The updated tool, and what rebuilding the agents that use it did
          content:
            application/json:
              schema:
                type: object
                properties:
                  tool:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      tool_provider_id:
                        type: string
                        format: uuid
                      name:
                        type: string
                        description: >-
                          Unique within the provider. May differ from what you
                          sent — path punctuation is stripped and a repeated
                          name is disambiguated with the method and a counter.
                      description:
                        type: string
                        nullable: true
                      method:
                        type: string
                      path:
                        type: string
                      input_schema:
                        type: object
                        nullable: true
                      output_schema:
                        type: object
                        nullable: true
                      timeout_ms:
                        type: integer
                        nullable: true
                      is_enabled:
                        type: boolean
                      operation_id:
                        type: string
                        nullable: true
                      tags:
                        type: array
                        nullable: true
                        items:
                          type: string
                      deprecated:
                        type: boolean
                        nullable: true
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                  rebuild:
                    type: object
                    properties:
                      scope:
                        type: string
                        description: >-
                          Which slice of the registry was reloaded: `custom`,
                          `mcp` or `all`.
                      tools:
                        type: object
                        properties:
                          affectedToolIds:
                            type: array
                            items:
                              type: string
                          totalToolIds:
                            type: integer
                            description: Tools in the org after the reload.
                          providerCounts:
                            type: object
                            properties:
                              api:
                                type: integer
                              mcp:
                                type: integer
                              other:
                                type: integer
                          mcpErrors:
                            type: array
                            description: >-
                              MCP providers that failed to connect or list tools
                              during the reload. They contributed ZERO tools —
                              an empty array is the healthy case.
                            items:
                              type: object
                              properties:
                                providerId:
                                  type: string
                                providerName:
                                  type: string
                                error:
                                  type: string
                      rebuilt:
                        type: integer
                        description: Agents rebuilt successfully.
                      failed:
                        type: integer
                        description: Agents that failed to rebuild. Non-zero is a problem.
                      skipped:
                        type: integer
                      agents:
                        type: array
                        items:
                          type: object
                      failedAgents:
                        type: array
                        description: >-
                          Present when `failed` is non-zero: which agents, and
                          why.
                        items:
                          type: object
                          properties:
                            agentVersionId:
                              type: string
                              format: uuid
                            mastraId:
                              type: string
                            error:
                              type: string
                      totalBuildTime:
                        type: integer
                        description: Milliseconds spent rebuilding.
        '400':
          description: Bad request
        '404':
          description: Not found
        '409':
          description: Name / method+path / operation_id already used in this provider
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````