Spend Brake

v0.4.0
io.github.KIvanow/spend-brake Checked 11 hours ago Published 22 days ago

Capped search, maps and other paid APIs over MCP, with hard dollar limits per key.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

maps_nearby Places nearby search (capped)

Places Nearby Search around a point. Default field mask places.id,places.displayName,places.formattedAddress,places.location (Pro). A wider mask costs more. radius defaults to 500 metres.

ParameterTypeDescription
lat *stringLatitude
lng *stringLongitude
fieldsstringX-Goog-FieldMask. The default is the cheapest useful set; a wider mask costs more.
radiusintegerMetres. Default 500.
typearrayIncluded place types

maps_details Place details (capped)

Place Details. Default field mask id,formattedAddress,location,types (Essentials). A wider mask costs more.

ParameterTypeDescription
placeId *stringA Google place id
fieldsstringX-Goog-FieldMask. The default is the cheapest useful set; a wider mask costs more.

maps_geocode Geocode (capped)

Address to coordinates (Geocoding API). Charged against the spend cap.

ParameterTypeDescription
address *stringThe address

maps_reverse Reverse geocode (capped)

Coordinates to an address (Geocoding API). Charged against the spend cap.

ParameterTypeDescription
lat *stringLatitude
lng *stringLongitude

maps_route Route (capped)

Route between two places. Default field mask routes.duration,routes.distanceMeters (Essentials). mode defaults to drive. A wider mask costs more.

ParameterTypeDescription
destination *stringAddress, or "lat,lng"
origin *stringAddress, or "lat,lng"
fieldsstringX-Goog-FieldMask. The default is the cheapest useful set; a wider mask costs more.
modestring

brake_call Capped provider call

Any capped request the proxy prices: Mapbox, HERE, Twilio, Tavily extract, Exa contents, a custom API (provider "custom/<id>"), 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.

ParameterTypeDescription
method *string
path *stringPath on the provider, starting with /
provider *stringProxy 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,…
bodyJSON body. Pass the value, not @file.
headersobjectExtra headers. X-Brake-* is refused; the key comes from BRAKE_KEY.
queryobjectQuery parameters

brake_budget Remaining budget

Show the spend caps that apply to this key and what is left of each. Read-only: it cannot change a cap. Org, environment and SKU caps also apply and are not listed.