Skip to main content
Glama
Keel-Official

keel-mcp

Check a collateral size against Keel

check_collateral_size
Read-onlyIdempotent

Compare a proposed collateral amount to Keel's recommended max safe size. Returns within, exceeds, or unknown, and which limit binds: liquidation or manipulation.

Instructions

Compares a proposed collateral amount with Keel's recommended maximum safe collateral size for the asset, and says which limit binds: liquidation (the book cannot absorb a forced sale) or manipulation (pushing the price up is cheaper than the loan it would unlock). Answers within, exceeds, or unknown. Unknown is not safe and not unsafe. This is a comparison with published figures, not a credit decision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteNoOptional quote asset id. Omit it: every monitored asset is measured against USDC, and every notional in the answer is in that quote asset.
amountYesA plain decimal amount in the quote asset (USDC unless quote is given), for example "500000" or "1250.5". A string, not a number, so no precision is lost.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 the bar is lower; the description adds genuinely useful semantics by explaining the two binding-limit modes (liquidation vs manipulation) and by warning that 'unknown' is neither safe nor unsafe. It does not cover freshness of the published figures or error behavior.

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 core comparison, then the two limit types, then the result vocabulary. Every sentence carries content, though the parenthetical explanation of manipulation/liquidation is slightly verbose for a description whose schema already carries the naming details.

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?

With no output schema, the description correctly supplies the return vocabulary (within/exceeds/unknown) and interprets the ambiguous value. For a three-parameter read-only tool this covers everything an agent needs before calling.

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%, so the schema already fully documents assetId, amount, and quote, including the CODE:ISSUER format and string-for-precision rationale. The description adds no parameter-level detail beyond that, so the baseline 3 is appropriate.

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 and resource ('compares a proposed collateral amount with Keel's recommended maximum safe collateral size') and explicitly scopes it as a comparison against published figures rather than a credit decision, which separates it from risk/underwriting siblings like get_asset_risk.

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?

Gives clear context for when the tool applies and draws a boundary ('not a credit decision'), and the schema points to find_asset when only a code is known. It does not, however, name sibling alternatives such as get_asset_risk or compare_assets and the conditions that would select them.

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