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

# Call Tool

> Execute a tool with the provided input parameters

Execute a tool with the provided input parameters. The tool's response format varies depending on the specific tool being called.

## Example

```bash theme={null}
curl -X POST "https://api.danubeai.com/v1/tools/call/abc123" \
  -H "danube-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool_input": {"limit": 5}}'
```


## OpenAPI

````yaml POST /tools/call/{tool_id}
openapi: 3.0.1
info:
  title: Danube API
  description: Tool discovery and execution platform for AI assistants
  version: 1.0.0
servers:
  - url: https://api.danubeai.com/v1
security: []
paths:
  /tools/call/{tool_id}:
    post:
      summary: Call Tool
      description: Execute a tool with the provided input parameters
      operationId: callTool
      parameters:
        - name: tool_id
          in: path
          description: The unique identifier of the tool to execute
          required: true
          schema:
            type: string
      requestBody:
        description: Tool input parameters
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolCallRequest'
      responses:
        '200':
          description: Tool execution result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolCallResponse'
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Tool not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded or usage limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageLimitError'
      security:
        - apiKey: []
components:
  schemas:
    ToolCallRequest:
      type: object
      properties:
        tool_input:
          type: object
          description: >-
            Input parameters for the tool (can also pass parameters directly at
            root level)
      example:
        tool_input:
          limit: 5
    ToolCallResponse:
      type: object
      description: Tool execution result - structure varies by tool
    Error:
      type: object
      properties:
        detail:
          type: string
          description: Error message
    UsageLimitError:
      type: object
      properties:
        detail:
          type: object
          properties:
            message:
              type: string
            usage:
              type: object
            upgrade_url:
              type: string
  securitySchemes:
    apiKey:
      type: apiKey
      name: danube-api-key
      in: header
      description: Your Danube API key

````