Skip to main content
Glama

Note what a campaign cost

set_campaign_cost
Idempotent

Records what the owner says a campaign costs, so Bearing can set it against what the campaign brought: either the total spent to date, or an amount per day, per month or per year (every: an ad's daily budget, a monthly fee, a yearly sponsorship), until the day it stopped (until). With a rate, Bearing works out the cost to date from the campaign's first visit and says it is an estimate. Only what the owner gives you or what you read for them in their ad account: never a guess. Giving it again replaces it; remove true takes it away.

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": {
      "site": "<site>",
      "marker": "<marker>",
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "set_campaign_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
everyNoGive it when the amount is a rate: per day, per month or per year. Leave it out for a total.
untilNoWith `every`: the last day the campaign ran, YYYY-MM-DD. Leave it out while it runs.
amountYesIn units of the currency (87.4 for 87,40 €): the total spent to date, or the amount per day, month or year when `every` is given.
markerYesThe campaign marker's id, from list_markers.
removeNoTrue to take the cost away.
currencyYesISO code of the currency: EUR, USD…

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and idempotentHint=true; the description corroborates and enriches this by explaining that a repeat call replaces the prior value and that `remove` retracts it. It also discloses genuinely non-obvious downstream behavior: with a rate, Bearing derives cost-to-date from the campaign's first visit and flags the figure as an estimate. Missing only permission/authorization context, so not a 5.

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 purpose in the first clause, then modes, then provenance rules, then idempotency/removal — a sensible ordering with no filler. The parenthetical examples ('an ad's daily budget, a monthly fee, a yearly sponsorship') are mildly redundant given the enum, keeping it from a 5.

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?

For a 7-parameter mutation with no output schema, the description covers both input modes, the estimate caveat, replacement semantics, and removal — essentially everything an agent needs to call it correctly. It stops short of describing what the response contains or any authorization requirement, but the annotations plus full schema coverage leave little critical ground uncovered.

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, but the description adds relational meaning the per-field schema cannot: it explains that `every` and `amount` together form a rate whose cost-to-date is computed from the first visit, and that `until` marks the last day the campaign ran and should be omitted while it is still running. That clarifies how the parameters interact rather than merely restating them.

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 concrete verb and resource ('Records what the owner says a campaign costs') and immediately defines the two operating modes: a total spent to date versus a rate (day/month/year) bounded by `until`. The purpose is unambiguous and no sibling tool in the list does comparable cost attribution, so an agent can select it without opening the schema.

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 clear provenance rule — 'Only what the owner gives you or what you read for them in their ad account: never a guess' — which tells the agent when the data is legitimate to submit and effectively excludes fabricated values. It also covers the update case ('Giving it again replaces it') and the retraction case (`remove`), but never names an alternative tool or an explicit when-not-to-call condition beyond the no-guessing rule.

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