Skip to main content
Glama
Keel-Official

keel-mcp

Risk history of a Stellar asset

get_risk_history
Read-onlyIdempotent

Query historical risk bands, flags, depth, and max safe collateral for one asset from a single data source, optionally across a ledger window or all stored readings.

Instructions

A time series of band, flags, depth and max safe collateral for one asset, from ONE data source. Give from and to (ledger sequences, at most 90 days apart) for a window, or omit both to list every stored reading of that source. Reconstructions such as the February 2026 USTRY series live under source offers-implied and are reachable only with both bounds omitted. Band changes are summarised.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoLast ledger, inclusive. Requires from.
fromNoFirst ledger, inclusive. Requires to.
limitNoMost points to return. Default 200 here (the API allows up to 5000).
quoteNoOptional quote asset id. Omit it: every monitored asset is measured against USDC, and every notional in the answer is in that quote asset.
sourceNohorizon (default) and hubble are direct readings; offers-implied and trades-implied are reconstructions, and trades-implied is a lower bound.
assetIdYesKeel asset id: CODE:ISSUER for an issued asset (for example USTRY:GCRYUGD5NVARGXT56XEZI5CIFCQETYHAPQQTHO2O3IQZTHDH4LATMYWC), or XLM. An asset is the (code, issuer) pair, never the ticker alone: use find_asset first when only a code is known.
resolutionNoBucket size for a windowed request. Default day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered. The description adds genuine behavioral context beyond that: the 90-day maximum window, the distinction between direct readings and reconstructions, that trades-implied is a lower bound, and that band changes are summarised rather than returned raw.

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?

Four dense sentences, front-loaded with what the tool returns, then usage conditions, then source semantics. The named USTRY example costs a little space but illustrates the bounds-omitted rule.

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 no output schema and seven parameters, the description carries the burden well: it names the returned dimensions, the windowing rule, the source taxonomy, and the summarisation behavior. Return shape/pagination details are the only notable gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description still adds value the schema lacks: the hard 'at most 90 days apart' constraint on from/to, and the operational consequence of the source enum (reconstructions only reachable without bounds).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('a time series of band, flags, depth and max safe collateral for one asset') scoped to ONE data source. The 'time series' framing implicitly distinguishes it from the snapshot sibling get_asset_risk without ambiguity.

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?

Clearly states the two usage modes: supply from and to for a windowed request, or omit both to list every stored reading. It also names the non-obvious condition that reconstructions like the USTRY series are reachable only with bounds omitted. It does not explicitly name alternative tools, but the when-to-use conditions are concrete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.