Skip to main content
Glama

Add a payment method

payment_mode_add

Add a new payment method to the shop. Requires a title. Optional fields: type (Cash, Credit_Card, Check, Bank_Transfer, Meal_Voucher, Holiday_Voucher, and their refund equivalents), accountingChapter, fixedAmount, minimumAmount, maximumAmount, cashboxLock (0 = all cashboxes). Use data_list_payments_modes to list existing methods.

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": {
      "title": "<title>"
    },
    "name": "payment_mode_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoPayment method type
titleYesName of the payment method (e.g. "Cash #2")
cashboxLockNoID of the cashbox allowed to use this method (0 = all)
fixedAmountNoFixed amount (e.g. for a gift certificate)
maximumAmountNoMaximum payment amount
minimumAmountNoMinimum payment amount
accountingChapterNoAccounting chapter code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write, so the safety profile is covered. The description adds the required-title constraint and clarifies cashboxLock=0 semantics, but says nothing about duplicate-name behavior, validation failures, or what is returned after creation.

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

Conciseness4/5

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

Three front-loaded sentences with no filler, but enumerating all twelve type values duplicates the schema enum and inflates the sentence without adding decision-relevant information.

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 the required parameter, the optional ones, and the follow-up listing tool, which is sufficient for a 7-parameter mutation with full schema coverage and annotations handling mutability; only edge-case behavior after creation is left implicit.

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 description coverage is 100%, so the baseline is 3. The description restates the type enum values and the '0 = all cashboxes' note that the schema already documents, adding little semantic meaning beyond the structured fields.

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 verb and resource ('Add a new payment method to the shop') and immediately names the sibling for the read case (data_list_payments_modes) and the delete counterpart is obvious from the catalog, so an agent can distinguish intent without opening a 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?

Gives explicit context (adding vs listing via data_list_payments_modes) and names the one mandatory field, but offers no when-not-to guidance such as avoiding duplicate titles or checking existing methods before creating.

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