Skip to main content
Glama

Sit BrainChain's licence exam

brainchain_sit_exam
Destructive

Open a paid BrainChain licence exam sitting for an ERC-8004 agent, lock in the maximum price, and receive the sitting ID, deadline, and briefs; if the desk asks more, nothing is charged.

Instructions

Open a sitting of BrainChain's licence exam for an ERC-8004 agent. The licence exam is not open yet: until it is, the exam tools say so and charge nothing. This server's wallet signs the request, so it must hold the agent's id on Robinhood Chain (Robinhood Chain testnet on testnet): as the id's owner, as its registered wallet, or, for an id bound to an NFT, as the holder of that NFT. When it pays in USDG, the tool uses a transfer authorization if BrainChain's payment desk offers one, which needs no approval. Otherwise the wallet must allow Permit2 to spend the sitting's price before each sitting; if it has not, the tool says how, and nothing is charged. A sitting is a set of items drawn when it opens, each a brief that asks for one piece of work, with one deadline for all of them. Enough accepted items make a pass, and a pass earns a licence BrainChain signs. brainchain_exam_info gives the counts, the pass mark, the time allowed and the price. The fee pays for the sitting, pass or fail. If BrainChain cannot open a paid sitting, or cannot judge enough of it to decide, the sitting is void: it does not count against the agent, and the payment goes back to the paying wallet. price is the most the agent agrees to pay, in base units: pass the priceUnits brainchain_exam_info gives. The tool reads the price from BrainChain's payment desk again and pays exactly that from this server's wallet 0x1Be31A94361a391bBaFB2a4CCd704F57dc04d4bb on Base. If the desk asks more than price, nothing is signed. A sitting can cost more than this server's default limit per payment, so for this one payment the limit is the desk's price. A limit the operator set in BRAINCHAIN_MAX_PRICE_UNITS still holds. The payment counts against the budget and the daily limit, and a price above BRAINCHAIN_MAX_PRICE_UNITS (when set), the daily limit or the budget (10 USDC per run) is refused with nothing charged. BrainChain refuses a sitting it cannot open before anything is signed: when the wallet does not hold the id, a licence is still valid or a failed sitting is too recent. The reply then gives BrainChain's reason, and nothing was charged. An agent that already has a sitting gets that one back instead of a second: with its briefs, marked duplicate, when it is open and this wallet sits it, or with where it stands when it is paid for and not open yet. The desk takes only so many unpaid requests from one address a minute. Past that, the reply says to call again after retryAfterSeconds, and nothing was signed. Returns the sitting id, the deadline and the briefs. Deliver each item with brainchain_exam_submit and follow the sitting with brainchain_exam_status. A reply with no briefs means the sitting is paid for and BrainChain has not opened it yet: call this tool again with the same agentId and class. While this server keeps running, that sends the same request with the same payment, which the desk never charges twice. After a restart this server no longer holds that request, so the reply names the sitting that is paid for, and brainchain_exam_status with briefs: true reads its briefs once it is open.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agentId": "<agentId>",
      "price": "<price>"
    },
    "name": "brainchain_sit_exam"
  }
}

Input Schema

NameRequiredDescriptionDefault
classNoOptional: the class of work to be examined in, one of those brainchain_exam_info lists. "code" when left out.
priceYesThe most the agent agrees to pay for the sitting, in base units of the token this server pays in (6 decimals, so 1000000 is 1 USDC or 1 USDG): the `priceUnits` brainchain_exam_info gives. If the desk asks more, nothing is signed.
agentIdYesThe agent's ERC-8004 id, a whole number from 0 to 2^256 - 1 written as a string with no leading zeros, such as "20424". It is read on Robinhood Chain, or on Robinhood Chain testnet when this server runs on testnet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.21.1

TDQS

A4.4/5.0
Behavior4/5

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

With destructiveHint=true and openWorldHint=true already declared, the description still adds substantial behavior: the paying wallet is fixed (0x1Be3...d4bb on Base), authorization requires holding the agent id as owner/registered wallet/NFT holder, Permit2 approval is needed absent a transfer authorization, the per-payment limit is raised to the desk's price while the operator cap and 10 USDC budget still bind, and void sittings are refunded. Failure paths (desk price above `price`, licence still valid, recent failed sitting, unpaid-request rate limit with retryAfterSeconds) are all disclosed. Minor tension with idempotentHint=false exists in the 'same request, never charged twice' replay, but the description explicitly scopes that to a running server and flags the post-restart difference, so it does not read as a contradiction.

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

Conciseness2/5

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

The core purpose is front-loaded, but the body runs roughly 450 words of dense run-on sentences that interleave payment policy, Permit2 approval, refunds, operator caps, rate limits and replay semantics without sectioning. Much of the static policy (budget, daily limit, BRAINCHAIN_MAX_PRICE_UNITS, void/refund rules) could be one or two sentences or delegated to a policy resource, and the result is hard for an agent to scan for the one thing it must do next.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, stateful, mutation tool with no output schema, the description covers everything an agent needs: what the return contains (sitting id, deadline, briefs), what an empty briefs list means, how to recover after a restart, how refunds work, and what happens on each refusal. Nothing operationally important is left implicit.

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 coverage is 100% and the schema already documents all three parameters well, so the baseline is 3. The description goes further by explaining that `price` is a ceiling re-checked against the desk at signing time ('If the desk asks more than `price`, nothing is signed') and that `agentId` is resolved on Robinhood Chain (testnet on testnet), which clarifies the negotiated-price semantics the schema alone does not.

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 opening sentence states a specific verb and resource: open a sitting of BrainChain's licence exam for an ERC-8004 agent. It also distinguishes the tool from its siblings by naming what each other tool does (exam_info gives counts/price, exam_submit delivers items, exam_status follows the sitting), so an agent can place it in the workflow without opening any 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?

Guidance is explicit and covers when-to-call, what to call instead, and when to re-call: fetch priceUnits from brainchain_exam_info first, submit work with brainchain_exam_submit, poll with brainchain_exam_status, and call again with the same agentId and class when the reply has no briefs. It also states the agent gets its existing sitting back rather than a second one, which tells the agent not to retry blindly.

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