Skip to main content
Glama

get_orders

Read-onlyIdempotent

Retrieve active/pending sales orders for the farm. Supports startDate and endDate filters (YYYY-MM-DD or ISO datetime format). Requires farmId and apiKey authorization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional max number of orders to return (default 50, max 100)
cursorNoOptional pagination cursor
farmIdYesThe unique farm ID
statusNoOptional filter: pending, partially_fulfilled, fulfilled, unfulfilled, shipped, etc.
endDateNoOptional end date range filter (YYYY-MM-DD or ISO datetime)
startDateNoOptional start date range filter (YYYY-MM-DD or ISO datetime)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the authorization requirement (apiKey), which the annotations do not, but says nothing about pagination behavior despite limit/cursor parameters, nor about what the default 'active/pending' scope means for results.

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?

Three short sentences with the purpose front-loaded and filters/authorization following. Efficient overall, though the date-format clause duplicates the schema and the auth sentence could be tighter.

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 read-only list tool with a fully described schema and annotations carrying the safety profile, the definition covers purpose, filters and auth prerequisites. Since there is no output schema, return format need not be explained, though pagination semantics via cursor remain unaddressed.

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%, so all six parameters are already documented, and the description only repeats the date format that the schema already states. It does mention apiKey as an authorization input, but apiKey is not actually a schema property, so that adds ambiguity rather than clarifying a parameter.

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?

States a specific verb and resource ('Retrieve ... sales orders for the farm'), which an agent can easily separate from the update_order_notes sibling. The scope claim of 'active/pending' is slightly at odds with the status filter in the schema that allows fulfilled/shipped, but the core purpose is unambiguous.

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?

It implies usage by naming the date-range filters and the required farmId/apiKey authorization, which helps an agent know prerequisites. However, it never states when to use this tool versus the other order-related sibling (update_order_notes) or any exclusions.

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