Skip to main content
Glama

Graph answer

graph_answer
Read-only

GraphRAG: answer a question grounded in BOTH the studio's relationship graph (optionally around a focal node) AND its knowledge base (vector search), with citations. Use for 'connect-the-dots' questions.

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": {
      "question": "<question>"
    },
    "name": "graph_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoNeighborhood depth 1-3, default 2.
focus_idNo
questionYes
focus_typeNoOptional focal node type (e.g. participant).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered in structured data. The description adds genuine context beyond that: dual retrieval across graph plus vector KB, optional traversal around a focal node, and citation-bearing answers. It says nothing about cost, latency, or behavior when the graph lacks relevant nodes, which limits it to a solid 3.

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 sentences, zero filler: the retrieval scope is stated first and the usage cue follows. The 'GraphRAG:' prefix is mildly jargony but signals the retrieval technique compactly.

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 read-only, four-parameter retrieval tool with annotations and no output schema, the description covers the essentials: what sources are combined, the optional focal-node mode, and that answers come with citations. Remaining gaps are minor — no note on empty-graph behavior or on how depth interacts with the graph portion.

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 50%: depth and focus_type carry inline descriptions, while question and focus_id do not. The description partially compensates by explaining that a focal node can be supplied ('optionally around a focal node'), which clarifies the role of focus_id/focus_type as a linked pair, but it adds no meaning for depth or for how focus_id should be sourced.

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 gives a specific verb (answer) and resource (question grounded in the relationship graph AND the knowledge base via vector search), and the 'BOTH ... AND' framing implicitly separates it from pure-vector or pure-graph siblings like rag_answer or graph_explain. It stops short of naming those alternatives explicitly, so the differentiation relies on inference rather than direct contrast.

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?

'Use for "connect-the-dots" questions' supplies a clear positive trigger that tells the agent when this tool is the right choice over single-source retrieval. There is no explicit when-not guidance or named alternative to route away to, which keeps it below the top band.

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