Skip to main content
Glama

ZeroWidth

Read one Ledger metric with its readings

ledger_metrics_get
Read-only

One metric's definition (unit, kind, direction, target, cadence) plus its readings newest first and the open decisions bound to it. Use before answering 'how is X trending?' or before recording a reading against it. metricId accepts the id or the snake_case slug from ledger_metrics_list. For an event metric whose readings carry labels, labels lists each label and its values, largest total first. Pass slice to get the series for part of it ("new users in DE"), or by to split the series by one label ("new users by country"); either returns series, summed per bucket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byNoEvent metrics only. A label name to split the series by.
sliceNoEvent metrics only. Per label, the values to keep: { country: ["DE", "AT"] } keeps readings from DE or AT; several labels must all match. Names and values come from `labels`.
bucketNoSeries bucket when `slice` or `by` is set. Default week.
metricIdYesMetric id or slug (from ledger_metrics_list).
workspaceNoWorkspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint, openWorldHint), so the description is free to add behavior it uniquely knows: readings are ordered newest first, labels are ordered by largest total, and series results are summed per bucket with a week default. It does not mention result-size limits or pagination on the readings array.

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?

The what-it-returns clause is front-loaded, followed by usage triggers, then parameter mechanics; every sentence carries distinct information with no filler. Density is high but appropriate for a tool with five parameters and no output schema.

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?

With no output schema, the description correctly describes the return payload (definition, readings, open decisions, labels, series) and its ordering. It omits how many readings are returned or whether they are capped, which is a minor remaining gap for a read tool.

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 earns more by explaining that metricId accepts either an id or a snake_case slug, and by giving concrete slice/by examples ('new users in DE', 'new users by country') plus the interaction with bucket. That adds interpretive value beyond the schema's field-level text.

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 resource (read one metric) and enumerates exactly what is returned: definition fields, readings newest-first, and open decisions bound to it. It is clearly distinguishable from ledger_metrics_list, since it also explains that metricId can come from that sibling.

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 explicit trigger conditions: 'Use before answering how is X trending?' or before recording a reading against it, which routes the agent away from list/create siblings. It stops short of stating when-not-to-use it or naming the recording tool outright, so it falls just short of a 5.

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