Skip to main content
Glama

Get Active Orders

get_current_active_orders
Read-onlyIdempotent

Returns the paginated list of currently active orders (not yet delivered or failed, and already eligible for dispatch) for the current company. Defaults to page 1 with up to 50 orders if page/limit are omitted. Each order contains every field that edit_order uses, under the same names, so to change an order, take it from here and send it to edit_order with only the requested changes applied. Check the returned meta.totalPages and meta.nextPage: if meta.page is less than meta.totalPages and the user's request requires seeing every active order (not just a sample or summary), call this tool again with page=meta.nextPage to fetch the remaining pages, without asking the user to specify a page number themselves.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_current_active_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1
limitNoNumber of orders per page, at most 100, default 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), and the description adds substantive behavior the annotations don't: default page size of 50, page 1 default, the meta.totalPages/meta.page/meta.nextPage paging contract, and the fact that orders carry the same field names as edit_order. With no output schema present, that return-shape disclosure is genuinely load-bearing rather than redundant.

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?

It is front-loaded with purpose, then defaults, then the edit_order handoff, then the pagination loop, and no sentence is filler. The final sentence is long and carries several clauses (meta comparisons, the "every active order" condition, and the instruction not to ask the user for a page number), which makes it denser than ideal but still functional.

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?

For a two-optional-parameter read tool with no output schema, everything an agent needs is present: what counts as active, the default sizing, the field naming contract for the edit_order handoff, and the exact paging fields to inspect. Nothing material is deferred to a schema that doesn't exist.

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?

Schema coverage is 100%, so page and limit are already documented, and the baseline would be 3. The description earns above baseline by stating the default behavior when page/limit are omitted (page 1, up to 50 orders) and by tying page to meta.nextPage as the value to reuse, which adds operational meaning beyond "Page number, starting at 1".

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 gives a specific verb and resource ("Returns the paginated list of currently active orders") and then pins down "active" precisely: not yet delivered or failed, and already eligible for dispatch. That parenthetical implicitly draws the boundary against scheduled orders (not yet dispatch-eligible) and deleted orders, so an agent can separate this tool from its siblings without opening their schemas.

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?

It gives one explicit routing rule to an alternative (to change an order, take it from here and send it to edit_order) and a clear condition for re-calling with page=meta.nextPage versus stopping for a sample or summary. What's missing is guidance on when to prefer this over retrieval siblings such as get_current_scheduled_orders or get_order_by_id, so the when-not side is only partly covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources