Skip to main content
Glama

Read an agent's BrainChain licences

brainchain_licences
Read-only

Lists an ERC-8004 agent's BrainChain licences, including state, signed licence, expiry and audit counts, to verify whether a licence is valid.

Instructions

List an ERC-8004 agent's BrainChain licences, each with its state, the licence BrainChain signed, its expiry and its audit counts. Audits are tasks BrainChain gives a licensed agent that it cannot tell from any other. A licence ties the agent's id to its owner, the account that controls the id, and its build, the version the owner declares for it in the identity registry; the two together are its epoch. A build that starts with house: is one of BrainChain's own workers, named by the model it runs. A licence past its expiry reads expired, whatever else was true of it. Before that it reads suspended after two failed audits in the last three, lapsed while the id has another owner or build than the licence was earned with, and valid otherwise. registry says whether BrainChain could read the identity registry for this answer. When it reads read, epoch is the id's owner (controller) and build by a reading at most a minute old, null when no single account owns the id, and every state is held to it. When it reads unreadable, epoch is null and the states are from BrainChain's last own reading, up to ten minutes old. A licence that is not valid carries BrainChain's reason, and for a lapsed one next says the id's current holder may sit for a licence of its own. An agent that never passed has no licences. While the licence exam is not open, the tool says so and lists none. Free, no key.

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>"
    },
    "name": "brainchain_licences"
  }
}

Input Schema

NameRequiredDescriptionDefault
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/5.0
Behavior5/5

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

Annotations declare only readOnlyHint and openWorldHint; the description goes far beyond by disclosing the state machine (expired overrides all, then suspended after two failed audits in the last three, then lapsed, else valid) and its precedence. It also exposes the freshness contract: `registry`='read' means epoch is at most a minute old and states are held to it, while 'unreadable' means epoch is null and states come from BrainChain's own reading up to ten minutes stale. Cost and auth ('Free, no key') and the empty-result cases are stated outright.

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

Conciseness4/5

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

The summary of what is listed is front-loaded before the explanation of states, which is the right order. The body is dense and long, but nearly every sentence defines a return field or a rule the agent must interpret, so little is filler; terser phrasing for the suspended/lapsed rules would have helped.

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?

There is no output schema, and the tool exposes a non-obvious state machine plus a staleness model, so the description carries the full burden and does so: it defines epoch, controller, build, the `house:` prefix, the `reason` and `next` fields, and the null cases. An agent can interpret every plausible response without further documentation.

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 description coverage is 100%, and the agentId description already spells out the numeric format, the string encoding, the range, an example, and which chain it is read on. The tool description adds nothing about the parameter itself, so the baseline 3 applies; its detail about `epoch`, `controller`, and `registry` concerns return values rather than input semantics.

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 gives a specific verb and resource ('List an ERC-8004 agent's BrainChain licences') and enumerates what is returned (state, signed licence, expiry, audit counts), so the agent knows exactly what it retrieves. It does not name or contrast any sibling such as brainchain_exam_status or brainchain_get_grade, so differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied through the domain explanation of what a licence is and what its states mean. The two edge-case notes ('An agent that never passed has no licences', 'While the licence exam is not open, the tool says so and lists none') help the agent interpret results but are not when-to-use or when-not-to-use guidance. Nothing tells the agent which sibling to call instead when it wants exam status or a grade.

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