Skip to main content
Glama

Find the coverage gap for a metric

coverage_gap
Read-onlyIdempotent

Audit tracked metrics against the GASP relationship graph to identify upstream and downstream gaps plus disconnected metrics before instrumenting dashboards.

Instructions

Audit a set of tracked metrics against the GASP relationship graph. Returns three lists: upstream missing (metrics with a direct edge into the set that the set leaves out), downstream missing (metrics with a direct edge from the set that it leaves out) and disconnected (graph metrics with no path of any length, in either direction and through any node, to the set; the first 25 shown). Names resolve as in lookup_metric; an input that is ambiguous, outside the graph, not a metric or unknown is listed as unresolved with the reason. Use it before instrumenting a dashboard, then infer_drivers or explain_path on the candidates.

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": {
      "metrics": "<metrics>"
    },
    "name": "coverage_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricsYesThe metrics you track, as names, abbreviations or graph ids (e.g. ['ARR', 'NRR', 'CAC'])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, but the description adds substantial behavior the annotations cannot: the exact three-list return shape, the 25-item truncation on the disconnected list, and the failure mode where bad inputs are returned as 'unresolved with the reason' rather than erroring.

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?

Front-loaded with the purpose, then return shape, then resolution rules, then usage — a sensible order with no filler sentences. The long parenthetical defining 'disconnected' is dense but each clause carries needed meaning; minor tightening would help.

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 description takes on the burden of describing returns and does so precisely, including list semantics and truncation. Combined with the name-resolution rules, an agent has everything needed to call it and interpret results.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes further by specifying accepted name forms (names, abbreviations, graph ids) resolving 'as in lookup_metric' and by enumerating the four rejection reasons. That meaningfully extends what the single 'metrics' array description conveys.

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?

States a specific verb and object ('Audit a set of tracked metrics against the GASP relationship graph') and immediately enumerates the three output buckets, which no sibling produces. An agent can distinguish this from lookup_metric, explain_path or infer_drivers without opening any 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?

Gives a concrete usage context ('Use it before instrumenting a dashboard') plus explicit next-step routing to infer_drivers or explain_path on the candidates. It does not state when to skip this tool in favour of a sibling, so it stops short of full when/when-not coverage.

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