Skip to main content
Glama

Cancel a Foundry question

helix_foundry_cancel_question
Idempotent

Stop a queued or running Foundry question, so it spends no more of the workspace's question budget. A question that ended is returned as it is.

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": {
      "ontology_id": "<ontology_id>",
      "question_id": "<question_id>"
    },
    "name": "helix_foundry_cancel_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
ontology_idYesFoundry ontology identifier.
question_idYesThe question's id, as helix_foundry_ask returned it.
workspace_idNoHelix workspace identifier. May be empty when the caller has only one workspace (a service key always does).

Output Schema

NameRequiredDescriptionDefault
idYes
doneYes
errorNo
resultNoUntrusted answer: the ontology agent's AskResult, set once answered or cannot_answer. An integer past 2^53 comes as a string of its digits, which JSON numbers would round. Its queries come without their outputs: to see the rows one of the answer's visuals shows, read its query (queries[].query) again with helix_foundry_read_graph, as a query read on the question's load_id.
statusYes
load_idYes
attemptsYes
questionYes
valid_atNo
thread_idYes
created_atYes
usd_microsYes
finished_atNo
content_trustNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the mutation/idempotency profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), so the bar is lower; the description still adds real context by disclosing the no-op behavior for finished questions and the budget rationale. It does not say whether already-consumed budget is refunded or what permissions are required.

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 short sentences, front-loaded with the action and its effect, with the edge-case behavior appended. Nothing is redundant or padding.

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?

For a mutation tool with full annotations, complete param docs, and an output schema, the description covers purpose, consequence, and the terminated-question edge case. Only the budget-refund question and auth prerequisites remain unaddressed.

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 all three parameters are documented in-schema, including the note that workspace_id may be omitted for single-workspace callers. The description adds no parameter-level meaning, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb+resource ("Stop a queued or running Foundry question") plus the motivating effect on the workspace's question budget, which separates it from retrieval siblings like get_question or list_questions. It stops short of explicitly naming the sibling an agent would otherwise reach for.

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?

Gives clear usage context — cancel when a question is queued or running and you want it to stop consuming budget — and implicitly excludes already-terminated questions by saying they are returned unchanged. No explicit named alternative or when-not-to-use guidance beyond that.

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