Skip to main content
Glama

traverse_graph

Find entity keys reachable from a start entity along relationship paths, apply filters, and return keys to pass as entity_keys to query_metric.

Instructions

Entity keys reachable from start along relationship names (see describe_graph). filters example: {"Order": {"status": "returned"}}. Pass the keys as entity_keys to query_metric.

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": {
      "start": "<start>",
      "path": "<path>"
    },
    "name": "traverse_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
startYes
as_roleNo
filtersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. It discloses the return value (entity keys) and shows a filter example, but omits whether traversal is read-only, how depth or cycles are handled, permission requirements, and any limits or pagination.

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-loads the purpose in one sentence, then adds filter syntax and a downstream handoff. No wasted wording, though the inline filter JSON is terse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a graph traversal with four undocumented parameters, no annotations, and no output schema, the description is too sparse. It covers the basic return and one filter example but leaves key operational and parameter details unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate for four undocumented parameters. It implies `path` is a sequence of relationship names and gives a useful `filters` example, but never defines `as_role` and leaves `start`/`path` types and ordering implicit.

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?

States the tool returns entity keys reachable from `start` along relationship names, making the resource and traversal explicit. It also distinguishes the downstream use by pointing to `describe_graph` and `query_metric`, though it does not frame the action with a direct verb like 'traverse'.

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 a clear workflow: consult `describe_graph` for relationship names and pass returned keys as `entity_keys` to `query_metric`. It does not explicitly say when not to use this tool or name a traversal alternative, but the sequencing guidance is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.