Skip to main content
Glama

gograph_untested

Read-onlyIdempotent

Identifies production functions and methods lacking a static call path from tests by sweeping the full call graph in one pass, flagging exact and possible test resolution for hardening.

Instructions

Sweep the full graph in one pass and return called production functions and methods without an exact transitive static path from any test. Precise direct calls and proof-backed concrete interface receivers are exact; open CHA or parser-only paths propagate possible to descendants, which remain visible with test_resolution=possible and possible_test_count. Repeatable CLI --exclude globs map to the MCP exclude string array and match repository-relative source paths lexically. This is static attribution, not runtime coverage proof. WHEN TO USE: During test census or pre-release hardening; it replaces N forward coverage or direct gograph_tests probes. NOT TO USE: For running tests or proving branch execution. RETURNS: JSON rows sorted by caller_count with stable_id, name, kind, file, line, caller_count, package, test_resolution, and optional possible_test_count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gograph_untested"
  }
}

Input Schema

NameRequiredDescriptionDefault
pkgNoOptional package name substring to filter results (e.g. 'cli', 'search')
topNoLimit results to top N by caller count (default: 20, 0 = all)
rootNoAbsolute path of your checkout or worktree (alias cwd).
excludeNoRepository-relative path globs to exclude; use prefix/** for all descendants
intentionNoRationale; required with an active session.
session_idNoSession from session_create; omit for none.
coverprofileNoRepository-relative go test -coverprofile file (merged profiles allowed): report production functions with no executed statement instead; the response then is {summary, results}
exclude_interface_methodsNoSkip methods implementing an interface method (Error, String, MarshalJSON, or a repository interface); the response then is {summary, results} with the skipped count

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.7.21
    • addedInput schema / properties / coverprofile
      Added value: +{
      +  "description": "Repository-relative go test -coverprofile file (merged profiles allowed): report production functions with no executed statement instead; the response then is {summary, results}",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude_interface_methods
      Added value: +{
      +  "description": "Skip methods implementing an interface method (Error, String, MarshalJSON, or a repository interface); the response then is {summary, results} with the skipped count",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / intention / description
      Previous value: -"Technical rationale, required for analytical calls selecting an active session."New value: +"Rationale; required with an active session."
    • changedInput schema / properties / root / description
      Previous value: -"Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean."New value: +"Absolute path of your checkout or worktree (alias cwd)."
    • changedInput schema / properties / session_id / description
      Previous value: -"Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session."New value: +"Session from session_create; omit for none."
    • changedInput schema / properties / top / description
      Previous value: -"Limit results to top N by caller count (0 = all, default)"New value: +"Limit results to top N by caller count (default: 20, 0 = all)"
  2. Changed3 schema fields changedv1.7.18
    • addedInput schema / properties / intention
      Added value: +{
      +  "description": "Technical rationale, required for analytical calls selecting an active session.",
      +  "type": "string"
      +}
    • addedInput schema / properties / root
      Added value: +{
      +  "description": "Absolute path of the checkout you are working in (your cwd or git worktree). Must be this server's repository or one of its git worktrees; the answer then comes from that checkout's own graph. A path elsewhere is refused. Alias: cwd. Omit only when the configured checkout is the one you mean.",
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Caller selector returned by session_create. Omission means an independent caller; never inherits server environment or another caller's session.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv1.6.2
    • addedInput schema / properties / exclude
      Added value: +{
      +  "description": "Repository-relative path globs to exclude; use prefix/** for all descendants",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed1 schema field changedv1.5.6
    • changedInput schema / properties / top / type
      Previous value: -"number"New value: +"integer"
  5. Addedv1.4.78

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, so the lower bar applies, yet the description still adds substantial behavior: exact vs. possible propagation across CHA and parser-only paths, the visible possible_test_count, lexical path matching for exclusions, and the explicit caveat that this is static attribution not runtime proof. The only omission is pagination/ordering guarantees beyond "sorted by caller_count".

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 core purpose is front-loaded and the WHEN/NOT/RETURNS sections make it scannable, with no filler sentences. It is dense and jargon-heavy (CHA, transitive static path), and the precision discussion partially overlaps the RETURNS field list, costing it the top mark.

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?

With no output schema, the RETURNS section correctly enumerates the row fields and the conditional {summary, results} shape when coverprofile or exclude_interface_methods is used. Combined with the explicit static-vs-runtime limitation and the alternative-tool routing, an agent has everything needed to call and interpret it.

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% and the schema already documents all eight parameters, including the coverprofile and exclude_interface_methods mode switches and their altered response shapes. The description adds the CLI --exclude-to-MCP-array mapping and "lexical" matching nuance, which is useful but marginal against a fully documented schema, so the baseline 3 holds.

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?

"Sweep the full graph in one pass and return called production functions and methods without an exact transitive static path from any test" names a specific verb, resource, and precise scope. It differentiates itself from gograph_tests and forward coverage tools by contrast, so an agent can pick it without inspecting the schema.

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 (test census, pre-release hardening) and NOT TO USE (running tests, proving branch execution), plus a direct statement that it replaces N forward coverage or gograph_tests probes. Both positive and negative routing are present.

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