Skip to main content
Glama

gograph_untested

Read-onlyIdempotent

Find production functions and methods that have callers but no test coverage, sorted by caller count, to target high-risk gaps during test audits or pre-release hardening.

Instructions

Sweep the full graph in one pass and return all production functions and methods that have at least one non-test caller but zero attributed test edges. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise and precise_fallback graphs retry CHA/SSA after source changes. Read-only; no side effects. WHEN TO USE: During test coverage audits or pre-release hardening — finds the functions most at risk of regressions (high callers, no tests). Distinct from gograph_orphans (zero callers) — untested symbols ARE used in production but lack test coverage. Replaces N sequential gograph_tests <sym> calls across the full codebase. NOT TO USE: For a single symbol's tests (use gograph_tests); for unreachable dead code (use gograph_orphans). RETURNS: JSON array sorted by caller_count descending, each entry with name, kind, file, line, caller_count, and package; empty array when all called symbols have test coverage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pkgNoOptional package name substring to filter results (e.g. 'cli', 'search')
topNoLimit results to top N by caller count (0 = all, default)
Behavior5/5

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

Beyond the annotations (readOnlyHint, destructiveHint, idempotentHint), the description adds behavioral context: 'Read-only; no side effects' and explains the MCP server checks freshness and refreshes in the current analysis mode, with precise/precise_fallback graphs retrying CHA/SSA after source changes. This is extra information that helps the agent understand side effects and freshness behavior.

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 longer than average but well-structured with clear sections (WHEN TO USE, NOT TO USE, RETURNS). It is dense with useful information and every sentence contributes, though it could be slightly more concise by trimming the freshness detail, which is minor.

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?

The description is comprehensive: it explains the tool's purpose, usage context, behavioral details (freshness), and return format ('JSON array sorted by caller_count descending, each entry with name, kind, file, line, caller_count, and package'). With no output schema, it fully specifies the return structure and edge case (empty array when all called symbols have test coverage).

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 input schema already describes both parameters (pkg and top) adequately. The description adds context about the tool's full-sweep nature and output sorting, but does not meaningfully enhance understanding of the parameters beyond what the schema provides. Baseline 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 function: 'Sweep the full graph in one pass and return all production functions and methods that have at least one non-test caller but zero attributed test edges.' It uses a specific verb and resource, and distinguishes itself from sibling gograph_orphans by noting 'untested symbols ARE used in production but lack test coverage'.

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 are provided. It specifies use during 'test coverage audits or pre-release hardening' and advises against using it for single-symbol tests (pointing to gograph_tests) or dead code (gograph_orphans). It also mentions replacing sequential gograph_tests calls, giving clear alternative context.

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