Skip to main content
Glama

gograph_explore

Read-onlyIdempotent

Explore a Go symbol or lexical term in one bounded, read-only call, returning ranked matches, source, callers/callees, tests, and impact for code navigation.

Instructions

Explore a lexical term or Go symbol in one bounded call. Standard mode combines ranked matches with selected-symbol source, direct callers/callees, tests, and exact impact. compact=true returns discovery, selected-node metadata, role, complete counts, and explicit omitted_sections while suppressing token-heavy bodies (default limit 5). deep=true retains standard evidence and adds bounded depth-3 exact identity callers/callees, package context, and explanation (default limit 25). compact and deep are mutually exclusive; an explicit limit overrides their defaults. Possible dispatch is excluded from bundled identity impact and deep traversals. The MCP server refreshes source analysis before the call. Read-only; no persistent side effects. Question-like text is lexical, not model-interpreted. Focused tools remain authoritative for complete output. RETURNS: shared gograph.explore.v1 with mode, selection_basis, ambiguity, totals, truncation, and omission metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deepNoExpanded response: standard evidence plus bounded depth-3 exact callers/callees, package context, and explanation; mutually exclusive with compact
exactNoRequire exact resolution for selected-symbol context; broad lexical matches remain visible
limitNoMaximum rows returned per section, clamped to 1-100; defaults to 5 compact, 10 standard, or 25 deep
queryYesA symbol, fully-qualified ID, lexical feature term, or short question-like phrase to explore
compactNoLow-token response: matches, selected node/role, complete counts, and explicit omissions; mutually exclusive with deep

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.5

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint/idempotent/destructive:false, which already establish the safety profile), the description adds genuine behavioral context: source analysis is refreshed before the call, possible dispatch is excluded from bundled identity impact and deep traversals, compact/deep are mutually exclusive, and question-like text is lexical rather than model-interpreted. 'Read-only; no persistent side effects' is redundant with the annotations, but the other disclosures are valuable and non-contradictory.

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 definition is dense but front-loads the core purpose before diving into modes, constraints, and return shape, so an agent can extract the essentials quickly. Some sentences are load-bearing (mutual exclusivity, dispatch exclusion, refresh behavior), though 'Read-only; no persistent side effects' duplicates the annotations and the overall length is on the heavy side.

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?

For a complex multi-mode aggregation tool with no output schema, the description supplies the missing return-value information explicitly via the RETURNS block (shared gograph.explore.v1 with mode, selection_basis, ambiguity, totals, truncation, omission metadata) and covers mode defaults, limits, and exclusions. Nothing an agent needs to invoke this correctly appears to be 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%, so the schema already documents all five parameters including the compact/deep exclusivity and the clamped 1-100 limit. The description reinforces mode defaults (5/25) but adds little semantic detail beyond what the schema provides, matching the baseline for full schema coverage.

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 opening sentence gives a specific verb and resource (explore a lexical term or Go symbol) and frames the tool as a single bounded aggregation call that bundles matches, source, callers/callees, tests, and impact. It differentiates itself from the many focused siblings by noting that 'focused tools remain authoritative for complete output,' which tells an agent this is the bundled-overview option. The differentiation is meaningful though it references the sibling class generically rather than naming specific tools.

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?

The description clearly explains the mode-selection conditions (compact for low-token discovery, deep for expanded evidence, mutual exclusivity, explicit limit overriding defaults) and when to prefer this over focused tools for complete output. It provides strong usage context but stops short of explicit when-not-to-use guidance or naming the specific alternative tools for a given task.

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