Skip to main content
Glama

Read a Foundry graph

helix_foundry_read_graph
Read-onlyIdempotent

Look up exact records in a business's Foundry ontology: typed queries over its entities and facts, the evidence and source behind a fact, why a derived fact holds, and rule breaks, read from a load with its version's rules applied. 1 to 20 reads in one call; helix_foundry_read_guide gives their JSON Schema. An entity is named by its id as reads return it, its key's plain values (such as {"type": "Site", "key": "app.example.com"}) or a name.

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>",
      "reads": "<reads>"
    },
    "name": "helix_foundry_read_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
readsYes1 to 20 reads, each an object with exactly one key: entity, pattern, explain, violations, evidence or query. helix_foundry_read_guide returns their schema.
load_idNoLoad to read; the ontology's current load when empty.
valid_atNoRead as of this day, YYYY-MM-DD, not after today (UTC); empty for now. Evidence then leaves out quotes of documents dated after it or whose date couldn't be read, and rows the load didn't know by then, and flags an undated document's quote undated; reads that can only show the load as it is now (entity, pattern, explain, violations, query) are refused with current_only.
ontology_idYesFoundry ontology identifier.
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
resultYesUntrusted read result: one entry per read, in order. An integer past 2^53 comes as a string of its digits, which JSON numbers would round.
load_idYes
ontology_idYes
content_trustYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that reads come from a specific load with that version's rules applied, which is meaningful behavioral context, but it says nothing about result size, pagination, cost, or what happens when a requested read isn't available.

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?

Three sentences, front-loaded with the core capability, then batching and the schema pointer, then the entity-naming rule. The naming example is dense but earns its space; minor redundancy between the description's batching line and the 'reads' schema description.

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 values needn't be explained, and the combined description plus parameter docs cover load/version and valid_at semantics. The main gap is the absence of any practical framing for choosing among the six read kinds or sizing a batch when reads are expensive.

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 a 3, but the description goes beyond the schema on a genuinely underspecified point: the 'reads' array items are free-form objects with additionalProperties, and the description explains how an entity is named (id as returned, key's plain values with a concrete example, or a name). That adds real invocation guidance the schema cannot express.

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?

The description opens with a specific verb and resource ('look up exact records in a business's Foundry ontology') and enumerates what can be read: entities, facts, evidence/source, derivation reasons, and rule breaks. It differentiates from helix_foundry_read_guide by assigning it the schema-lookup role, but it does not distinguish itself from other read-path siblings such as helix_foundry_ask or helix_execute_read_query, so no explicit sibling contrast beyond the guide.

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?

It states a batching constraint ('1 to 20 reads in one call') and that helix_foundry_read_guide supplies the per-read JSON Schema, which implies when this tool is the right entry point. However, there is no explicit when-to-use/when-not guidance, no prerequisites (permissions, workspace scoping), and no routing away from the natural-language alternative.

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