SerpApi search (capped)
serpapi_searchRun a SerpApi search while enforcing a hard spend cap, returning the call's cost and remaining budget.
Instructions
Search with SerpApi. Each call is charged against a hard spend cap; the result shows its cost and the budget left. engine defaults to google.
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": {
"query": "<query>"
},
"name": "serpapi_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | Number of results | |
| query | Yes | What to search for | |
| engine | No | SerpApi engine. Default google. |