Run JSONata
query_run_jsonataEvaluates a JSONata expression (https://jsonata.org) against an uploaded JSON file and returns the result. Call query_json_describe first to see the document's shape. Use this instead of reading the file when you need a filtered, mapped, or aggregated view rather than the whole document.
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": {
"expression": "<expression>",
"path": "<path>",
"context": "<context>"
},
"name": "query_run_jsonata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | VFS path of the JSON file to query, e.g. '/config/settings.json'. | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| expression | Yes | A JSONata expression, e.g. 'orders[total > 100].{"id": id, "total": total}'. | |
| workspace_id | No | Which workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace. | |
| output_format | No | Use 'table' if the user asked to see a visual report. Use 'csv' for large data transfers. Use 'json' if you need to process the data internally. | json |