Skip to main content
Glama

Run a prepared write query

helix_execute_write_query
Destructive

Run the write query helix_prepare_write_query prepared: the same database and query_json, with its confirmation. A confirmation runs once, and the query is never retried.

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>",
      "confirmation_id": "<confirmation_id>",
      "confirmation_token": "<confirmation_token>"
    },
    "name": "helix_execute_write_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYesThe database helix_prepare_write_query prepared.
query_jsonYesThe query_json helix_prepare_write_query prepared, byte for byte.
confirmation_idYesThe confirmation_id helix_prepare_write_query returned.
confirmation_tokenYesThe confirmation_token helix_prepare_write_query returned.

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.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the description's job is to add context, and it does: a confirmation is single-use and the query is never retried, which tells the agent not to re-submit on failure. It stops short of naming what exactly is mutated or what permissions are needed, so it is strong but not exhaustive.

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?

Two sentences, no filler, with the core identification front-loaded and the single-use/no-retry caveat placed where it will be read. Nothing could be removed without losing information.

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?

Output schema exists, so return values need not be explained, and the description covers the handoff, the confirmation, and the no-retry rule. It could say more about failure modes or whether a failed write consumes the confirmation, but it is complete enough to invoke safely.

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% and every parameter is documented as a value returned by helix_prepare_write_query. The description reinforces that database and query_json must match what was prepared rather than adding new syntax or format meaning, so this is baseline territory.

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?

States a specific verb (run/execute) and resource (the write query previously prepared), and names the sibling that produces its inputs. It cleanly separates the execute phase from the helix_prepare_write_query phase so an agent can pick the right tool without reading 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?

Makes the prerequisite explicit: this runs a query that helix_prepare_write_query already prepared, and the same database/query_json plus a confirmation must be supplied. It does not discuss when to choose a read or admin alternative, but the prepare→execute pairing is clear enough to route correctly.

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