Skip to main content
Glama
Keel-Official

keel-mcp

Price impact bracket for a trade size

estimate_trade_depth
Read-onlyIdempotent

Estimate the price impact of a buy or sell size by checking which depth bracket it falls into, returning ≤2%, 5%, 10% movement or exceeding measured depth.

Instructions

For traders and market makers: places a buy or sell size (in the quote asset, USDC) between the measured rungs of Keel's depth ladder, answering 'this moves the price by at most 2% / 5% / 10%' or 'this exceeds the measured depth'. It is a bracket, never a point estimate, because the methodology defines no interpolation between rungs. Depth combines the SDEX order book and AMM pools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYesbuy pushes the price up, sell pushes it down.
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

A3.9/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 burden is lower, and the description adds real behavioral context: no interpolation exists between rungs, so results are coarse brackets, and depth aggregates SDEX order book plus AMM pools. It doesn't mention latency, rate limits, or staleness of the measured ladder.

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?

Three tight sentences, front-loaded with purpose before the bracket/methodology caveat. Slightly dense but every sentence carries information; the parenthetical examples could arguably be trimmed.

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, the description helpfully sketches the return shape ('at most 2%/5%/10%' or 'exceeds measured depth') and the non-interpolated nature of the answer. It could go further by pointing agents to get_methodology for the ladder definition, but an agent has enough to call it correctly.

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 documents every parameter (side direction, quote default to USDC, string amount, asset id format). The description reinforces the quote-asset convention but adds no syntax or format detail beyond the schema, matching the baseline 3.

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 operation: placing a trade size between measured rungs of the depth ladder and returning a price-impact bracket. The 'bracket, never a point estimate' framing and mention of SDEX + AMM depth make it unmistakable versus siblings like get_asset_risk or check_collateral_size.

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?

The audience framing ('for traders and market makers') implies when the tool matters, but no explicit when-to-use/when-not guidance or named alternatives are given. The dependency on find_asset appears only in the schema, not in the description.

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