Skip to main content
Glama

node_inspect

Read-onlyIdempotent

Inspect a code node to resolve its definition, view source excerpt, and see incoming/outgoing references with confidence scores.

Instructions

One node: an id, label, 'path/file.py::symbol', 'Class.method' or a file path. Returns how the name resolved ('scored' = heuristic: check 'candidates'), location, source excerpt (at most 30 lines) and edges in and out with relation, confidence and file:line (at most 25 each, totals given). Edges are extractions, not verification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNode id, label, 'path/file.py::symbol', 'Class.method' or file path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and idempotentHint=true, but the description adds valuable behavioral context: limits on source excerpt (30 lines) and edges (25 each), the 'scored' heuristic, and the warning that edges are extractions not verification. This goes beyond the annotations without contradicting them.

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?

The description is two sentences, front-loaded with the core purpose and then specific return details. It is dense but not overly verbose; each piece of information contributes to understanding the tool's behavior.

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?

Given a single parameter, no output schema, and annotations covering safety, the description is adequately complete. It explains what is returned, limits, and the nature of edges. It does not cover error scenarios, but these are not critical for a read-only inspection tool.

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?

The schema description covers 100% of the parameter, and the description repeats the same parameter definition verbatim. No additional meaning is added beyond the schema, so the baseline score of 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 clearly states the tool inspects a node identified by various forms (id, label, path, etc.) and returns resolution details, location, source excerpt, and edges. It distinguishes itself from siblings by specifying its exact output and the heuristic nature of scoring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide explicit guidance on when to use this tool versus alternatives like relation_trace or map_view. It implies usage for node inspection but lacks when-not-to-use or alternative conditions.

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