json query
json_queryPull only the part you need out of a big JSON response, without loading it into your context: give a URL (or inline JSON, up to 1.5 MB) and a path, and get just the matches. Supports $.a.b, [0], [-1], [0:5], [*], ..key (any depth) and filters like [?(@.price>10)] or [?(@.name=~"usd")], plus fields= to keep only some keys and limit=. Returns bytes in vs out and the tokens saved. $0.003. Costs $0.003 USDC per call (x402).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "json_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | JSON endpoint to fetch | |
| json | No | or the JSON itself | |
| path | No | JSONPath, default $ | |
| limit | No | max 1000 | |
| fields | No | comma-separated keys to keep on each match |