Skip to main content
Glama

ASPERN: counterparty checks for agents

A vault’s collateral at its real price

vault_collateral_drift
Read-onlyIdempotent

What a lending vault lends against, at what that collateral actually sells for: each tokenized stock (DEX price against its share on the exchange, live while the exchange is open) and each USD stablecoin (price against $1). Per collateral: exposure in dollars, the gap, the borrowers’ loan-to-value at the token’s price and whether a liquidation at the oracle’s price still pays. A gap is measured, not a loss. 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": {
      "slug": "<slug>"
    },
    "name": "vault_collateral_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe vault slug (from list_vaults) or its address.

Output Schema

NameRequiredDescriptionDefault
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 sentence.
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.
exposuresYesPer collateral, largest exposure first.
worstBelowNoWidest live gap below, 0..1; null when nothing can be read live.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: prices are live only while the exchange is open, the gap is a measured difference rather than a realized loss, and calls are free. It does not discuss rate limits or how staleness is signaled when markets are closed.

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 definition is information-dense and front-loaded with the core idea (real price vs. what it lends against), then enumerates per-collateral metrics. The opening clause is grammatically convoluted and requires rereading, which keeps it just short of 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?

With an output schema present, return values need not be explained, and the description covers freshness, cost, and metric interpretation, which are the parts an agent could not infer. The one gap is routing guidance relative to sibling vault tools, which matters given the large catalog.

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 description coverage is 100% and the single slug parameter is already documented as coming from list_vaults or an address. The description adds nothing about the identifier beyond what the schema states, so the baseline of 3 applies.

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 concrete resource and scope: a lending vault's collateral, priced against the real DEX/market price rather than the oracle, with exposure, gap, borrower LTV, and liquidation-coverage metrics listed explicitly. An agent can tell this is a collateral-valuation tool, but it is framed as a list of outputs rather than a verb, and it does not differentiate from the similarly named sibling vault_drift.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The mention of liquidation coverage implies a solvency/risk-check use case, and 'FREE' hints at cost considerations, but the agent must infer the scenario and cannot compare it to vault_drift, vault_assessment, or vault_risk_dimensions.

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.