Skip to main content
Glama

ASPERN: counterparty checks for agents

Does a tokenized stock hold its share price (paid)

stock_peg
Idempotent

Does each token of one share hold that share’s price? Per token: the share on its exchange times the shares the token stands for, against the issuer’s reference and the deepest DEX pool, with the gap now and over the last seven days (worst gap, hours out of band while the exchange was open). PAID, one cent a call over x402; a question that matches no share is refused before any payment. A gap while marketOpen is false can be the token trading while the share cannot, and a DEX gap counts only on pools at least bands.thinPoolUsd deep. WHY readOnlyHint IS false: calling it WITH an x402 payment authorisation transfers USDC from the caller to us and records a receipt; called without one it changes nothing and answers with the price.

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": {
      "q": "<q>"
    },
    "name": "stock_peg"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesAn ISIN (US0378331005), a share ticker (AAPL) or a token symbol (AAPLx).
chainNoOptional network, e.g. base, to read the tokens there only.

Output Schema

NameRequiredDescriptionDefault
isinYesThe share the question resolved to.
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.
bandsNoThe holds and drifts bands and the minimum DEX pool depth.
tickerNoIts exchange ticker, where found.
tokensYesOne row per token in issue: state (holds, drifts, breaks, not_established), the gaps, marketOpen, readAt and week.
paymentNoWhat was paid and how it settled.
shareUsdNoThe share’s last exchange price read.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Strong disclosure beyond the annotations: it explains exactly why readOnlyHint is false (an x402 payment authorisation moves USDC and records a receipt; without it nothing changes), and warns that a gap while `marketOpen` is false may be the token trading when the share cannot, and that DEX gaps only count on pools at least `bands.thinPoolUsd` deep. That is real behavioural context the annotations cannot convey. It stops short of 5 only because rate limits, retry/expiry semantics for the payment, and failure modes beyond 'no matching share' are unspecified.

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 framing question leads, followed by the computation, then cost, then caveats — a sensible front-loading order with no filler sentences. It is dense to the point of being hard to parse in one pass (long clause chains, backticked field names inline), which keeps it off a 5.

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?

An output schema exists, so return-value shape need not be explained; the description instead covers the parts it must: cost and payment mechanics, refusal on unmatched queries, and two interpretation caveats for the reported gap. What is thin is the input side — how `chain` narrows results and how the three identifier forms resolve — plus the seven-day window's exact basis.

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 the schema already defines `q` (ISIN, ticker, or token symbol) and `chain`. The description adds only the refusal behaviour for non-matching questions and never mentions the `chain` filter's role in scoping tokens, so it is baseline rather than additive.

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 (a tokenized share) and the computation precisely: per-token share price on its exchange times shares represented, checked against the issuer reference and the deepest DEX pool, with the gap now and over seven days. An agent can tell this is a peg/price-consistency check, not a generic price lookup. It does not explicitly differentiate itself from siblings like compare_stock_tokens, so it stops 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 Guidelines3/5

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

Usage is implied by the framing question and by the payment note ('one cent a call over x402'; unmatched questions are refused pre-payment), which tells the agent this is a priced lookup to invoke when you have a share identifier. There is no explicit when-to-use versus when-not, and no routing to an alternative sibling for related questions.

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.