call_tool
Runs one of your API's operations by name, in search mode. This performs the real API call, with every rule the operation's own tool would have: its permission, approval, limits and error guidance. An operation that asks first asks the user before the call is sent.
When it's listed
In search mode: when the tool mode is search, or auto and the server has more operation tools than the search threshold (40 unless you change it). They replace the operation tools in the list. See search and code mode.
Arguments
namestringrequiredThe operation's name, from search_tools.
argumentsobjectThe operation's arguments, matching the schema describe_tool showed.
Returns
The request line with its status, then the response body. A failed call returns the error with a guide to fixing it, and a declined approval says the user declined.
Hints
The annotations a client reads to decide what may run without asking the user.
| Hint | Value | When true, it means |
|---|---|---|
readOnlyHint | true when every listed operation reads, else false | It doesn't change anything |
destructiveHint | the opposite | It can change or delete data |
openWorldHint | true | It reaches outside the server, over the network |
Examples
Call an operation
Run in practice mode, so the answer is sample data and nothing was sent.
{
"name": "call_tool",
"arguments": {
"name": "getSubscription",
"arguments": {
"subscriptionId": "sub_7Kd02m"
}
}
}PRACTICE MODE: fake response built from the API's documentation. Nothing was sent to the API.
GET https://practice.octri.invalid/subscriptions/sub_7Kd02m → 200 OK
{"id":"sub_7Kd02m","object":"example_value","customer_id":"cus_4f8Qa1","product_id":"prod_Ax91","status":"trialing","quantity":1,"current_period_end":"2026-01-15T09:00:00Z","cancel_at_period_end":false,"created_at":"2026-01-15T09:00:00Z"}Related
- Search mode tools:
search_tools,describe_tool,list_tool_groups. - Search and code mode: when the server switches, and how to choose.
- Permissions and limits: the rules every call keeps.