Skip to main content
Glama

Add a running cost

add_cost
Destructive

A recurring cost on one app (hosting, AI APIs, the domain), so profit shows on the Revenue page. 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": {
      "app": "<app>",
      "label": "<label>",
      "amount": "<amount>"
    },
    "name": "add_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app: its slug, name, domain (shop.app), URL or id. list_apps shows them all.
everyNomonth
labelYesLike Vercel or OpenAI
amountYesIn whole units, like 20 or 19.99
currencyNousd

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=false; the description adds the auth requirement ('Needs write access') and the 'recurring' nature of the record, which the annotations do not convey. However, with destructiveHint=true and idempotentHint=false, the agent would benefit from knowing whether re-adding an existing label overwrites or duplicates a cost, and the description is silent on that.

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?

A single compact sentence that front-loads the resource and its business purpose, with zero filler. It is slightly fragmentary and could state the verb explicitly, but nothing is wasted.

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 five-parameter mutation flagged destructive and non-idempotent, the definition covers what it creates and that write access is required, which is the minimum an agent needs. It stops short of explaining duplicate/overwrite behavior, validation of the amount and currency constraints, or what the call returns, and there is no output schema to fill that gap.

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?

Schema description coverage is 60%, so app, label, and amount are already documented in the schema; the description only loosely echoes label-like examples ('hosting, AI APIs, the domain'). The 'recurring' wording hints at the 'every' parameter but never explains the month/year choice, and 'currency' is undocumented in both places beyond its enum. Baseline 3 is appropriate given the schema does most of the work.

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?

The description names the resource precisely ('a recurring cost on one app') and gives concrete examples (hosting, AI APIs, the domain), plus the downstream effect ('profit shows on the Revenue page'). It is a noun phrase rather than a verb+resource statement, so it leans on the name/title for the 'add' action, and it does not explicitly distinguish itself from remove_cost.

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?

Usage is implied through the stated outcome: use this when you want a recurring expense reflected in profit on the Revenue page. The prerequisite 'Needs write access' is a genuinely useful gating signal, but there is no guidance on when-not to use it, what happens if the same cost already exists, or how to choose between the month and year recurrence options.

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