Run a read query
helix_execute_read_queryRun one read query on a Helix database and return its JSON response. query_json is a Helix v3 JSON request, such as {"request_type":"read","query":{"read":{"entries":[{"query":{"name":"users","root":{"count":{"input":{"nodes_where":{"predicate":{"eq":{"left":{"property":"$label"},"right":{"constant":{"string":"User"}}}}}}}}}}],"returns":["users"]}}} (how many User nodes there are). Datetime props are Helix DateTime: filter them with a date_time parameter (declared in parameter_types) or {"constant":{"date_time":}}; text never matches. Its grammar is at https://docs.helix-db.com/database/helix-db/core-concepts/overview.
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": {
"database": "<database>",
"query_json": "<query_json>"
},
"name": "helix_execute_read_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | The database: tenant:<id> or cluster:<id>, as helix_list_databases or a Foundry ontology's database names it. | |
| query_json | Yes | The complete Helix v3 JSON request, as a string: request_type read or write, and query holding one batch of that kind. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| response | Yes | Untrusted gateway response JSON value. | |
| status_code | Yes | ||
| content_type | No | ||
| content_trust | Yes |