Skip to main content
Glama

get_open_closed_orders

Retrieve open or closed orders by product type. Filter by symbol, order type, and limit. Get a unified view of active and recent order history for linear, inverse, spot, or option categories.

Instructions

Get open and/or closed orders (unified endpoint).

Args: category: Product type: linear, inverse, spot, option. symbol: Filter by symbol (optional). open_only: 0: open orders only (default), 1: recent 500 closed orders. order_filter: Filter: Order, StopOrder, tpslOrder, OcoOrder (optional). limit: Number of records (default: 20, max: 50).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
symbolNo
open_onlyNo
order_filterNo
limitNo
Behavior2/5

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

No annotations are provided, and the description does not disclose side effects, authentication requirements, rate limits, or any behavioral traits beyond the basic read operation implied by 'Get'. It lacks transparency about the tool's behavior.

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 concise, with a clear first line and an efficient list of parameter explanations. There is no wasted text, though the parameter list could be slightly more integrated.

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?

Despite having 5 parameters and no output schema, the description only covers parameter explanations. It omits details on pagination, return format, error handling, and default behaviors beyond open_only. With no output schema, this leaves gaps in understanding the tool's full behavior.

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

Parameters4/5

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

The description adds significant meaning beyond the input schema, which has no descriptions. It explains each parameter's purpose (e.g., category specifies product type, open_only controls open vs closed orders, order_filter restricts order types, limit caps records). This compensates for the 0% schema coverage.

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 it retrieves open and/or closed orders via a unified endpoint, and the parameter list specifies product categories. This distinguishes it from siblings like get_open_orders (which only gets open orders) and get_order_history (which may have different scope). However, it could be more explicit about how it differs from closely related tools.

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?

There is no guidance on when to use this tool versus alternatives such as get_open_orders or get_order_history. The description merely defines parameters without explaining preferred context or prerequisites.

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/JohnnyWic/bybit-mcp'

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