Skip to main content
Glama

Fill in a metric's history from its feed

ledger_feeds_backfill

Run the same frozen instruction over a past range, so a metric has history instead of starting the day it was set up. Offer this whenever you create a feed — a chart with a year behind it is worth far more than one that begins today, and an expectation can be judged against what normal looked like. Works when the source returns a series; a source that only ever reports 'right now' will write one point. Safe to repeat: overlapping ranges dedupe. Keep ranges to a few hundred points; a run that fills up says so. May return needs_confirmation.

Input Schema

NameRequiredDescriptionDefault
idYesFeed id, from ledger_feeds_list.
toNoEnd of the range. Defaults to now.
fromYesStart of the range, ISO date or instant.
workspaceNoWorkspace slug. Omit to use the pinned workspace.
approvalIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare write/non-destructive/open-world, so the description carries the real behavioral load: idempotency ('overlapping ranges dedupe'), a size guardrail ('keep ranges to a few hundred points'), and a confirmation flow ('may return needs_confirmation'). This is meaningful context beyond the annotations, though it doesn't explain what is written or permission requirements.

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-loads the core action and the when-to-use cue early, and each clause carries operational information. The 'a chart with a year behind it is worth far more' line is motivational padding, keeping it short of a 5.

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 5-parameter mutation tool with no output schema and annotations covering only safety, the description is thorough: it explains idempotency, batching limits, series requirements, and the confirmation return. Only the meaning of approvalId and failure behavior remain unaddressed.

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 80%, so the schema already documents id, from, to, and workspace. The description adds the 'past range' framing and hints at confirmation (relevant to the undocumented approvalId), but provides no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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 states a specific action (run the frozen instruction over a past range) and a clear outcome (give a metric history rather than starting today), which is distinct from ledger_feeds_run and ledger_feeds_preview. It doesn't explicitly name sibling tools, but the historical-vs-current framing makes the role legible.

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 an explicit trigger ('Offer this whenever you create a feed') and a meaningful precondition ('Works when the source returns a series; a source that only ever reports right now will write one point'). It lacks direct comparison to alternative feed tools, but the when-to-use guidance is clear.

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