call_endpoint
Call a JustSerpAPI endpoint by ID with validated parameters to retrieve search results from Google, Maps, or Trends.
Instructions
Validate params and call a JustSerpAPI endpoint by endpoint_id. Params should use snake_case names from get_endpoint_schema.
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 |
|---|---|---|---|
| endpoint_id | Yes | ||
| params | No | ||
| max_items | No | ||
| idempotency_key | No | Optional Idempotency-Key. A random key is generated when omitted. |