Skip to main content
Glama

order_preflight

Read-only

Check whether a limit/DCA order for this pair and size would be executable: oracle support, liquidity, minimum size. Run this before signing an order. Amounts are RAW token units.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenInYesERC-20 address of the token being sold (0x-hex)
amountInYesamount of tokenIn in RAW token units (decimal string, already scaled by the token's decimals)
tokenOutYesERC-20 address of the token being bought (0x-hex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark read-only and non-destructive; the description adds that it checks oracle support/liquidity/minimum size and that amounts are raw units. This gives the agent a clear behavioral model beyond readOnlyHint. No return format is disclosed, but 'would be executable' implies a verdict.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the verb and scope, then usage timing and units. No wasted words.

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?

Given a simple read-only preflight check, the description covers purpose, timing, checked criteria, and unit convention. The absence of an output schema is mitigated by the 'whether... would be executable' phrasing, though naming sibling tools could have further improved routing.

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 documents all three parameters at 100% coverage, so the description isn't required to compensate. It reinforces that amounts are RAW units, but no meaningful parameter semantics are added beyond the schema.

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 action ('Check whether'), a specific resource ('a limit/DCA order for this pair and size'), and the feasibility criteria (oracle support, liquidity, minimum size). This makes it immediately distinct from quote/route lookup siblings even without naming them.

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?

'Run this before signing an order' gives explicit when-to-use timing. It doesn't explicitly state when not to use it or name alternatives, but the pre-position relative to signing is clear context.

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.

Resources