Skip to main content
Glama

List available payment methods

payment_methods
Read-onlyIdempotent

List available payment methods for the current cart and selected delivery option. Use after delivery selection to obtain the payment_id needed for order submission.

Instructions

List the payment-method groups available for the current Alza account cart (mobile API getDeliveryPaymentGroups payment projection). Use after delivery_options and before order submission, to show the user payment choices and to obtain the payment_id needed by web_place_order (e.g. 103 proforma) or the mobile checkout. Requires a non-empty cart. Requires a loaded mobile API access token — check account_status first; if none is loaded, run auth_start, have the user complete the browser sign-in, then auth_exchange with the returned code and state. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selected_delivery_option_idNoDelivery option id from `delivery_options` to list the payments valid for that delivery. Omit for the default set.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errNo
msgNo
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover readOnlyHint and destructiveHint; the description adds useful behavioral context beyond them: cart must be non-empty, a mobile API token must be loaded, and if not, the auth_start/user-sign-in/auth_exchange flow must run first. It does not describe error behavior or result shape, but that is a minor gap for a read-only list.

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 dense but every sentence carries necessary information: what it lists, when to call it, what it returns, prerequisites, and the auth fallback. The main purpose is front-loaded and no filler is present.

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 one-parameter, read-only listing tool, this is complete: it states prerequisites, sequencing, the intended user-facing purpose, and the downstream consumption of payment_id by web_place_order or mobile checkout. Nothing needed to decide to call it 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?

The single parameter is fully documented in the schema, including its source (delivery_options) and optionality ('Omit for the default set'). The description reinforces the delivery_options relationship but adds no new parameter semantics beyond the schema, so the baseline of 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?

The description opens with a specific verb and resource: 'List the payment-method groups available for the current Alza account cart'. It also explains the purpose of the result (show payment choices, obtain payment_id) and situates the call between delivery_options and order submission, making it easy to distinguish from sibling tools.

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?

It gives explicit sequencing: use after delivery_options and before order submission, and lists the exact requirements (non-empty cart, loaded mobile API token) with a fallback auth flow. It does not explicitly name when-not-to-use alternatives such as after-order payment tools, which keeps it just short of a 5.

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