Skip to main content
Glama

JOBFLOW

Seal the proof pack

proof_seal
Idempotent

Hashes and closes the proof pack after the work is completed. Needs state WORK_COMPLETED. Never: Issue the invoice. Platform fee CHF 0.05 per accepted call: quote first, then send quote_id, mandate_token and idempotency_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flow_idYesThe flow (job) id, which is also its chain id.
evidenceYes
quote_idNoA valid quote for this capability (quote).
mandate_tokenYesThe mandate token from mandate.create.
idempotency_keyNoRequired on every mutate and money call; a retry with the same key returns the same result and is not charged again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=false, but the description adds behavior the annotations cannot: a state gate (WORK_COMPLETED) and a per-call cost ('Platform fee CHF 0.05 per accepted call'), which is important spend context for a money-touching call. It stops short of describing the result of sealing or whether the pack becomes immutable.

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 action and its precondition, then the exclusion, then the cost/sequence. Every clause carries information an agent needs; nothing is redundant 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?

For a mutating, money-charging tool with no output schema, the description covers the precondition, the sibling it is not, the fee, and the idempotency/quote flow. It does not say what the seal returns (e.g., seal id/hash) or whether sealing forecloses further evidence edits, which would complete the picture.

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 already 80%, so the schema carries most parameter meaning (flow_id, evidence, idempotency_key are all documented inline). The description adds dependency ordering the schema does not express: quote must be obtained first, then quote_id, mandate_token and idempotency_key are submitted together.

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?

States a concrete verb pair and resource: 'Hashes and closes the proof pack after the work is completed.' It also pre-empts confusion with the invoice_issue sibling via 'Never: Issue the invoice,' so an agent can separate this from invoice_issue without opening either schema.

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?

Gives an explicit precondition ('Needs state WORK_COMPLETED'), an explicit exclusion ('Never: Issue the invoice'), and the required payment sequence ('quote first, then send quote_id, mandate_token and idempotency_key'). When-to-use, when-not-to-use, and the ordering prerequisite are all 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.

Resources