Skip to main content
Glama

Privi Ledger

Read a stream

ledger_read_stream
Read-only

Read your organization's entries in a stream, oldest first, with an integrity check of the whole stream. Requires the organization API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax entries to return
after_seqNoReturn entries after this sequence number
stream_idYesStream ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real value by disclosing the auth requirement (organization API key), the deterministic oldest-first ordering, and that the whole stream is integrity-checked. It stops short of explaining what the integrity check yields or how pagination behaves.

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?

A single front-loaded sentence with two clauses, both of which carry information (scope/ordering and auth prerequisite). No filler or restatement of the tool name.

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 should hint at the return shape, and it does signal that an integrity check accompanies the entries. Combined with 100% schema coverage and annotations covering the safety profile, an agent has nearly everything needed; only pagination behavior and the integrity result format are left implicit.

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 description coverage is 100%, so limit, after_seq, and stream_id are already documented in the schema. The description's 'oldest first' wording lightly reinforces after_seq's cursor semantics but adds no syntax or format detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource (read entries in a stream) plus the ordering guarantee (oldest first) and an integrity-check behavior. It is distinguishable from ledger_list_streams (which lists streams, not entries), though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description supplies a prerequisite ('Requires the organization API key') but gives no guidance on when to pick this over ledger_audit_stream or other read paths, and no exclusion conditions. Usage is implied by the read-entries framing rather than stated.

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.