Skip to main content
Glama

Explain a ShowOffer metric

explain_metric
Read-only

Explains how ShowOffer counts a named engineering metric—definition, better direction, and caveats—so you can interpret results correctly.

Instructions

Explains one engineering metric as ShowOffer counts it: the definition, which way is better and what to keep in mind. Names: prsMerged, reviews, medianHoursToMerge, medianHoursToFirstReview, medianReviewResponseHours, medianPrSize, mergeRate, commits, activeDays, prsClosedUnmerged, medianPrFiles, longestStreak

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

Input Schema

NameRequiredDescriptionDefault
nameYesMetric name or label, e.g. "time to merge".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value beyond them by disclosing what a caller gets back — the definition, the direction that is better, and caveats — which matters because there is no output schema. It does not say what happens for an unknown or fuzzy metric name.

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 in the first clause, then the value proposition, then the accepted values. The trailing name list is dense and unformatted but every item earns its place as an input vocabulary; separating or grouping the names would improve scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, read-only, non-open-world tool with no output schema, this covers purpose, return content, and valid inputs adequately. The only real gap is behavior on unrecognized or loosely specified metric names, which the schema's free-form example actively encourages.

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% and the single parameter is documented, so the baseline would be 3; the description exceeds it by enumerating the accepted metric identifiers. It also introduces mild ambiguity with the schema, which advertises free-form "metric name or label, e.g. 'time to merge'" while the description presents a fixed list of camelCase names — an agent cannot tell whether aliases are resolved.

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?

Specific verb plus resource: "Explains one engineering metric as ShowOffer counts it," and it then enumerates the exact metric identifiers it accepts. None of the sibling tools (list_widgets, render_report, report_link, scan_github) overlaps with this scope, so an agent can route here without opening 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 Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the lookup/definition tool to call before or alongside analytical tools, and the phrase "what to keep in mind" hints at caveats. However, there is no explicit when-to-use framing, no prerequisites, and no statement about what to do if the metric name isn't in the list.

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