Skip to main content
Glama

orbs_prepare_order_intent

Read-only

Prepare a spot order for external wallet signing. Returns EIP-712 typed data, approval calldata, submit URL, and order metadata for all order types.

Instructions

Prepare a Spot order for external wallet signing. Returns EIP-712 typed data, approval calldata, submit URL, and order metadata. Supports all order types.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
epochNoSeconds between chunk fills (0 for single, 60 default for chunked)
startNoOrder start time as Unix timestamp (default: now)
accountYesSwapper wallet address
chainIdNoChain ID (defaults to runtime config)
toTokenYesDestination token address
deadlineNoOrder deadline as Unix timestamp (default: auto-calculated)
fromTokenYesSource token address
fromAmountYesAmount in smallest token units
outputLimitNoMinimum output per chunk in output token units (0 = market order)
slippageBpsNoSlippage tolerance in BPS (default 500 = 5%)
exactApprovalNoIf true, approve only the exact amount needed instead of unlimited
fromMaxAmountNoTotal input amount for chunked orders (defaults to fromAmount for single orders)
outputTriggerLowerNoLower trigger price per chunk for stop-loss orders
outputTriggerUpperNoUpper trigger price per chunk for take-profit orders
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds useful behavioral context by specifying the exact return artifacts and the fact that it prepares rather than executes. It does not contradict annotations, and 'prepare' aligns with the read-only hint.

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?

The description is concise: two sentences, front-loaded with the primary verb and resource, and every phrase adds value. No fluff or redundant content.

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?

For a tool with 14 parameters and no output schema, the description adequately summarizes the return payload and order-type coverage. However, it does not explicitly mention the subsequent submission step (e.g., via the returned submit URL or orbs_submit_signed_order), which would be helpful for full contextual completeness.

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%, with all 14 parameters individually described. The tool description adds no further parameter semantics beyond what the schema already provides, so the baseline score of 3 is appropriate.

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 a specific action (prepare a Spot order), the context (external wallet signing), and the deliverables (EIP-712 typed data, approval calldata, submit URL, order metadata). The phrase 'Supports all order types' distinguishes it from specialized sibling tools like orbs_prepare_twap_intent and orbs_prepare_limit_intent.

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

Usage Guidelines3/5

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

Usage is implied by 'for external wallet signing' and the listed return artifacts, but the description does not explicitly state when to choose this tool over alternatives like orbs_prepare_swap_intent or when not to use it. No exclusions or alternative references are provided.

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/Apegurus/web3agent'

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