Skip to main content
Glama

get_graph

Read-only

The knowledge graph over a record's documents, assembled for reasoning rather than listed. Scope with entity + entity_id (everything filed on one lead/job/contact) or document_ids. Returns the facts grouped by concept, each with its VERBATIM quote and its source document, plus four things worked out in code rather than guessed: bridges (concepts appearing in more than one document — the connections a person would otherwise have to make by reading both), contradictions (a concept carrying both a statement and its negation), negations, and from_ocr (facts whose quote came out of image recognition, where a number can be misread). Optional: concept (only this one), limit. Read-only. Use analyze_graph instead if you want the reading done server-side.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax facts (default 400).
entityNoRecord type whose documents form the graph (e.g. lead, job, contact); use with entity_id
conceptNoOnly facts whose concept contains this text
entity_idNoID of the record
document_idsNoList of IDs (document)
include_factsNofalse = nur Zaehlungen und Auffaelligkeiten, ohne die Faktenliste.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / concept / description
      Added value: +"Only facts whose concept contains this text"
    • addedInput schema / properties / document_ids / description
      Added value: +"List of IDs (document)"
    • addedInput schema / properties / entity / description
      Added value: +"Record type whose documents form the graph (e.g. lead, job, contact); use with entity_id"
    • addedInput schema / properties / entity_id / description
      Added value: +"ID of the record"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, and the description reinforces read-only while adding real value: it enumerates the derived outputs (bridges, contradictions, negations, from_ocr) and warns that OCR-sourced quotes may contain misread numbers. It does not cover auth, rate limits, or pagination behavior, keeping it below a 5.

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?

Front-loaded with the core purpose and scoping before the return-shape detail, which is the right order. It is dense and every sentence carries information, though the long parenthetical glosses on bridges/contradictions/from_ocr make it heavier than necessary.

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 no output schema, the description properly carries the return-value burden by describing grouped facts, verbatim quotes, source documents, and the four computed extras. The one omission is include_facts, which changes the response shape substantially by suppressing the fact list, and that trade-off is not explained.

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 the schema already documents entity/entity_id pairing, concept filtering, and limit. The description explains what 'concept' filtering yields and how entity+entity_id scopes the graph, but adds little beyond the schema. Notably the include_facts parameter is never mentioned in the description at all.

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 and resource ('the knowledge graph over a record's documents') and immediately frames what makes it distinct ('assembled for reasoning rather than listed'). It also names the sibling analyze_graph, so an agent can separate the two without opening schemas.

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 concrete scoping routes (entity + entity_id for one lead/job/contact, or document_ids) and an explicit alternative: use analyze_graph if you want the reading done server-side. The condition for the alternative is somewhat abstract ('reading done server-side'), but the routing intent is clear.

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.