Skip to main content
Glama

analyze_graph

Read-only

Read the graph server-side and return the READING, not the raw material — for a caller that wants an answer rather than 300 facts to page through. Same scope as get_graph (entity + entity_id, or document_ids). Optional: question (a specific one; without it you get a general assessment), focus ('risks' | 'summary' | 'gaps' | 'next_steps'). The contradictions and cross-document links are computed in code and handed to the model as findings, so it interprets them instead of hunting for them; facts from image recognition are marked, so the answer can say when it is standing on one. Costs one model call. Returns the answer plus the counts it was based on, so a thin graph cannot masquerade as a thorough analysis.

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": "analyze_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
focusNoAngle of the reading: risks, summary, gaps or next_steps
limitNoMaximum facts to consider, 1-2000 (default 400).
entityNoRecord type whose documents are analysed (e.g. lead, job, contact); use with entity_id
conceptNoOnly facts whose concept contains this text.
questionNoSpecific question to answer; omitted = general assessment
entity_idNoID of the record
document_idsNoList of IDs (document)
include_factsNoReturn the underlying facts, not just the summary. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / document_ids / description
      Added value: +"List of IDs (document)"
    • addedInput schema / properties / entity / description
      Added value: +"Record type whose documents are analysed (e.g. lead, job, contact); use with entity_id"
    • addedInput schema / properties / entity_id / description
      Added value: +"ID of the record"
    • addedInput schema / properties / focus / description
      Added value: +"Angle of the reading: risks, summary, gaps or next_steps"
    • addedInput schema / properties / question / description
      Added value: +"Specific question to answer; omitted = general assessment"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial detail beyond the readOnly/openWorld annotations: contradictions and cross-document links are computed in code and passed as findings, image-recognition facts are flagged, and the call 'costs one model call.' These are real behavioral disclosures. Minor tension: it markets itself as returning 'the READING, not the raw material' while the schema's include_facts defaults to true, so a caller may still receive underlying facts — the description doesn't reconcile this.

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 distinction, and the closing sentence on returned counts earns its place by explaining a quality guarantee. Slight redundancy in 'not the raw material — for a caller that wants an answer rather than 300 facts to page through,' which says the same thing twice.

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 an 8-parameter analysis tool with no output schema, it covers return shape (answer plus counts), cost, and provenance of findings — enough to call it correctly. The one gap is the unreconciled include_facts default against the 'reading, not raw material' framing.

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 baseline is 3, but the description adds real meaning: it groups entity + entity_id versus document_ids as alternative scopes (a pairing the schema never states) and frames question as the difference between a targeted answer and a general assessment. It says nothing about limit, concept, or include_facts.

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 ('read the graph server-side and return the READING') and explicitly contrasts the output with get_graph's raw material. An agent can immediately tell this is a synthesis/analysis tool rather than a fact-retrieval tool.

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?

Routes the caller by intent: use this when you want an answer, get_graph when you want '300 facts to page through,' and notes the scope is identical (entity + entity_id, or document_ids). It stops short of an explicit 'do not use for X' exclusion, but the alternative and the selecting condition are both stated.

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.