Skip to main content
Glama

create_draft_order

Creates a draft lunch order for a student. Requires student_id, school_slug, menu_date, and items array. Each item needs menu_item_id, menu_item_name, price_cents, and quantity. The draft is not finalized - call finalize_order to commit the order and deduct payment. This is a FINANCIAL + WRITE operation - always confirm the order details with the user before calling. Idempotent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
menu_dateYesYYYY-MM-DD
student_idYesStudent ID
school_slugYesSchool slug

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
itemsNo
statusNo
menuDateNo
studentIdNo
schoolSlugNo
itemTotalCentsNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that this is a FINANCIAL + WRITE operation, requires user confirmation, is idempotent, and does not finalize payment. This adds meaningful behavioral context beyond readOnlyHint=false and destructiveHint=false.

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?

The description is compact and front-loaded: action, required parameters, draft lifecycle, then the critical financial/write confirmation warning and idempotency. Every sentence earns its place with no filler.

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?

The description covers the essential operation, required fields, draft vs. finalized behavior, confirmation requirement, and idempotency. With an output schema present and annotations provided, this is largely complete, though a brief mention of when to prefer the sibling order_lunch would make it fully self-contained.

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 75%, so most parameter semantics are already documented. The description restates the required top-level fields and the shape of each item, which helps, but it does not add deeper meaning such as currency units, date format nuances, or how idempotency interacts with parameters.

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 clearly states the verb (create), the resource (draft lunch order), and the scope (for a student). It also distinguishes this tool from finalize_order by explaining that the result is a draft, not a committed order.

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?

The description gives clear usage context: create a draft, then call finalize_order to commit. It also warns to confirm order details with the user before calling. It does not explicitly compare against the sibling order_lunch, so it stops short of a full when-not-to-use explanation.

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.

TDQS

A3.6/5.0
Disambiguation3/5

Most tools target distinct resources, but get_wallet_balance and get_wallet_status overlap heavily, and create_draft_order/order_lunch offer two order-creation paths that could be confused. get_orders/get_daily_orders/get_monthly_orders also share retrieval territory, though role/date filters help.

Naming Consistency4/5

Snake_case verb_object naming is used throughout and most names are predictable (create_*, update_*, get_*, list_*). Minor inconsistencies exist: list_ vs get_ for menu reads, order_lunch vs create_draft_order, and sign_up_to_volunteer breaks the simple verb_object pattern.

Tool Count3/5

25 tools is on the heavy end, and several could be merged, such as get_wallet_balance/get_wallet_status and some order-retrieval variants. The broad school-lunch/event/wallet domain justifies much of the surface, but it still feels slightly over-scoped.

Completeness4/5

The lunch order lifecycle (draft, finalize, cancel, view) and admin menu/event workflows are well covered. Minor gaps: no direct event-detail or shift-list tool is provided for sign_up_to_volunteer, and restaurants lack update/delete operations.