Skip to main content
Glama

Delete a payment method

payment_mode_delete
DestructiveIdempotent

Permanently remove a payment method from the shop by its ID. Use data_list_payments_modes to find the ID.

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": {
      "id": "<id>"
    },
    "name": "payment_mode_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the payment method to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds 'Permanently,' reinforcing irreversibility, but says nothing about cascade effects on orders tied to the payment method, permission requirements, or behavior for an invalid ID.

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 short sentences with zero filler, front-loading the destructive action before the prerequisite lookup instruction. Every clause carries information an agent needs.

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?

For a one-parameter destructive delete with full schema coverage and annotations covering the safety profile, the description is nearly sufficient. The only meaningful gap is what deletion means for downstream references, which matters for a destructive operation but is secondary here.

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?

There is a single parameter with 100% schema description coverage, which already documents 'ID of the payment method to delete.' The description only restates 'by its ID' and adds the source tool for obtaining valid IDs; useful but minimal beyond the schema.

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 ('Permanently remove a payment method'), scopes it ('from the shop'), and names the identifying key ('by its ID'). This cleanly distinguishes it from payment_mode_add and from unrelated delete siblings like client_delete or vat_delete.

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 an explicit prerequisite: 'Use data_list_payments_modes to find the ID,' which is the key workflow guidance for a delete-by-ID tool. It does not state when not to use it or warn about consequences for related records, so it stops short of full when/when-not coverage.

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