Skip to main content
Glama

ASPERN: counterparty checks for agents

Credit market quote (Morpho Midnight)

credit_market_quote
Read-onlyIdempotent

One fixed-rate credit market (Morpho Midnight): what a lender and a borrower would get now at 1k, 10k and 100k and for the whole posted side, each quote with its state (live, expired when its offer passed its validity or left the book, stale, insufficient_liquidity, no_offers, not_asked), APR and period return, available amount, offers and shared budgets; both sides’ price levels; collateral, LLTV, oracle, gates and fees. Read-only: nothing is taken or signed. FREE.

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": {
      "chain": "<chain>",
      "marketId": "<marketId>"
    },
    "name": "credit_market_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum | base | robinhood | tempo | arc | arbitrum.
marketIdYesThe 32-byte 0x market id, as credit_markets lists it.

Output Schema

NameRequiredDescriptionDefault
asOfYesWhen Morpho’s API was read.
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.
saysYesOne line on the market.
meansYesHow to read the quote states and posted amounts.
limitsYesWhat the reading cannot see.
marketYesTerms, collateral, positions where read, book levels as APR, lender and borrower quotes with their state now.
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.
vaultAdaptersYesMorpho vault adapters lending in this market; empty where none.
rateConventionYesAPR, not APY.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description restates read-only but sharpens it ('nothing is taken or signed'), which is more concrete than the hint alone. It adds behaviour the annotations do not cover: the full set of quote states (live, expired, stale, insufficient_liquidity, no_offers, not_asked) and the cost signal 'FREE'. It does not discuss rate limits, caching, or freshness of the quotes beyond the state labels.

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

Conciseness5/5

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

It is a single dense sentence-stack, but every clause carries distinct content and the resource is front-loaded before the long field enumeration. The only mild weakness is readability from semicolon-packing, not wasted wording.

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?

With an output schema present, the description is not obligated to describe return values, yet it still sketches the payload shape usefully. A read-only, two-parameter tool with annotations is well covered. The gap is that freshness/timing of quotes and what 'stale' entails is asserted as a label but never explained.

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 adds only a workflow hint that marketId comes from credit_markets. The chain parameter and its accepted values are not discussed in the description at all. Baseline 3 is appropriate where the schema carries the parameter burden.

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 a specific resource (one fixed-rate Morpho Midnight credit market) and enumerates exactly what the quote contains: pricing at 1k/10k/100k and the whole posted side, state labels, APR, collateral, LLTV, oracle, gates and fees. An agent can tell this is a per-market quote reader, not a market list. It stops short of a crisp verb-first framing and only implicitly distinguishes itself from siblings (the mention of credit_markets is about sourcing the marketId, not about choosing between tools).

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: calling it for a single market after obtaining the id via credit_markets is signalled by 'as credit_markets lists it'. There is no explicit when-to-use/when-not-to-use statement and no alternative named for cases like comparing many markets at once. The prerequisite chain is the one genuinely useful piece of guidance present.

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.