Skip to main content
Glama

list_orders

Read-only

Poll iFood order events every ~30 seconds to retrieve new or updated orders. Filter by event type, group, category, or merchant, then acknowledge each event to prevent redelivery.

Instructions

Poll iFood order events (one GET per ~30s). Returns new events (PLACED/CONFIRMED/...) or none. Each event MUST be passed to acknowledge_events or it is redelivered forever.

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": "list_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesNoComma-separated event types to filter (e.g. 'PLC,CFM'). Avoid combining with `groups`.
groupsNoComma-separated event groups (e.g. 'ORDER_STATUS'). Groups already include their types.
categoriesNoComma-separated order categories to filter.
merchant_idsNoComma-separated merchant IDs for the `x-polling-merchants` header (max 100). Use when one token serves multiple stores.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only mark it read-only and open-world; the description adds real behavior on top: it is a poll, not a push subscription, roughly every 30s, may legitimately return nothing, and uses at-least-once delivery with redelivery until acknowledged. The redelivery-forever rule is a critical semantic an agent cannot infer from the structured fields.

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 tight sentences with the action and cadence front-loaded, then the return value, then the hard acknowledgement requirement. Nothing is wasted, though the parenthetical cadence could be stated more directly.

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 no-required-param, read-only polling tool with fully documented filters and no output schema, the description covers invocation timing, possible empty results, and the downstream contract. It stops short of describing the fields inside a returned event, which is the only remaining gap.

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% and each of the four optional filters (types, groups, categories, merchant_ids) is already documented, including the types-vs-groups caveat and the 100-merchant cap. The description adds no further parameter meaning, so the baseline 3 applies.

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?

States the specific verb (Poll), the resource (iFood order events), the transport cadence (~one GET per 30s) and the return shape (new PLACED/CONFIRMED events or none). It also implicitly distinguishes itself from acknowledge_events by describing the consume-then-acknowledge split.

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?

Gives concrete polling cadence and the mandatory follow-up action: every returned event must go to acknowledge_events or it is redelivered forever. No explicit 'do not use this for X' exclusion (e.g. point lookups belong to get_order), so the routing is clear but not exhaustive.

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