Skip to main content
Glama

get_project_graph

Read-onlyIdempotent

Get the whole node graph for a project in one call: every node (id, title, type, status, spec flag, dependencies) and every dependency edge, plus a topological build order and status counts. Use this at the start of a session or when the user asks about overall progress, ordering or drift — planning across a project should not cost one get_next_task call per node.

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": {
      "project_id": "<project_id>"
    },
    "name": "get_project_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoResponse shape. 'summary' returns a compact view (nodes without their dependency lists, edges as [source,target] pairs); 'full' also returns each node's depends_on and labelled edges. Defaults to 'summary' when the project has more than 50 nodes, otherwise 'full'.
project_idYesThe project ID. Get this from list_projects first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. Beyond that, the description adds real value by disclosing the response contents (nodes, edges, topological order, status counts) and the cost argument for using one bulk call instead of N calls, which annotations cannot express.

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 sentences, both earning their place: the first front-loads the payload, the second front-loads the trigger. The parenthetical field list is dense but purposeful; nothing is redundant, though the em-dash clause is slightly wordy.

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

Completeness5/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 carries the burden of explaining return values, and it does so concretely — node fields, edge set, topological order, status counts — while the schema handles the detail-mode trade-off. Nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, and the 'detail' enum's summary/full shapes and the >50-node default are fully spelled out in the schema. The description adds no parameter-level meaning beyond 'in one call' and 'whole', so the baseline 3 applies.

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?

The description states a specific verb and resource ('Get the whole node graph for a project') and enumerates exactly what comes back: nodes with id/title/type/status/spec flag/dependencies, all dependency edges, a topological build order and status counts. That payload enumeration distinguishes it clearly from get_node (single node) and get_next_task (one task at a time).

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?

It gives concrete triggers — start of a session, or questions about overall progress, ordering or drift — and explicitly rules out the per-node alternative by saying planning should not cost one get_next_task call per node. It stops short of addressing the drift sibling (check_drift), which an agent might reasonably weigh against this tool.

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.