Skip to main content
Glama

get_order_history

Read-only

Retrieve past food orders to analyze ordering habits, find reorder targets, or locate a specific past order.

Instructions

Past orders (default 50 orders / 90 days, max 100 / 365): store, items, total, order_uuid, is_reorderable, fulfillment_type. Use to analyze habits ('my usual'), find reorder targets, or locate a specific past order (scan all results; if page_full, re-query higher/wider).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoMax orders 1-100 (default 50)
daysNoWindow in days, up to 365 (default 90)
intentYesOne short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected.
Behavior5/5

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

Adds behavioral details beyond annotations: defaults (50/90 days), maxes (100/365), field list, and pagination behavior ('if page_full, re-query higher/wider'). Annotations already declare readOnlyHint=true and destructiveHint=false, so no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence conveys defaults, fields, use cases, and pagination advice without waste. Front-loaded with key constraints (defaults and maxes). Efficient and well-organized.

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?

Covers returned fields and pagination, essential for a read-only tool with no output schema. Lacks mention of ordering (likely most recent first) and error handling, but given low complexity and presence of openWorldHint, it is nearly complete.

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 coverage is 100%, so baseline 3 applies. Description repeats default and max values already in schema descriptions for max and days. Adds no new meaning for intent parameter beyond what schema says ('one short line stating who this is for'). No marginal value added.

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?

Description clearly specifies verb+resource: 'Past orders' with returned fields (store, items, total, order_uuid, is_reorderable, fulfillment_type). Differentiates from sibling tools like get_order_status or get_receipt by focusing on historical data.

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?

Explicitly states when to use: analyze habits, find reorder targets, locate a past order. Includes pagination hint. However, does not explicitly exclude alternatives like get_order_status or reorder, leaving some inference up to the agent.

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/CydVilla/peckish'

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