> ## 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.

# Create tool

> Adds a tool to an existing API provider (must belong to the org and be type=api). MCP tools are auto-discovered and cannot be created here. Names are unique per provider: path punctuation (`/`, `{}`) is stripped, and a name already used in the provider is disambiguated with the method and, if needed, a counter ("Create a new article POST 2") — the saved name is in the response. Reloads the org tools and rebuilds dependent agents.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/tools
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:
    post:
      tags:
        - Tools
      summary: Create tool
      description: >-
        Adds a tool to an existing API provider (must belong to the org and be
        type=api). MCP tools are auto-discovered and cannot be created here.
        Names are unique per provider: path punctuation (`/`, `{}`) is stripped,
        and a name already used in the provider is disambiguated with the method
        and, if needed, a counter ("Create a new article POST 2") — the saved
        name is in the response. Reloads the org tools and rebuilds dependent
        agents.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool_provider_id:
                  type: string
                  format: uuid
                  example: 8d3b1a75-6c02-4e59-b84f-27a9d5e10c63
                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
                  default: GET
                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
              required:
                - tool_provider_id
                - name
                - path
              additionalProperties: false
      responses:
        '201':
          description: The saved 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: Provider 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.

````