Skip to main content
Glama

delete_pricing_tier

Permanently delete a pricing tier by id (404 if not in this project). While auto top-up rules buy the tier it refuses with 409 TIER_IN_USE and the rule count; pass force: true (after the user confirms) to delete those rules and the tier together. Deactivating a tier (update_pricing_tier is_active: false) keeps history but makes its auto top-up charges fail. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.

Input Schema

NameRequiredDescriptionDefault
idYesPricing tier ID
forceNoAlso delete the auto top-up rules that buy this tier
api_keyNoCred API key (optional if set via the x-api-key header)
project_idNoCred project ID (optional; the API key already identifies the project)
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

No annotations exist, and the description carries the full burden well: it discloses that deletion is permanent, the 404/409 error semantics, that force also destroys auto top-up rules, the 1 CRD charge incurred even on rejection, the 429 exemption, and that errors carry a request_id to quote to support. That is far beyond what a bare 'delete' would convey.

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?

Front-loads the action and scope, then layers the 409/force path, the deactivation alternative, and cost/error behavior — every clause carries information an agent needs. No filler or restatement of the tool name.

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 destructive, credit-metered tool with no annotations and no output schema, the definition covers safety, error modes, cost, and the consent precondition. The only thin spot is the x402 re-payment flow, which the schema description already explains.

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 100%, so baseline is 3, but the description adds real policy meaning to force ('after the user confirms' — a consent gate not present in the schema) and clarifies what it destroys. It says nothing about the api_key, project_id, or x402_payment parameters, leaving the payment-recovery path undocumented in prose.

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 precise verb and resource ('Permanently delete a pricing tier by id') plus scoping ('404 if not in this project'), and explicitly contrasts with the sibling update_pricing_tier deactivation path. An agent can distinguish it from list_pricing_tiers, create_pricing_tier and update_pricing_tier without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-not-to guidance: deleting while auto top-up rules exist returns 409 and requires force: true after user confirmation, whereas deactivation (update_pricing_tier is_active: false) preserves history. The alternative, its trade-off, and the precondition for the destructive path are all named.

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