Skip to main content
Glama

gograph_usages

Read-onlyIdempotent

Find all references and semantic usages of a Go symbol across the codebase. Locate files and lines where a function, struct, or variable is called or used.

Instructions

Find all references and semantic usages of a specific function, struct, or variable across the codebase. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when renaming symbols, checking references, or identifying dead code usages. Do NOT use for AST metadata only (use gograph_node instead). COMPLETENESS: Requires 'symbol' parameter. Returns files and exact line locations containing references to the target symbol. Example symbol: 'BuildGraph'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesThe type name to search for (e.g., 'AuthService', 'Repository')
Behavior5/5

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

Annotations already provide readOnlyHint, destructiveHint, idempotentHint. Description adds context: 100% local, read-only static analysis, no auth/credentials, no rate limits, zero destructive modifications.

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?

Description is structured with sections (BEHAVIOR, USAGE GUIDELINES, COMPLETENESS) and front-loaded with purpose. Slightly verbose but well-organized.

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?

Describes return format (files and exact line locations) and required parameter. No output schema but explanation covers key aspects. With annotations, it is sufficiently complete.

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 has one required parameter 'type' with description. Description mentions 'symbol' and example, but does not add substantial meaning beyond schema. Coverage is 100%, so baseline 3.

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 'Find all references and semantic usages of a specific function, struct, or variable' and distinguishes from gograph_node by specifying it is not for AST metadata only.

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?

Explicitly says when to use (renaming symbols, checking references, dead code) and when not to use (for AST metadata use gograph_node). Also mentions read-only, local nature.

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