Skip to main content
Glama

Find Test Coverage Gaps

coverage_gaps
Read-onlyIdempotent

Identify production methods with no direct test call and semantic axes declared absent in a C# solution or namespace, with reach depth to target real test gaps.

Instructions

List what is NOT covered in a scope: 'uncovered' - production methods no test code calls directly - and 'verifiedAbsent' - semantic axes a developer explicitly declared as 'none'. find_tests_for asks the opposite question for one symbol.

THE LIST IS ONE HOP, NOT A COVERAGE MEASUREMENT: a method a test reaches THROUGH another method is listed although exercised. Read each entry's testReachDepth: the hops to the nearest directly called method (1 = one of those calls it), ABSENT when no test reaches it: the real gaps. The walk follows interface, abstract and virtual dispatch; an entry reached only that way carries viaDispatch. A missing depth is unknown, not measured, where marked: commandCreditRefused (a test may run its command beside another) or unfollowedAccessor (an unfollowed setter, indexer, event accessor or explicit interface getter calls it). outerType: the type a nested declaring type sits in.

Returns scope, a 'note' when uncovered is non-empty or no namespace matched, symbolsScanned, uncovered and verifiedAbsent (max 200 each), transitivelyReached, judgedUnits, testProjectsExcluded, testFixtureTypesExcluded, reachedOnlyThroughDispatch, commandCreditRefused and unfollowedAccessorCallers. uncovered is sorted by type and name; on a large scope the cap cuts alphabetically, keeping one entry of each counted mark, so narrow it.

What counts: test code is every method of a test project, every test-attributed method and every method, constructor or getter of a type that declares one. Only ordinary methods are judged. A constructor is a hop (new X(...) reaches the bound overload and its callees), and so is a property read (into its getter). Abstract and interface declarations are excluded, and a weak test-name match does not count.

judgedUnits: the methods the list is drawn from, of symbolsScanned (0: no namespace matched); testProjectsExcluded and testFixtureTypesExcluded: what was set aside as test code.

Read-only. There is no test switch.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionId": "<sessionId>"
    },
    "name": "coverage_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNo'solution' (default) or a namespace prefix to narrow which symbols are checked, case-insensitive, matched on segment boundaries.solution
sessionIdYesThe session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.46521
    • changedInput schema / properties / scope / description
      Previous value: -"'solution' (default) or a namespace prefix to narrow which symbols are checked."New value: +"'solution' (default) or a namespace prefix to narrow which symbols are checked, case-insensitive, matched on segment boundaries."
  2. Changed1 schema field changedv0.5.46513
    • changedInput schema / properties / sessionId / description
      Previous value: -"The session_id returned by analyze_solution."New value: +"The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use."
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/non-destructive, and the description adds substantial behavior beyond them: the dispatch-walking semantics (viaDispatch), the meaning of missing depth markers (commandCreditRefused, unfollowedAccessor), and exactly what qualifies as test code and as a judged unit. It also discloses the 200-entry cap and how truncation picks entries, which no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded correctly, but the body is a dense wall of jargon with all-caps interjections and very long sentences that mix caveats, semantics, and return fields. Nearly every sentence carries information, yet the same facts could be delivered far more scannably for a two-parameter tool.

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?

There is no output schema, and the description compensates by enumerating every returned field, explaining judgedUnits and the exclusion counters, and clarifying that a zero means no namespace matched. For a tool of this analytical complexity, an agent has what it needs to interpret results correctly.

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?

With 100% schema coverage the baseline is 3, but the description adds real meaning about the scope parameter's effect on results ('on a large scope the cap cuts alphabetically, keeping one entry of each counted mark, so narrow it'). sessionId is left to the schema, which already documents it fully.

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 opens with a specific verb and resource ('List what is NOT covered in a scope') and immediately defines both result categories ('uncovered' and 'verifiedAbsent'). It explicitly contrasts itself with find_tests_for ('asks the opposite question for one symbol'), so the agent can separate it from the sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real usage context: the list is a one-hop reachability view rather than a coverage measurement, and the agent is told to 'read each entry's testReachDepth' and to 'narrow' the scope when the 200-entry cap truncates alphabetically. There is no explicit when-not-to-use beyond the find_tests_for contrast, which keeps it just short of a 5.

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