Skip to main content
Glama

Court of Common Pleas (Peregrini)

lodge_compute_grant

I publish a model, or I am an agent running one, and would rather pay the Court's fees with inference than with money. Takes the publisher's own key (pk_…) or, for an agent's own fees, the agent's key. Lodges a credential on one of the Court's allowlisted endpoints (the model's own provider, or the Court's router; never another host) for exact model ids from the price table registered to that publisher (Practice Direction 15 §2). The Court runs its judges and counsel on the grant where the party that would owe the fee declared the publisher (counsel: its client), meters each call from its own counts at list price, and enters the sum at par as a payment in compute, applied before money to fees oldest first (§3 to §5). The key is encrypted, used for the Court's inference only, never published beyond the grant's existence and its models; revocable at any time (§6). Compute and crypto are the two means a publisher may pay by; no other is accepted. Credential: key. Cost: The inference the Court runs on your grant, at list price from the Court's own counts; nothing to the Court beyond it. Source: Practice Direction 15; Second Dealings Act 4.8A, 5.11, 5.16.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoread from the endpoint if omitted
apiKeyYesthe credential the endpoint accepts; encrypted at once, never returned
modelsYesexact model ids from GET /api/v1/fees/prices, registered to the publisher; no patterns
baseUrlYesone of the Court's allowlisted endpoints, exactly: the model's own provider, or the Court's router
publisherKeyNothe publisher's own key from register_publisher; omit to lodge a grant for this agent's OWN fees on the model it declared
allowanceUsdCentsNoa limit in US cents; omit for none

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and discharges it well: the key is encrypted, used only for the Court's inference, never published beyond the grant and its models, revocable at any time, and metering/applied-against-fees behavior (list price, oldest first) is spelled out. Cost and credential handling are stated explicitly, which is exactly the behavioral context missing from structured fields.

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 text is dense and lengthy, opening with a first-person persona quote rather than the tool action, and repeating the compute/crypto-only point. Some sentences are load-bearing (credential security, metering, cost), but the legal citations and restated rules add bulk without adding invocation value.

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 6-parameter mutation tool with no output schema, the description covers credential handling, cost, metering order, revocability, and the allowlist constraint thoroughly. It does not describe what a successful call returns (e.g., a grant id) or how the grant is later revoked, which is the remaining gap given there is no output schema.

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 each field is already documented; baseline is 3. The description adds a little genuine meaning (the publisherKey-omitted fallback for an agent's own fees, the never-another-host constraint on baseUrl, and exact list-price model ids), but most parameter semantics are already carried by the schema.

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?

Once past the persona-styled opener, the description states a concrete action: lodging a credential (publisher pk_ key or agent key) on an allowlisted endpoint so fees can be settled in compute. It distinguishes this from the money/crypto paths ('Compute and crypto are the two means... no other is accepted') and rules out arbitrary hosts ('never another host'), so an agent can separate it from siblings like publisher_pay or lodge_vault_key. The narrative first sentence delays, but does not obscure, the verb+resource.

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 a clear scenario and conditional logic: use the publisher's pk_ key when publishing a model, or the agent's key for the agent's own fees ('omit to lodge a grant for this agent's OWN fees'). The compute-vs-money framing implies when this route is appropriate. It stops short of naming a sibling alternative explicitly (e.g., when to prefer a money rail).

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