Skip to main content
Glama

gograph_query

Read-onlyIdempotent

Search Go codebase for symbols, packages, or files matching a keyword. Use for initial exploration when you have a feature name but don't know where it is defined.

Instructions

Search the graph index for symbols, packages, files, and import edges that match a keyword substring. Requires .gograph/graph.json — run gograph build . first if stale (check with gograph_stale). Read-only; no side effects. WHEN TO USE: During initial exploration when you have a keyword or feature name but don't know which files or packages contain it. NOT TO USE: When you already know the exact symbol name (use gograph_source or gograph_node instead); for package dependency trees (use gograph_deps). RETURNS: List of matching symbols, files, and imports with their kind, package path, and line number; empty when no matches found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesThe keyword search term to locate in symbols, files, and imports (e.g., 'AuthService', 'token', 'router')
Behavior4/5

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

Annotations already indicate readOnlyHint=true and idempotentHint=true, but the description adds valuable context: it requires a pre-built graph index and mentions staleness checking. It confirms no side effects and describes the return format, which annotations do not cover.

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 well-structured with clear sections but is slightly verbose. It front-loads the core purpose and includes necessary details without excessive wordiness. Could be trimmed slightly but overall effective.

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 single-parameter tool with no output schema, the description covers all necessary context: purpose, prerequisites, usage conditions, return format (list with kind/package/line), and empty result handling. No gaps identified.

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 single parameter 'term' is well-described in the schema with examples. Since schema coverage is 100%, the description does not need to add extra parameter info. Baseline score of 3 is appropriate.

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's purpose: searching the graph index for symbols, packages, files, and import edges that match a keyword substring. It distinguishes from sibling tools by specifying that it is for exploration when the exact location is unknown, contrasting with gograph_source, gograph_node, and gograph_deps.

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

Usage Guidelines5/5

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

Explicit WHEN TO USE and NOT TO USE sections provide clear context. It mentions the prerequisite of a .gograph/graph.json file and suggests checking staleness with gograph_stale. It also names alternative tools for use cases like exact symbol lookup or dependency tree analysis.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ozgurcd/gograph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server