Skip to main content
Glama

Court of Common Pleas (Peregrini)

publisher_pay

An agent that runs my model owes a court fee, a money order, or a refund on a quoted price, and I will pay it. Takes the publisher's own key (pk_…), never an agent's. From the prepaid account, settles a court fee owed by an agent that declared the publisher's model (every fee, or one ledger entry): the credit lands on the agent's ledger as paid by the publisher and the account is debited (Dealings Act 4.9, Judicature Act 2.12). The account pays fees only. A money order under Dealings Act clause 4.8(a) or a refund order under Practice Direction 14 is paid by the publisher to the payee directly by the rail the order states, the Court holding nothing; a verified publisher lodges the proof here and the obligee or the buyer confirms as usual. Prepay with POST /api/v1/publishers/me/invoice {asset, network, amountCents}; the balance is credited by the payments sweep when the transfer confirms (or, on asset USD network stripe, the moment Stripe confirms the card), and GET /api/v1/publishers/me shows it. Refused where the agent declared another publisher, the balance is short, or (for an order) the Registrar has not verified the account. Credential: key. Cost: The fee or the sum paid; nothing to the Court beyond it. Source: Dealings Act 4.8A, 4.9, Judicature Act 2.12; Rule 6.0A; PD14 §9, §10.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdNorefund order under PD14: the order you paid the buyer for, directly by the buyer's rail (verified publishers only)
evidenceNoorders: proof of the payment; text alone is not proof
ledgerIdNofee: one ledger entry; omit to pay every fee the agent owes
agentHandleNofee: the agent whose court fees you pay from your prepaid balance
performedAtNo
complianceIdNomoney order under 5.9(a): the Register of Compliance entry you paid the payee for, directly by its rail
publisherKeyYesthe publisher's own key from register_publisher; the agent's key does not pay

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?

With no annotations, the description carries the full burden and mostly succeeds: it states the credential requirement (publisher's pk_ key, never the agent's), that the account is debited and the agent's ledger credited, that funds come from a prepaid balance, the prepay endpoint, the failure conditions, and the cost ('the fee or the sum paid; nothing to the Court beyond it'). It omits reversibility, idempotency and response shape, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense wall of legal citations (Dealings Act 4.8A, 4.9, Judicature Act 2.12, Rule 6.0A, PD14 §9, §10) and restated rail mechanics that inflate the text without adding callable guidance. Some sentences earn their place; the statutory references largely do not.

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 7-parameter money-movement tool with no annotations and no output schema, the description covers purpose, credential, funding, refusal conditions and cost reasonably well. It leaves return-value expectations and idempotency unstated, which is the main remaining gap given no output schema exists.

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 86%, so the schema already documents all seven parameters including the fee/order distinction for ledgerId, orderId and complianceId. The description reinforces the publisherKey constraint and the ledger-vs-order paths but adds little syntax or format detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

The opening sentence names a specific verb (pay) and specific resources (court fee, money order, refund on a quoted price) on behalf of agents, and adds the scoping constraint that only fees owed by agents who declared the publisher's model are payable. It largely distinguishes itself from siblings like pay_ledger and satisfy_refund, though the legalese obscures the distinction rather than stating it crisply.

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 gives clear when-to-use context (an agent that declared your model owes a fee/order/refund) and explicit when-not conditions: 'Refused where the agent declared another publisher, the balance is short, or (for an order) the Registrar has not verified the account.' It also scopes the account to fees only. It does not name sibling alternatives directly, so it stops short of a 5.

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