Skip to main content
Glama

place_market_order

Ask the user to approve a market swap of amount tokenIn → tokenOut at the best current route. Returns an approval link, not a fill: the user signs in the Epsilon app. Use get_quote first to tell the user what to expect. For a price-conditional order use place_limit_order or place_stop_order. Amounts are HUMAN units.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNooptional one-line reason shown to the user on the approval page (≤ 140 chars)
amountYesamount of tokenIn in HUMAN units, decimal string (e.g. "50" USDG, "0.25" WETH) — not raw units
tokenInYesERC-20 address being sold (0x-hex); resolve symbols with search_tokens first
tokenOutYesERC-20 address being bought (0x-hex)
slippageBpsNoslippage tolerance in basis points (default 100 = 1%, max 5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Adds real context beyond the annotations: this does not fill, it returns an approval link and the user signs in the Epsilon app. That is critical behavioral knowledge an agent could not infer from readOnlyHint=false / openWorldHint=true. It stops short of covering approval-link lifetime, non-idempotency (annotations say idempotentHint=false but the description doesn't warn that retries create duplicate requests), or fund/slippage exposure.

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?

Four short sentences, each carrying distinct load: action, return semantics, prerequisite, alternative. The non-fill caveat is front-loaded right after the action, which is exactly where an agent needs it.

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?

No output schema exists, yet the description compensates by explaining what actually comes back (an approval link) and who completes the flow (the user in the Epsilon app). Combined with the get_quote prerequisite and sibling routing, an agent has everything needed to call this 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%, including the 'HUMAN units' note for amount, so the description's 'Amounts are HUMAN units' restates the schema rather than adding to it. None of the five parameters (note, slippageBps, token addresses) get supplemental meaning in the prose. Baseline 3 applies.

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 ('place a market swap of amount tokenIn → tokenOut') with the execution venue ('best current route'), and explicitly contrasts itself with the price-conditional siblings. An agent can distinguish this from place_limit_order/place_stop_order without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite ('Use get_quote first to tell the user what to expect') and an explicit routing rule away from the tool ('For a price-conditional order use place_limit_order or place_stop_order'). When-to-use and when-not are both covered.

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