Capped provider call
brake_callCall Mapbox, HERE, Twilio, or a custom API through the Spend Brake proxy so each request is priced and blocked before it exceeds your spend cap.
Instructions
Any capped request the proxy prices: Mapbox, HERE, Twilio, Tavily extract, Exa contents, a custom API (provider "custom/"), or a Maps call the named tools do not cover. This can select an expensive SKU. Prefer the named search and maps tools, which default to the cheap field set. Charged against the spend cap. No file reads.
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": {
"provider": "<provider>",
"method": "<method>",
"path": "<path>"
},
"name": "brake_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body. Pass the value, not @file. | |
| path | Yes | Path on the provider, starting with / | |
| query | No | Query parameters | |
| method | Yes | ||
| headers | No | Extra headers. X-Brake-* is refused; the key comes from BRAKE_KEY. | |
| provider | Yes | Proxy prefix: google-maps, google-places, google-routes, mapbox, brave, tavily, exa, serpapi, twilio, twilio-verify, here-geocode, here-revgeocode, here-discover, here-autosuggest, here-autocomplete, here-router, here-matrix, or custom/<id> |