Skip to main content
Glama
aeoess

agent-passport-system-mcp

aps_verify_settlement

Validate a signed SettlementRecord by verifying S1-S5: signature, Merkle root, conservation (prevents share inflation), residual shape, and optional input receipt cross-check. Returns validity with reason.

Instructions

Verify a signed SettlementRecord under S1-S5 (signature, Merkle roots, conservation, residual shape, optional input-receipts cross-check). S3 conservation is the strongest invariant: a gateway cannot inflate or suppress any contributor's share without breaking it. Returns {valid: true} or {valid: false, reason, detail}. Pass inputReceipts to also recompute input_receipts_hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordNoA signed SettlementRecord
gateway_public_keyYesGateway Ed25519 public key hex
input_receiptsNoOptional — the input Attribution Primitives that fed the settlement. When supplied, S5 cross-checks input_receipts_hash and verifies each receipt individually.
Behavior3/5

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

No annotations provided, so description must disclose behavior. It explains the verification steps, emphasizes S3 conservation, and details return format. However, it does not explicitly state whether the tool is read-only or has side effects, and lacks information on permissions or rate limits.

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 sentences with no redundancy. First sentence states purpose, second adds key insight about S3, third explains return and optional parameter. Each sentence is essential and efficiently structured.

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?

Covers main verification steps, return format, and optional cross-check. No output schema exists, but return values are described. Could be slightly more detailed about required fields in the record object, but overall adequate for the tool's complexity.

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 base is 3. Description adds marginal value by explaining the purpose of input_receipts (cross-check) but does not expand on record or gateway_public_key beyond schema descriptions.

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?

Description clearly states the tool verifies a signed SettlementRecord under S1-S5 checks, specifying verb and resource. While it does not explicitly differentiate from sibling verification tools, the name and content are specific enough.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. Mentions optional inputReceipts for cross-check but does not discuss prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aeoess/agent-passport-system-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server