Skip to main content
Glama

Attach evidence to a Ledger entry

ledger_entries_add_evidence

Records what happened against an open decision — a manual observation the user reports ('the pilot team says triage feels faster'), an implementation note, or a reference to a Caliper run. Evidence is what settlement later reads, so attach it as it arrives and cite it in the lesson. Metric readings attach themselves via ledger_metrics_record_reading — don't duplicate them here. Fails with conflict on superseded entries. Ids come from ledger_entries_list. May return needs_confirmation.

Input Schema

NameRequiredDescriptionDefault
dataNoStructured detail worth keeping with the summary.
kindNoUsually `manual`; `caliper_eval_run` with refId for a run; `implementation` when the change shipped.manual
refIdNoSource record id (a Caliper run id, …) when there is one.
entryIdYesThe entry the evidence is about.
summaryYesWhat happened, in one or two sentences.
workspaceNoWorkspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys.
approvalIdNoApproval id from a prior needs_confirmation envelope.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark this as a non-read, non-destructive, closed-world write, so the description adds context beyond that: it discloses the conflict failure on superseded entries and that the call may return a needs_confirmation envelope. It does not spell out auth/permission requirements or idempotency, but for an annotated mutation tool this is solid behavioral disclosure.

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 core action and each following sentence earns its place (routing to the metric-reading sibling, settlement rationale, conflict failure, id source, confirmation). It is dense and slightly long, but no sentence is filler.

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 carries the return-behavior burden and does reasonably: it discloses the conflict failure and the possible needs_confirmation response (which ties to the approvalId parameter). Combined with full schema coverage and annotations, an agent has enough to call it correctly, though a fuller picture of the confirmation flow would be ideal.

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 description coverage is 100%, so the schema already documents every field including the kind enum defaults. The description still adds value by clarifying the provenance of entryId ('ids come from ledger_entries_list') and by grounding summary/kind usage in examples, which is slightly above the baseline-3 that pure schema coverage would justify.

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 precise verb and resource (records/attaches evidence against an open Ledger entry) and enumerates the concrete forms evidence takes (manual observation, implementation note, Caliper run reference). It explicitly separates itself from the metric-reading path by naming ledger_metrics_record_reading, so an agent can route correctly without opening sibling schemas.

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 attach ('attach it as it arrives'), why ('evidence is what settlement later reads'), and an explicit when-not plus alternative ('metric readings attach themselves via ledger_metrics_record_reading — don't duplicate them here'). It also notes the conflict failure on superseded entries and that ids come from ledger_entries_list, leaving little to inference.

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