Skip to main content
Glama

Privi Ledger

Accept a handshake

ledger_handshake_accept

Accept a handshake addressed to your organization: records the same terms in your log, confirms it in the other company's log, and seals the matched pair on the Privi chain. Requires your organization API key. Read the terms first with ledger_handshake_inbox.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorYesWho is accepting on your side
stream_idYesYour stream to record it in
handshake_idYeshs_... ID from the offer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (write, non-idempotent, non-destructive), the description discloses what actually happens: terms are recorded in the caller's log, confirmed in the counterparty's log, and the matched pair is sealed on-chain. It also notes the API key requirement, which is important authorization context not present in 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?

Three tight sentences, front-loaded with the core action and effects before the prerequisites. Every sentence contributes necessary information with no waste.

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 multi-step write operation with no output schema, the description covers purpose, effects, authorization, and the prerequisite read step. It could be slightly more complete by noting failure modes or the result of sealing, but it is sufficient for an agent to invoke it correctly.

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%, so the schema already documents all three parameters with clear descriptions. The description adds only an indirect hint that handshake_id comes from the inbox, without expanding on stream_id or actor semantics, so the baseline score of 3 applies.

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 states a specific verb (accept) and resource (handshake) scoped to the caller's organization, and describes the concrete effects: recording terms, confirming in the other log, sealing on the Privi chain. This clearly distinguishes it from sibling tools like ledger_handshake_offer and ledger_handshake_reject.

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 explicitly directs the agent to read terms first with ledger_handshake_inbox, establishing a prerequisite. It does not name the alternative actions (e.g., reject) or state when not to accept, leaving some inference to the agent.

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.