Skip to main content
Glama

liquidation_price

Liquidation price for a long or short at a given entry, leverage and maintenance margin. 0.001 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
sideYeslong or short
entryYesEntry price
leverageYesLeverage, e.g. 5
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.
maintenanceMarginPctNoMaintenance margin percent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose a key trait: a paid call at 0.001 USDC via x402. However, it does not state that the operation is a pure computation with no side effects, nor describe the output shape, leaving meaningful gaps for an unannotated tool.

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?

Two short sentences, with the functional purpose front-loaded and the cost note secondary. Nothing is wasted, though the phrasing is telegraphic rather than fully polished.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple calculator with full schema coverage and no output schema, the description is adequate but incomplete: it never says what is returned (a single price, or separate values per side) or that no authentication beyond payment is needed. An agent could call it, but with residual uncertainty about the result.

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 every parameter including paymentProof and maintenanceMarginPct is already documented in the schema. The description only echoes the input names without adding format or edge-case detail (e.g., side case-sensitivity, whether maintenanceMarginPct is a percent or fraction), so baseline 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 specific computed quantity (liquidation price) and its inputs (entry, leverage, maintenance margin), which is more precise than a bare restatement of the name. It does not explicitly distinguish itself from related siblings such as position_pnl or break_even_price, so it stops short of a 5.

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 guidance on when to reach for this tool versus related calculators like break_even_price, position_pnl, or risk_reward. The only usage-adjacent information is the pricing note, not an invocation condition or exclusion.

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.