Skip to main content
Glama

get_graph_info

Retrieve graph metadata, health, and diagnostics in one call, optionally adding scoped statistics and unresolved or ambiguous edge reports for troubleshooting.

Instructions

Return graph metadata, health, and diagnostics in one call. Always returns project root, schema version, build time, extraction modes, languages, node/edge/hyperedge/community counts, active policy gates, and the graph trust mode. Set include_stats to append scoped statistics, include_unresolved to list unresolved imports, include_resolution to append the resolution-quality report, and include_ambiguous to list ambiguous edges and label collisions.

Input Schema

NameRequiredDescriptionDefault
node_typesNoOptional file types to include in statistics, for example ['code', 'document', 'rationale'].
path_prefixNoOptional path prefix or path fragment to include in statistics (case-insensitive).
exclude_pathNoOptional path prefix or path fragment to exclude from statistics (case-insensitive).
include_statsNoAppend scoped statistics: node and edge counts, node-type breakdown, edge confidence distribution, and extractor provenance. Default false.
ast_only_tuningNoAST-only tuning for statistics: true enables AST-only noise suppression, false disables it, omitted = auto.
include_ambiguousNoAppend the ambiguous symbol report listing low-confidence edges and cross-file label collisions. Default false.
include_resolutionNoAppend the resolution-quality report covering import, call, and method resolution rates plus ambiguous edge counts. Default false.
include_unresolvedNoAppend the list of unresolved import references (import edges whose target symbol is missing from the graph). Default false.
generated_code_modeNoGenerated-like code filter for statistics: 'include' (default), 'exclude', or 'only'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.23.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it declares the always-returned payload and which optional reports are appended by each flag. It stops short of stating that the tool is read-only or noting any cost/latency of the heavier reports.

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 dense sentences, front-loaded with the guaranteed return set before the opt-in behavior. The second sentence is a long enumeration but each clause maps to a distinct flag, so little is wasted.

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?

No output schema exists, and the description compensates by listing the always-present fields; it also explains all four opt-in reports. Adequate for a 9-param, zero-required diagnostic tool, with only the scoping/filter parameters left entirely to the schema.

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% and each parameter already has a description, so the description's flag summary largely restates it. It adds grouping value by pairing each include_* flag with the report it appends, but the scoping params (node_types, path_prefix, exclude_path, generated_code_mode) go unmentioned at the tool level.

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 a specific verb and resource ('Return graph metadata, health, and diagnostics in one call') and enumerates exactly what comes back, so an agent knows what it gets. It does not explicitly distinguish itself from the nearby get_architecture_summary or query_graph siblings, which would have made it a 5.

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?

The description implies usage through 'in one call' and the opt-in flags, but never says when to reach for this versus get_architecture_summary, query_graph, or reload_graph, and gives no exclusions. Useful but inference-required.

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