Skip to main content
Glama

get_limit_orders

Retrieve active or historical limit orders for a wallet. Filter by input/output token and paginate results, all without executing transactions.

Instructions

Get active or historical limit orders for a wallet.

This function is FREE to call and does not execute any transactions.

Args: order_status: "active" or "history" (default: "active") wallet_address: Wallet to check (optional, defaults to configured wallet) input_mint: Filter by input token (optional) output_mint: Filter by output token (optional) page: Page number for pagination, 10 orders per page (optional)

Returns: Dictionary containing: - success: Boolean indicating if the request was successful - wallet_address: The wallet address that was queried - data: Array of order objects with details - hasMoreData: Boolean indicating if there are more pages - error: Error message if request failed

Example: >>> # Get active orders for configured wallet >>> result = await api.get_limit_orders(order_status="active") >>> if result["success"]: ... for order in result["data"]: ... print(f"Order {order['orderAccount']}: {order['makingAmount']} → {order['takingAmount']}") >>> >>> # Get order history with pagination >>> result = await api.get_limit_orders(order_status="history", page=1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
input_mintNo
output_mintNo
order_statusNoactive
wallet_addressNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description discloses the critical non-mutating behavior ('does not execute any transactions') and free cost. It also explains return fields including error handling. It does not cover rate limits or auth prerequisites in depth, but the 'configured wallet' implication touches on context.

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 well-structured with a clear purpose statement, Args bullet list, Returns list, and a helpful example. It is slightly verbose (the example could be trimmed), but every section serves a purpose and the information is front-loaded.

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?

Given 5 parameters, no annotations, and no explicit output schema, the description provides complete coverage: purpose, parameter details, return value structure, pagination behavior, and a usage example. It leaves little ambiguity for an agent to invoke the tool correctly.

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

Parameters5/5

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

The schema has 0% description coverage, but the Args section explains each of the 5 parameters with defaults, semantics, and optionality (e.g., order_status default active, wallet defaults to configured wallet). This fully compensates for the bare schema and adds meaning well beyond field titles.

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 opens with 'Get active or historical limit orders for a wallet', using a specific verb ('Get') and resource ('limit orders') with clear scope. It distinguishes itself from sibling tools like create_limit_order and cancel_limit_order by explicitly framing this as a read-only query operation.

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?

The statement 'This function is FREE to call and does not execute any transactions' provides clear context that it is safe to use for checking orders. However, it does not explicitly contrast with alternatives or state when not to use it (e.g., when needing to create or cancel an order), so it stops short of a 5.

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/araa47/jupiter-mcp'

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