Skip to main content
Glama

ASPERN: counterparty checks for agents

A vault’s hashed assessment document

vault_assessment
Read-onlyIdempotent

THE HASH-COMMITTED ASSESSMENT OF A VAULT, in the shape ERC-8004’s Reputation Registry points at, and the only thing here a third party can publish on chain under their own name. Until 2026-10-21 this document was reachable from the API and the web and from NO tool, so an agent could read every figure behind it and not the document itself. Each dimension is its own score and they are never blended: a vault can have an excellent record and a poor provenance grade, and one number would destroy the distinction this platform exists to draw. data.document is what the hash covers, byte for byte, and data.feedbackHash is that hash. READ data.document.refusals BEFORE ANY MISSING DIMENSION: from aspern-0.4 an absent dimension is UNREAD unless a refusal names it, and a refusal means we hold a reading we will not stand behind — a liquidity share over 100% of the vault, for instance, which is a disagreement between two of our own readings rather than a fact about the vault. data.alsoPublished sits deliberately OUTSIDE the hash: the risk band, the lending figures and the books reconciliation are ASPERN’s own reading, and a consumer attesting the hash is attesting the document alone. data.erc8004 carries the call arguments for whoever wants to publish it; ASPERN does not make those calls and never holds a mainnet key. Ask for an older methodology to rebuild a document at the version a hash was issued under; the list is on /v1/meta. Free. Every document is kept by its hash: snapshot.url (GET /v1/assessments/{hash}) returns it exactly, with the rule (canonical JSON with sorted keys, UTF-8, keccak-256 over document only) and snapshot.verify, a standalone script with test vectors that recomputes the hash with no code of ours.

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": {
      "slug": "<slug>"
    },
    "name": "vault_assessment"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe vault’s slug, or its contract address — either resolves.
methodologyNoBuild the document at an older methodology version, so a hash issued under it stays checkable. Omit for the current one. THIS IS THE DOCUMENT’S OWN VERSION and not `meta.methodologyVersion`, which stamps every answer this API serves and moves for different reasons; the two were one number until 2026-10-21 and will drift apart.

Output Schema

NameRequiredDescriptionDefault
dataNoThe document and everything published beside it: `document` (what the hash covers, with `assessments`, `observations`, `refusals` and `limitations`), `feedbackHash`, `alsoPublished` (our own risk band, lending figures and books reconciliation, deliberately OUTSIDE the hash) and `erc8004` (the call arguments, one giveFeedback per dimension). Null where no document could be built.
metaNoHow current this answer is and what it was read from: `freshness` and the ages behind it. Present on every answer from this server, whatever the tool.
slugNoThe vault this document is for, read back so an answer cannot be attached to the wrong vault.
metricNoAlways `assessment` here. The route answers in the availability envelope every per-vault reading uses.
warningsNoAnything the server wants a caller to know about THIS answer before acting on it. Empty is the normal case and is not a guarantee.
availabilityNoWhether a document could be built at all, and when it was read. An assessment rests on a record: where there is not enough of one, `status` says so and `data` is absent, which is a fact about OUR evidence for this vault and not a judgement of the vault.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and open-world behavior, yet the description adds substantial context on top: the call is free, documents are retained immutably by hash and retrievable at GET /v1/assessments/{hash}, a standalone verification script with test vectors exists, ASPERN never holds a mainnet key and makes no publishing calls, and `data.alsoPublished` deliberately falls outside the hash. It also discloses a subtle failure mode — refusals representing readings the platform will not stand behind, such as a liquidity share over 100%.

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 opening clause is front-loaded and does the identifying work, but the body is a dense unbroken run of sentences mixing return-shape detail, methodology caveats, hashing rules and publishing policy. Almost every sentence carries content, yet the all-caps emphasis and the volume of return-value detail make it slower to scan than it needs to be. Restructuring into short blocks would preserve the content at half the length.

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?

Given an output schema exists and the tool is a simple two-parameter read, the description is more than complete, going as far as explaining `data.document`, `data.alsoPublished`, `data.erc8004` and the verification route. The main gap is failure behavior — nothing says what happens with an unknown slug or an unavailable methodology version. Otherwise an agent has everything needed to call it correctly.

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 both parameters are already documented, and the description largely restates them — including the slug-or-address resolution that the schema already states. It does sharpen the `methodology` parameter's semantic distinction from `meta.methodologyVersion`, but that distinction is also present in the schema description. Baseline 3 is appropriate given the schema does the work.

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 description names the resource precisely: the hash-committed assessment document of a vault, in ERC-8004 Reputation Registry shape, with `data.document` and `data.feedbackHash` called out. It also implicitly separates itself from the numeric siblings by stressing that each dimension is its own score and never blended, so an agent knows this returns the document rather than the figures. The operative verb is buried inside a long narrative rather than stated up front, which keeps it short of a 5.

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 real conditional guidance: ask for an older `methodology` when rebuilding a document at the version a hash was issued under, omit it for the current one, and it warns that a consumer attesting the hash attests the document alone and not `data.alsoPublished`. It also instructs the agent to read `data.document.refusals` before treating any missing dimension as absent. It stops short of naming which sibling to use when the agent wants the underlying figures instead.

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.