Skip to main content
Glama

Metrics

get_metric
Read-only

Read one metric in full, or list every metric of this workspace. Without name it lists them with their tracking state, caveat_count and broken_reason; with name it reads the formula, its object.field grounding, every caveat and any recorded values. Read the caveats before citing a number; configure_metric starts tracking one. Use this, not fetch, when your client can call it. Details: maplith://docs/mcp.

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": "get_metric"
  }
}

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
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description goes further by disclosing the exact return content in each mode (tracking state, caveat_count, broken_reason, formula, object.field grounding, caveats, recorded values). It stops short of describing size limits or pagination for the list mode.

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?

Dense and front-loaded: the two-mode summary comes first, then the mode details, then the usage warnings. The trailing 'Details: maplith://docs/mcp.' pointer is mildly extraneous but a single short clause.

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 carries the return-value burden and does so for both modes, plus usage warnings and a sibling pointer. Everything an agent needs to call it correctly and interpret the result is present.

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 schema already says omitting name lists all metrics, so the baseline is 3; the description earns extra credit by spelling out what each mode actually yields, making the parameter's consequence concrete rather than merely optional.

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 names a specific verb+resource ('Read one metric' / 'list every metric of this workspace') and explicitly distinguishes the two modes by the presence or absence of the name parameter. It also separates itself from siblings by naming configure_metric and fetch.

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 when to use it ('Read the caveats before citing a number'), points to the alternative for a related need ('configure_metric starts tracking one'), and explicitly says 'Use this, not fetch, when your client can call it' — a direct when/when-not rule.

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