Skip to main content
Glama

gograph_stale

Read-onlyIdempotent

Check if the graph index is outdated by comparing source file and graph timestamps; returns stale flag and list of newer files. Run before structural analysis to prevent missed symbols.

Instructions

Check whether .gograph/graph.json is outdated relative to the current Go source files — 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 stale bool, graph_mtime, newest_source_mtime, and a list of source files newer than the graph; {"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?

Annotations already indicate read-only and no side effects; the description adds that .gograph/graph.json must exist and describes the return JSON structure (stale bool, timestamps, changed files). No contradiction 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?

The description is well-structured with clear sections (purpose, requirements, usage guidance, return format). It is somewhat lengthy but each sentence adds value. Could be slightly more concise, but structure aids readability.

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 output schema, the description fully explains return values (stale bool, graph_mtime, newest_source_mtime, source files list). It also mentions prerequisites (file must exist) and error conditions. Complete for a parameterless tool.

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?

The input schema has no parameters (0 params), so baseline is 4. The description adds no parameter info because none exist, which 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 checks if .gograph/graph.json is outdated relative to Go source files, with a specific condition (stale:true if any .go file is newer). It distinguishes from sibling tools like gograph_changes by explicitly naming it in the 'NOT TO USE' section.

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?

The description includes explicit 'WHEN TO USE' and 'NOT TO USE' sections, providing context (pre-flight check before structural analysis) and alternatives (gograph_changes for symbol changes, go list -m for dependency freshness).

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