Skip to main content
Glama

finalize_order

Finalizes a draft order, deducting payment from the wallet. Optionally include tip_cents (donated to the school's PAC). This is a FINANCIAL + WRITE operation - always confirm with the user before calling. Idempotent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYesOrder ID from create_draft_order
tip_centsNoTip in cents (donated to school PAC)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
statusNo
tipCentsNo
totalCentsNo
balanceCentsNo
itemTotalCentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it explicitly flags this as a FINANCIAL + WRITE operation, mandates user confirmation, and states idempotency. These are material behavioral disclosures that an agent needs, and they do not contradict the readOnlyHint/destructiveHint annotations.

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?

Four short sentences: core purpose, optional parameter, critical warning, and idempotency. Everything earns its place and is front-loaded for quick scanning.

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 financial write operation it covers the action, payment effect, user-confirmation requirement, idempotency, and optional tip. With an output schema available and only two well-documented parameters, nothing essential is missing.

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%, and the description adds no meaning beyond the schema's parameter descriptions. It mentions the option to include tip_cents and its PAC donation purpose, matching the schema, but doesn't enrich parameter semantics further.

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 a specific action (finalizes), a precise resource (draft order), and the key effect (deducts payment from wallet). This clearly differentiates from sibling tools like create_draft_order or order_lunch by focusing on the finalization/payment step.

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 instruction to confirm with the user before calling provides a clear trigger condition for this financial/write action. It doesn't explicitly name alternatives or state when not to use it, but the draft-order scoping and optional tip parameter make the intended context clear.

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