Skip to main content
GET
/
user
/
tools
/
{id}
Get mid call tool
curl --request GET \
  --url https://app.autocalls.ai/api/user/tools/{id} \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>'
{
  "id": 1,
  "name": "get_weather",
  "description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
  "endpoint": "https://api.openweathermap.org/data/2.5/weather",
  "method": "GET",
  "timeout": 10,
  "headers": [
    {
      "name": "Content-Type",
      "value": "application/json"
    },
    {
      "name": "Authorization",
      "value": "Bearer sk_..."
    }
  ],
  "schema": [
    {
      "name": "city",
      "type": "string",
      "description": "The city name to get weather for"
    },
    {
      "name": "temperature",
      "type": "number",
      "description": "Current temperature value"
    },
    {
      "name": "is_raining",
      "type": "boolean",
      "description": "Whether it is currently raining"
    }
  ],
  "created_at": "2025-10-10T12:00:00.000000Z",
  "updated_at": "2025-10-10T12:00:00.000000Z"
}
This endpoint allows you to retrieve detailed information about a specific mid call tool.

Headers

Authorization
string
required
Bearer token for authentication
Content-Type
string
required
Must be application/json
Accept
string
required
Must be application/json

Path Parameters

id
integer
required
The unique identifier of the tool

Response fields

id
integer
The unique identifier of the tool
name
string
The name of the tool (lowercase with underscores)
description
string
Detailed explanation of when and how the AI should use this tool
endpoint
string
The API endpoint URL that will be called
method
string
HTTP method (GET, POST, PUT, PATCH, DELETE)
timeout
integer
Request timeout in seconds (1-30)
headers
array
HTTP headers to send with the request
schema
array
Parameters that the AI will extract and send to the endpoint
created_at
string
ISO 8601 timestamp when the tool was created
updated_at
string
ISO 8601 timestamp when the tool was last updated
{
  "id": 1,
  "name": "get_weather",
  "description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
  "endpoint": "https://api.openweathermap.org/data/2.5/weather",
  "method": "GET",
  "timeout": 10,
  "headers": [
    {
      "name": "Content-Type",
      "value": "application/json"
    },
    {
      "name": "Authorization",
      "value": "Bearer sk_..."
    }
  ],
  "schema": [
    {
      "name": "city",
      "type": "string",
      "description": "The city name to get weather for"
    },
    {
      "name": "temperature",
      "type": "number",
      "description": "Current temperature value"
    },
    {
      "name": "is_raining",
      "type": "boolean",
      "description": "Whether it is currently raining"
    }
  ],
  "created_at": "2025-10-10T12:00:00.000000Z",
  "updated_at": "2025-10-10T12:00:00.000000Z"
}

Assigning Tools to Assistants

To use this tool with an assistant, see:
I