POST
/
s
/
{client_id}
/
call_tool
curl --request POST \
  --url https://api.toolrouter.ai/s/{client_id}/call_tool \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tool_name": "exa_search",
  "tool_input": {
    "query": "What is toolrouter AI ?"
  }
}'
{
  "result": {
    "search_results": [
      {
        "title": "Toolrouter AI Platform",
        "content": "Toolrouter is an AI integration platform that helps connect various tools and services securely.",
        "url": "https://toolrouter.ai/about"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Enter your Stack token

Path Parameters

client_id
string
required

Client ID for authentication

Body

application/json
Tool execution details
tool_name
string
required

Name of the tool to execute

tool_input
object
required

Parameters for the tool execution, structure depends on the specific tool

Response

200
application/json
Tool execution result
result
object

The result of the tool execution