Skip to main content
Glama

get_metric

Read-only

Full definition of one metric: formula in map terms, the exact object.field grounding, and every caveat. Read the caveats before computing or citing the number — they say when it cannot be trusted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesMetric name from list_metrics

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the read-only nature is covered. The description adds valuable context: caveats reveal when the metric cannot be trusted and the output includes exact object.field grounding. No contradiction with annotations.

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

Conciseness5/5

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

Two sentences, no filler, and the most important usage warning is front-loaded. Every phrase earns its place, and the structure is easy for an agent to parse quickly.

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 compensates by explicitly listing the output contents: formula, exact grounding, and caveats. It also tells the agent when to consume those caveats. For a one-parameter lookup tool, this is complete and self-sufficient.

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 coverage is 100%, with the only parameter 'name' described as 'Metric name from list_metrics'. The description adds no additional parameter-level detail, but the baseline of 3 applies because the schema already fully documents the parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states what the tool does: returns the full definition of one metric, including formula, object.field grounding, and caveats. It distinguishes from list_metrics by focusing on a single metric's full definition, though it does not explicitly name sibling alternatives.

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 a clear context for use: read the caveats before computing or citing the number. This implies the tool should be used when a metric's precise definition or trustworthiness matters. It does not explicitly list when not to use it or compare it with alternatives, but the guidance is still actionable.

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