Skip to main content
Glama

Bafan

Prepare cash on delivery order

prepare_cod_order

Prepare a cash-on-delivery or pay-at-pickup order without placing it. Returns the summary, terms link, confirmation question and a confirmation token valid for about ten minutes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "payment_method_id": "<payment_method_id>"
    },
    "name": "prepare_cod_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressNoContact and delivery address entered by the shopper. Use the two-letter country code.
cart_keyNoGuest carts only; omit it when the account is connected. Private tool input. Copy the key from an earlier tool result, the cart_key query parameter of a payment link, or the last segment of a /shop/mcp-checkout/ link already in the chat. Keep it out of shopper replies.
address_idNo
carrier_idNo
gls_point_idNo
payment_method_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond them: nothing is committed ('without placing it'), the exact return payload (summary, terms link, confirmation question), and a ~10-minute token lifetime that constrains retry timing.

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?

Two sentences, front-loaded with the action and scope, followed by the return contract. Every clause carries information and nothing is repeated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Describing the return values compensates for the absence of an output schema, and the non-placement guarantee resolves the main ambiguity of a 'prepare' mutation. However, with a nested address object and three undocumented optional identifiers, the definition leaves the agent unable to choose between address, address_id, carrier_id and gls_point_id.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Six parameters with only 33% schema description coverage: address and cart_key are documented in the schema, while payment_method_id, address_id, carrier_id and gls_point_id have none. The description never mentions any parameter, so the agent gets no guidance on how carrier_id, gls_point_id and address_id interact or when to omit the address object in favour of address_id.

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?

Names a specific verb and resource ('Prepare a cash-on-delivery or pay-at-pickup order') and immediately scopes it with 'without placing it', which separates it from the placement step in the sibling set (place_order) and from the generic prepare_order. An agent can tell what it does and does not do without opening the schema.

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 condition that selects this tool (COD or pay-at-pickup payment flows, pre-placement) is clear, and the ten-minute token validity implicitly signals a prepare-then-confirm workflow. It stops short of naming the follow-up call or stating exclusions, so it is clear context without explicit alternatives.

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