Skip to main content
Glama

gograph_stale

Read-onlyIdempotent

Check if the Go graph index is outdated by comparing file modification times; returns stale status and changed files.

Instructions

Check whether .gograph/graph.json is outdated relative to the current Go source files — is_stale:true if any .go file in the working tree is newer than the graph index. Requires .gograph/graph.json to exist. Read-only; no side effects. WHEN TO USE: As a pre-flight check before any structural analysis — a stale graph may cause missed symbols or stale call edges. If stale, run gograph build . before proceeding. NOT TO USE: For Go module dependency freshness (go list -m all covers that); for finding which symbols changed (use gograph_changes). RETURNS: JSON with is_stale bool, graph_age (UTC build timestamp), newest_source_mtime (UTC mtime of newest .go file), newest_source_file (path of that file), and changed_files[] listing .go files newer than the graph; {"is_stale":false} when the graph is current.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond annotations (readOnlyHint, destructiveHint, idempotentHint), the description adds behavioral details: requires .gograph/graph.json to exist, is read-only with no side effects, and explains the return structure. No contradictions with annotations.

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?

Well-structured with clear sections (purpose, usage, returns). Every sentence adds value, though slightly lengthy for a simple check. Still, it is front-loaded and organized.

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?

Given no parameters and no output schema, the description fully explains tool behavior, prerequisites (file must exist), and return fields (is_stale, graph_age, etc.), making it complete for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist, so the description naturally handles this by focusing on tool behavior. Baseline for 0 params is 4, and the description adds value by explaining what the tool does without needing parameters.

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 checks if .gograph/graph.json is stale relative to Go source files, with a specific verb ('Check') and resource. It distinguishes from siblings like gograph_changes and gograph_build, making its unique purpose clear.

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 guidance. It advises using this tool as a pre-flight check before structural analysis and tells what to do if stale, while directing other needs to specific sibling tools.

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