Skip to main content
Glama

Metrics

get_metric
Read-only

Read one metric in full, or list every metric defined for this workspace. Without name it lists them with their tracking state: each row carries caveat_count, broken_reason (the formula cannot be measured as written, and why; its values are not recorded) and any proposed_for_removal mark, and older definitions kept for review are included. With name it reads that one: its formula in map terms, the exact object.field grounding, every caveat and, where tracking is on, the recorded values. Read the caveats before computing or citing a number: they say when it cannot be trusted; configure_metric starts tracking one. On a map larger than one call reads the list is cut: truncated is true and truncated_note says so. Use this, not fetch, when your client can call it.

Input Schema

NameRequiredDescriptionDefault
nameNoThe metric to read, as the list spells it. Omit it to list every metric.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Metric name from list_metrics"New value: +"The metric to read, as the list spells it. Omit it to list every metric."
    • removedInput schema / required
      Removed value: -[
      -  "name"
      -]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly annotations, the description discloses list-mode details such as caveat_count, broken_reason semantics, proposed_for_removal marks, inclusion of older review definitions, and truncation signals. Read mode similarly explains what is returned, including formula representation, object.field grounding, caveats, and recorded values when tracking is enabled.

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?

It is front-loaded with the primary purpose and every sentence carries substantive behavioral information. The definition is dense and somewhat lengthy, but there is little wasted text and the structure moves logically from list mode to read mode to usage guidance and truncation.

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 supplies the necessary return-shape context for both modes, including caveat, broken-state, truncation, formula, grounding, and recorded-value details. No critical information needed to call the tool correctly appears to be missing.

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 already documents name as 'the metric to read, as the list spells it' and that omitting it lists every metric. The description reinforces the dual list/read behavior but does not add syntax or format detail beyond what the schema provides, so the baseline of 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 opens with a precise verb and resource: 'Read one metric in full, or list every metric defined for this workspace.' It distinguishes both operating modes and explicitly routes the agent away from the sibling tool fetch, so the tool's role is unmistakable.

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?

It states exactly when each mode applies: omit name to list metrics, supply name to read one. It also gives cross-tool guidance by naming configure_metric for starting tracking and fetch as the alternative when the client cannot call this tool, plus the caveat to read caveats before citing numbers.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources