Skip to main content
Glama

ASPERN: counterparty checks for agents

Credit markets (Morpho Midnight)

credit_markets
Read-onlyIdempotent

Fixed-rate, fixed-term credit markets (Morpho Midnight, not Cardano Midnight): per market the chain, loan token, maturity and days left, collateral with LLTV and oracle, credit outstanding, posted lend and borrow offers, the best lender and borrower APR and the quotes at 1k, 10k and 100k. Rates are APR (1/P − 1 over the years left), never APY, before fees, not guaranteed. Posted offers are not fillable liquidity: totals count one cap per shared budget. Also whether any Morpho vault lends into Midnight. FREE.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "credit_markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
loanNoA loan token symbol, e.g. USDC.
sortNoposted (default) | credit | maturity | lend_apr | borrow_apr.
chainNoethereum | base | robinhood | tempo | arc | arbitrum.
limitNoMarkets returned, default 20.

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.
meansYesHow to read posted, fillable and the quote states.
limitsYesWhat the reading cannot see.
totalsYesMarkets, live, with offers; credit outstanding, posted lend and borrow, and the fillable floor (one cap per shared budget), per loan token.
marketsYesOne row per market; null where not read, never zero.
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.
vaultAdaptersYesobserved, production, adapters, says: a Morpho vault adapter lending into Midnight, where one is on chain.
rateConventionYesHow the APR is computed and why it is not an 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?

Beyond the readOnly/idempotent annotations it discloses rate conventions (APR computed as 1/P − 1 over years left, never APY, pre-fee, not guaranteed), the accounting caveat that totals count one cap per shared budget, and that the call is FREE. These are substantive semantics an agent could not infer from structured fields. It does not cover pagination/truncation behavior for the default 20-market limit.

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?

Front-loaded with the resource and its disambiguation, then the per-market payload, then caveats. Dense and information-rich, though the opening enumeration runs long and the field list partly duplicates what the output schema already provides.

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?

For a read-only listing tool with a full output schema and full annotation coverage, the description supplies everything needed: scope, the Midnight-vs-Cardano distinction, rate math interpretation, and the liquidity caveat. Remaining gaps (limit/pagination behavior) are minor.

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 documents loan, sort, chain and limit, and the description does not add format or syntax detail for them. It does implicitly give meaning to some sort keys (credit outstanding, lend_apr/borrow_apr, maturity) because those same fields are described as output, which is a marginal gain over baseline.

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?

Names the concrete resource (fixed-rate, fixed-term credit markets on Morpho Midnight) and enumerates exactly what each market record contains: chain, loan token, maturity, LLTV, oracle, outstanding credit, offers, APRs. It also explicitly disambiguates from the unrelated 'Cardano Midnight'. It stops short of naming a sibling such as credit_market_quote as the alternative for size-specific quotes, so routing is inferred rather than stated.

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 rather than stated: the tool plainly serves market discovery/listing, and the note that 'posted offers are not fillable liquidity' warns against treating results as executable depth. There is no explicit 'use this when...' or 'do not use this for a single quote, use credit_market_quote instead' routing sentence.

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.