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

# Register Tool

> Register a tool definition.

Tools are stored as part of agent config. This endpoint
validates the tool schema and returns it for confirmation.
Actual attachment to an agent is done via PUT /v1/agents/:id.



## OpenAPI

````yaml /openapi.json post /v1/tools
openapi: 3.1.0
info:
  title: TurnCall
  description: Production voice agent platform API
  version: 0.1.0
servers: []
security: []
paths:
  /v1/tools:
    post:
      tags:
        - tools
      summary: Register Tool
      description: |-
        Register a tool definition.

        Tools are stored as part of agent config. This endpoint
        validates the tool schema and returns it for confirmation.
        Actual attachment to an agent is done via PUT /v1/agents/:id.
      operationId: register_tool_v1_tools_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterToolRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Register Tool V1 Tools Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RegisterToolRequest:
      properties:
        name:
          type: string
          maxLength: 128
          minLength: 1
          pattern: ^[a-z_][a-z0-9_]*$
          title: Name
        description:
          type: string
          maxLength: 1024
          minLength: 1
          title: Description
        parameters_schema:
          additionalProperties: true
          type: object
          title: Parameters Schema
        execution_mode:
          type: string
          pattern: ^(sync|async)$
          title: Execution Mode
          default: sync
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        timeout_seconds:
          type: integer
          maximum: 300
          minimum: 1
          title: Timeout Seconds
          default: 10
        max_retries:
          type: integer
          maximum: 5
          minimum: 0
          title: Max Retries
          default: 1
      type: object
      required:
        - name
        - description
      title: RegisterToolRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````