Documentation
COUNTERPARTY · DOCUMENTATION
How an agent reads the firm record, what a record holds, and how to check it.
The tools
| tool | what comes back |
|---|---|
get_counterparty | Licence status of a capital markets counterparty. Returns the regulator's record of one firm: whether it is licensed, authorised or registered, by which regulator, for what, and since when the register says so. Give a Legal Entity Identifier, or a market and the regulator's firm number. Every field carries its source page and the date it was read. The record is signed; the read leaves a receipt. |
resolve_counterparty | The candidate firms for a name and, if given, a market: each with its identifiers, market, grouping and status. Never a guess at which one is meant. |
list_counterparties | The firms of one market, by grouping or status, paged. |
verify_counterparty | Whether a record's signature verifies against the published keys. Anyone can do the same offline. |
Calls
- 2.1
- One firm, by market and the regulator's firm number:
{"name":"get_counterparty","arguments":{"market":"<market>","firm_number":"<the regulator's firm number>"}} - 2.2
- One firm, by Legal Entity Identifier. Where one identifier covers licences in several markets, the answer is a list of its records:
{"name":"get_counterparty","arguments":{"lei":"<Legal Entity Identifier>"}} - 2.3
- Candidates for a name:
{"name":"resolve_counterparty","arguments":{"name":"<name>","market":"<market>"}} - 2.4
- The firms of a market, paged:
{"name":"list_counterparties","arguments":{"market":"<market>","grouping":"Bank","page":1}}
What a record holds
| field | rule |
|---|---|
| Legal name | As the register writes it, in its own script, with the register's Latin-script form where it gives one |
| Market | The roster market whose regulator holds the register |
| Regulator | The regulator's name, from the Book of Markets |
| Regulator's firm number | The register's own identifier for the firm; the firm's key within the market |
| Licence class and permissions | In the register's own words |
| Plain grouping | Bank · Broker-dealer · Investment firm · Fund manager · Venue · Other |
| Status | In the register's own words, with the date the register gives for it where it gives one |
| Legal Entity Identifier | Only where the match to the open global file is certain. Otherwise empty |
| Registered country | Where the register gives it |
| Web domain | Where the register gives it |
| Parent or group | Only where the register states it |
| Source and date read | For every field: the register page it was read from and the date it was read |
The plain grouping
One plain grouping sits beside the register's own licence class: Bank · Broker-dealer · Investment firm · Fund manager · Venue · Other. It is assigned from the register's class by a fixed table for each register. A class that does not fit is Other.
Signature and receipt
- 5.1
- Each record is signed by its market under that market's record key (key id
allooloo-cmr-2026-10), by the same rule as an issuer record. Keys: allooloo.ai/.well-known/jwks.json. - 5.2
- To check a record offline: remove its signature and receipt members, write the rest as JSON with keys sorted at every level and no spaces, and verify the Ed25519 signature over base64url(protected) + '.' + base64url(that JSON).
verify_counterpartydoes the same. - 5.3
- Every read through the MCP is receipted at mcp.rco-records.ai/mcp, subject type
counterparty. The receipt's answer hash binds it to the exact signed record served. The receipt id is on every answer. - 5.4
- A change to a firm's record is a new version. Earlier versions stay readable: give
versiontoget_counterparty.
Six rules for an agent relying on a record
- Use the official source for each fact, and keep the page, filing or notice that supports it.
- Check that the source covers the right company, security and market before relying on it.
- Check the dates: when the source was published, when it was read, and whether a later notice replaces it.
- Say so when evidence is missing, unavailable or in conflict. A missing filing is a gap, not a finding.
- Finding a record is not permission to act. Check what a clearance covers first.
- Where a record is signed, check the signature, and keep the receipt for each cleared read.
From provenance-guidelines.org.
Access
Any MCP client that speaks Streamable HTTP:
{
"mcpServers": {
"getcounterparty": {
"type": "http",
"url": "https://mcp.getcounterparty.ai/mcp"
}
}
}Claude Code:
claude mcp add --transport http getcounterparty https://mcp.getcounterparty.ai/mcp
- 7.1
- MCP: mcp.getcounterparty.ai/mcp — the same router as mcp.getissuer.ai/mcp; a call is routed to the MCP of the firm's market, which signs the answer.
- 7.2
- Agent card: agent.getcounterparty.ai/.well-known/agent-card.json
- 7.3
- Tools:
get_counterparty·resolve_counterparty·list_counterparties·verify_counterparty - 7.4
- Receipts: every read through the MCP is receipted at mcp.rco-records.ai/mcp; the receipt id is on the answer.
- 7.5
- Registry:
io.github.allooloo/getcounterparty