call_endpoint
Execute any endpoint (e.g. search.google.web, search.google.news, web.extract.markdown, youtube.video.transcript) and return compact LLM-ready output (-80% context tokens).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_id": "<endpoint_id>"
},
"name": "call_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output compression format ("compact", "md", or "json"), e.g. "compact". | compact |
| params | No | Endpoint request arguments matching get_endpoint_schema, e.g. {"q":"MCP servers","limit":5}. | |
| endpoint_id | Yes | Target endpoint ID from search_endpoints, e.g. "search.google.web". | |
| max_cost_usd | No | Optional per-call USD ceiling, e.g. 0.005. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Normalized response object (or compact markdown string when format="md"). | |
| meta | Yes | Execution receipt (request_id, endpoint, cost_usd, tokens_est, cached). |