Skip to main content
Glama

ShopsBuilder — AI Store Builder

Delete shipping rate

delete_shipping_rate
DestructiveIdempotent

Delete a shipping rate after the merchant confirms.

Use to remove an unwanted rate, e.g. the free "Default" rate that would undercut a new paid one. If it is the only rate priced in a channel, checkout there has no delivery option until another rate is added. Call without confirmation_token to get a preview and a token; call again with the token only after the merchant confirms.

Args: ctx: MCP context for logging and request metadata shipping_rate_id: ID of the shipping rate (see list_shipping_rates) confirmation_token: Token from the preview call, after the merchant confirms

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": {
      "shipping_rate_id": "<shipping_rate_id>"
    },
    "name": "delete_shipping_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipping_rate_idYes
confirmation_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructive and idempotent, but the description goes further: it warns that deleting the last rate priced in a channel leaves checkout with no delivery option there, and it spells out the preview-then-confirm token flow. That is exactly the kind of consequence an agent needs before invoking a destructive tool.

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?

Front-loaded with the action and its precondition, then the risk warning, then the call protocol. The confirmation requirement is repeated in the opening line and in the Args section, a minor redundancy, but no sentence is otherwise wasteful.

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 multi-step confirmation protocol, the downstream consequence of deletion, and the parameter roles; return values are covered by the output schema. The only gap is that it doesn't say what the preview response contains or whether a preview call has side effects.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries the burden and does so: shipping_rate_id is tied to list_shipping_rates for lookup, and confirmation_token is explained as a preview-issued token to be supplied only after merchant confirmation. It omits any ID format detail and does not mention that confirmation_token defaults to null, but the semantics are otherwise well covered.

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 ('Delete a shipping rate') and immediately scopes it with a precondition ('after the merchant confirms'), which distinguishes it from update_shipping_rate and the rest of the shipping-rate siblings.

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 a concrete when-to-use case (removing the free 'Default' rate that undercuts a paid one) and explains the two-call protocol. It does not explicitly name an alternative such as update_shipping_rate for cases where the rate should be modified rather than removed, so it falls short of full when/when-not guidance.

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.