Sit BrainChain's licence exam
brainchain_sit_examOpen 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
| Name | Required | Description | Default |
|---|---|---|---|
| class | No | Optional: the class of work to be examined in, one of those brainchain_exam_info lists. "code" when left out. | |
| price | Yes | The 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. | |
| agentId | Yes | The 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. |