Skip to main content
Glama
TradeRouter

trade-router-mcp

Official

place_twap_order

Place a time-weighted average price (TWAP) order to buy or sell tokens. The total amount is divided into slices executed at set intervals over a duration, reducing market impact.

Instructions

Place a TWAP (time-weighted) buy or sell order. Splits total amount into frequency slices over duration seconds. action: twap_buy|twap_sell.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_addressYes
token_addressYes
actionYes
frequencyYesNumber of executions
durationYesTotal run time in seconds (max 30 days)
amountNoTotal lamports (buy) or raw token units (sell)
holdings_percentageNoSell only: bps of holdings at creation
slippageNo
Behavior2/5

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

With no annotations, the description only discloses the basic order splitting behavior. It does not mention side effects like order creation, destruction, authorization needs, or rate limits—important for a trading action.

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?

The description is very concise with two sentences, front-loading the key purpose. However, the second sentence could be integrated more efficiently.

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

Completeness2/5

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

Given the tool's complexity (8 parameters, no output schema, multiple sibling variants), the description omits critical context such as prerequisites, error handling, order lifetime, and differentiation from similar TWAP orders.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%, placing the burden on the description to add meaning. The description only restates the action enum values already in the schema, adding no new insight for other parameters like wallet_address, token_address, or slippage.

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 clearly states the tool places a TWAP buy or sell order and explains the slicing mechanism. However, it does not distinguish this TWAP order from sibling tools like place_limit_twap_order or place_trailing_twap_order.

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?

The description provides no guidance on when to use this tool versus alternatives such as limit or trailing TWAP orders. There is no explicit context about prerequisites or scenarios where this tool is appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TradeRouter/trade-router-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server