Skip to main content
Glama

Run a read query

helix_execute_read_query
Read-onlyIdempotent

Run 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

NameRequiredDescriptionDefault
databaseYesThe database: tenant:<id> or cluster:<id>, as helix_list_databases or a Foundry ontology's database names it.
query_jsonYesThe complete Helix v3 JSON request, as a string: request_type read or write, and query holding one batch of that kind.

Output Schema

NameRequiredDescriptionDefault
databaseYes
responseYesUntrusted gateway response JSON value.
status_codeYes
content_typeNo
content_trustYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered; the description adds genuinely new behavior — that datetime properties must be filtered with a date_time parameter or a millisecond constant because text never matches. It also states the response is JSON. Pagination and result-size limits remain unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence and every later sentence carries real instruction (example, DateTime caveat, grammar link). The inline JSON example is bulky but illustrative, and the parenthetical explanation of it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return formatting needn't be specified, and the description covers the trickiest input pitfall (DateTime filtering) plus request structure. Only the when-to-use routing and the read/write request_type ambiguity keep it from being fully complete for a two-parameter query executor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, but the description materially exceeds it: it shows a full v3 request shape, explains what that example returns (count of User nodes), and flags the non-obvious DateTime filtering rule. The query_json schema blurb says request_type may be read or write, which the description does not reconcile with the read-only tool name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Run one read query on a Helix database and return its JSON response" gives a specific verb (run/read), resource (Helix query) and scope (exactly one read), and the read framing separates it from helix_execute_write_query by name alone. An agent can identify the operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word "read" implies usage context but the description never explicitly says when to pick this over helix_execute_write_query or helix_prepare_write_query, nor does it state exclusions. It spends its guidance budget on request-format instructions and a docs link rather than routing between tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources