Skip to main content
Glama

graph

Traces incoming and outgoing dependencies from any entity so you can see what calls or extends it and what it relies on, with configurable depth and edge-type filters.

Instructions

Navigates the dependency graph from a starting entity. Shows incoming/outgoing relationships with configurable depth and edge type filters.

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": {
      "entity_id": "<entity_id>"
    },
    "name": "graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
directionNoTraversal direction. Default: both
entity_idYesStarting entity ID
max_depthNoMaximum traversal depth. Default: 2
edge_typesNoFilter by relationship types (e.g., ["calls", "extends"])
token_budgetNoMax tokens. Default: 1500
include_unresolvedNoInclude unresolved edges. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and falls short. It never states that traversal is read-only/non-mutating, what the result looks like (nodes vs. edges), how token_budget truncation behaves, or what 'include_unresolved' implies for result trustworthiness.

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?

Two front-loaded sentences with no filler; the resource and scope come first, followed by the configurable knobs. It could carry one more sentence of routing guidance without becoming bloated, but nothing present is wasteful.

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

Completeness3/5

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

With six parameters, no annotations, and no output schema, the description should explain return shape and truncation behavior, but it does not. It is adequate to identify the tool's purpose yet incomplete for calling it correctly when token_budget or include_unresolved come into play.

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%, so the schema already documents every parameter including defaults and an enum for direction. The description only restates 'configurable depth and edge type filters' without adding format, ordering, or cost semantics beyond what the schema gives.

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 names a specific verb ('Navigates') and resource ('the dependency graph') and scopes it to a starting entity with direction, depth, and edge-type controls. It is clearly distinguishable from a general search or record tool, though it never contrasts itself with a close sibling like 'impact'.

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?

Usage is only implied: 'from a starting entity' suggests exploratory dependency traversal, but there is no explicit when-to-use, when-not-to-use, or which sibling to pick instead (e.g., 'impact' for change analysis). The agent must infer the selection rule.

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

Deploy Server

Other Tools