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.

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": "delete_pricing_tier"
  }
}

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. Signed in with 1Profile and owning several projects, it picks one)
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. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Cred project ID (optional; the API key already identifies the project)"New value: +"Cred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one)"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: permanence, project scoping, the 409 refusal and its payload, the cascade behavior behind force, and the credit cost including the non-obvious case that rejected calls are still charged while 429 RATE_LIMITED is free. It also tells the agent that errors contain request_id and should be quoted to support.

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?

Sentences are information-dense and ordered by importance: what it destroys, the refusal path, the alternative, the cost, then error handling. Nothing is redundant, though the single-paragraph packing of cost and error-handling clauses makes it slightly harder to scan than a lightly separated structure would.

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 description supplies exactly the missing pieces: destruction semantics, cascade behavior, cost model, failure modes, and error-recovery guidance. An agent has enough to call it correctly and to know when not to.

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 the baseline is 3; the description earns above that by giving `force` an operational contract the schema lacks — it deletes the auto top-up rules and the tier together, and only after user confirmation — plus the 404 scoping rule tied to `id`. It says nothing additional about api_key, project_id, or x402_payment, but those are already fully described in 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 delete a pricing tier by id') plus scope ('404 if not in this project'). It also distinguishes itself from the nearest sibling by naming the non-destructive alternative in update_pricing_tier (is_active: false).

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?

Explicitly covers when the call succeeds, when it is refused (409 TIER_IN_USE with rule count), and the escalation path ('pass force: true (after the user confirms)'). It also names an alternative operation and its trade-off ('keeps history but makes its auto top-up charges fail'), so an agent can choose between deleting and deactivating without guessing.

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