Skip to main content
Glama
nexus-xyz

nexus-exchange-mcp

Official
by nexus-xyz

amend_order

Atomically cancel and replace a resting order's price and/or size. Pre-trade margin check applied. Requires order ID and market.

Instructions

Amend a resting order's price and/or size in one atomic cancel-replace operation. At least one of price or size is required; a pre-trade margin check is applied to the replacement before it is accepted. Liquidation orders cannot be amended. Requires API credentials. This modifies a REAL order on the matching engine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoNew order size in base units as a positive decimal string (> 0). Optional if `price` is given.
priceNoNew limit price as a positive decimal string (> 0). Optional if `size` is given.
order_idYesId of the resting order to amend.
market_idYesMarket the order rests on (required for routing).
Behavior4/5

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

Discloses atomic cancel-replace, margin check, and that it modifies a real order. Since no annotations are provided, the description carries full burden and covers key behavioral traits.

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 sentences, front-loaded with the main action, no unnecessary words. Efficiently communicates purpose and constraints.

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 no output schema, the description adequately explains the operation, prerequisites, and constraints. It could mention that the response likely includes the amended order, but completeness is sufficient.

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 coverage is 100% with clear parameter descriptions. The description adds context about the margin check but does not significantly enhance understanding of individual parameters 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?

The description clearly states the tool amends a resting order's price and/or size in an atomic cancel-replace operation. It distinguishes itself from sibling tools like cancel_order and place_order by using specific verb+resource.

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?

States that liquidation orders cannot be amended and requires API credentials, providing some usage context. However, it could more explicitly compare to cancel+place sequence.

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/nexus-xyz/nexus-exchange-mcp'

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