Skip to main content
Glama

Ask a Foundry ontology

helix_foundry_ask
Idempotent

Answer a question about a business from its Foundry ontology, with every claim citing the entities, facts, rows or document quotes it read: use it, in plain language, for questions about the user's customers, accounts, people, deals, documents or anything else their connected data holds. Waits up to 25 seconds; until the question is done, call helix_foundry_get_question. Each question counts against the workspace's hourly limit and monthly budget.

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": "<question>",
      "client_token": "<client_token>"
    },
    "name": "helix_foundry_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
focusNoThe entity the question is about.
load_idNoLoad to ask; the ontology's current load when empty.
questionYesThe question, in plain language.
valid_atNoAnswer as of this day, YYYY-MM-DD, not after today (UTC); empty for now. Entities are read as they were then and documents dated after it are left out; reads that can only show the load as it is now (queries, searches for entities) are refused, never answered as of now instead. A follow-up takes its thread's day; anyone who reads the load through grants can't ask as of a day.
thread_idNoA question's thread_id, to continue that conversation; empty starts a new one.
ontology_idYesFoundry ontology identifier.
client_tokenYesA unique string of at most 64 characters. The same token returns the same question instead of asking again, so a retry is safe.
workspace_idNoHelix workspace identifier. May be empty when the caller has only one workspace (a service key always does).
use_case_run_idNoAn open run of a use case (helix_foundry_start_use_case_run) to record this call under; empty for none.

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

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

Beyond the annotations, it discloses the async pattern (waits up to 25 seconds, poll via get_question), the citation-bearing answer format, and a real cost constraint (each question counts against the workspace's hourly limit and monthly budget) — the kind of operational context annotations cannot express. It does not explain why readOnlyHint is false for what reads as a query operation, nor what happens on timeout or budget exhaustion, leaving a small gap.

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 and domain are front-loaded in the first clause, followed by the async/polling note and then the cost caveat in descending order of importance. The first sentence is long and colon-chained, but every clause carries information an agent needs; there is no filler.

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?

An output schema exists, so return values need not be explained, and the description correctly focuses on invocation behavior: latency, polling, quota, and citation guarantees. For a 9-parameter, LLM-backed tool the remaining gaps (failure/timeout handling, cancel path, why it is non-read-only) are minor but real.

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 description coverage is 100%, so the schema already carries the meaning of focus, valid_at, thread_id, load_id, client_token and use_case_run_id. The description adds nothing parameter-specific — it never mentions time-travel (valid_at), conversation continuation (thread_id), or the idempotency token — so it sits at the baseline when the schema does the heavy lifting.

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?

The description opens with a specific verb+resource ("Answer a question about a business from its Foundry ontology") and immediately qualifies the output contract ("every claim citing the entities, facts, rows or document quotes it read"), which no sibling does. It also scopes the question domain (customers, accounts, people, deals, documents) so an agent can tell it apart from metadata tools like helix_foundry_get_ontology or helix_foundry_list_ontologies.

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?

It gives clear positive guidance — use it "in plain language, for questions about the user's customers, accounts, people, deals, documents or anything else their connected data holds" — and routes the agent to helix_foundry_get_question for polling until the answer is ready. It stops short of stating when not to use it (e.g. ontology metadata or entity lookups that other siblings cover) and does not mention helix_foundry_cancel_question as the abort path.

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