Skip to main content
Glama

Remove a running cost

remove_cost
DestructiveIdempotent

Remove a cost by id. Needs write access.

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": {
      "cost_id": "<cost_id>"
    },
    "name": "remove_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
cost_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is largely covered by structured data. The description adds the authorization requirement (write access), which is genuine value beyond annotations, but it omits whether deletion is permanent, whether confirmation exists, and what happens if the id does not exist.

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, front-loaded with the action and resource, with zero redundant wording. Nothing could be trimmed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive single-parameter tool with no output schema, the definition covers the action and the permission requirement but leaves out failure behavior, reversibility, and where valid ids come from. The annotations carry part of the burden, yet a destructive operator should say more about consequences.

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

Parameters2/5

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

Schema description coverage is 0% and the single cost_id parameter has no documentation, so the description must compensate. It only says the removal happens "by id," which restates the obvious from the schema without clarifying id provenance (where to obtain a valid cost_id) or the effect of an invalid or non-existent id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Remove a cost by id" gives a specific verb (remove) plus resource (cost) and names the identifier used, which implicitly contrasts with the sibling add_cost. It stops short of explicitly differentiating from other removal tools, but the purpose is unambiguous.

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

Usage Guidelines3/5

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

"Needs write access" states a prerequisite, which is useful context for deciding whether the call can succeed. However, there is no explicit when-to-use guidance versus alternatives, no note on when removal is inappropriate, and no mention of whether the caller should look up the cost first.

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