Skip to main content
Glama

Prepare a write query

helix_prepare_write_query

Check a Helix v3 write query and return a one-time confirmation for exactly that query, valid for five minutes; helix_execute_write_query runs it. Preparing changes nothing.

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_prepare_write_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
expires_atYes
payload_hashYes
confirmation_idYes
confirmation_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds behavior the annotations do not carry: the confirmation is single-use, scoped to exactly the submitted query, and expires after five minutes. It also clarifies that despite readOnlyHint=false the call performs no data mutation, which resolves the ambiguity an agent would otherwise hit from the annotations alone.

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

Conciseness5/5

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

A single sentence, front-loaded with the action and result, then the sibling handoff and the non-mutating guarantee. Every clause carries distinct information with no repetition of the title or schema.

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

Completeness5/5

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

For a two-parameter preparation tool with an output schema, the description covers the lifecycle (validate → one-time token → five-minute TTL → execute elsewhere) and the safety profile. Return-value details are left to the output schema, which is the correct division of labor.

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

Parameters3/5

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

Schema coverage is 100%, so both `database` and `query_json` are already documented in the schema, including the accepted identifier forms and request shape. The description adds no further parameter meaning (e.g., whether the confirmation is bound to the database as well as the query), so the baseline 3 applies.

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?

Names a specific verb (check / prepare) and resource (a Helix v3 write query), and states the exact output: a one-time confirmation bound to that query. It explicitly separates its role from helix_execute_write_query, so an agent can route between the two without opening either schema.

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

Usage Guidelines4/5

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

"helix_execute_write_query runs it" establishes the prepare-then-execute two-phase flow clearly, and "Preparing changes nothing" signals safe pre-validation. It stops short of stating when not to use it — e.g., that read requests go through the read-query path and that admin or Foundry operations have their own prepare siblings — leaving a small inference gap.

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