Skip to main content
Glama

Set customer billing

set_customer_billing
Idempotent

Set a customer's billing defaults: default_hourly_rate (net, used by all its projects without their own rate), currency and vat_rate (percent, e.g. 19). Effort estimates compute 'Kosten Mensch' from the project rate, else this default: draft estimates pick up the new rate on their next save (re-save them with set_ticket_estimate); sent or decided estimates keep their frozen rate. Every change is written to the audit log (who, when, old, new). Admin only.

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": {
      "customer_id": "<customer_id>"
    },
    "name": "set_customer_billing"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoISO currency, e.g. EUR
vat_rateNoVAT rate in percent, e.g. 19
customer_idYesCustomer UUID (see list_customers)
default_hourly_rateNoDefault hourly rate (net); null clears it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses that changes are audited (who, when, old, new), that sent or decided estimates keep a frozen rate while drafts pick up the new rate on next save, that null clears the rate, and that the tool requires admin privileges. These are exactly the side-effect and authorization details an agent needs before mutating billing data.

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?

The action and its fields are front-loaded in sentence one, with consequences and authorization following. The clause about 'Kosten Mensch' and draft-vs-sent estimates is dense and slightly buried mid-paragraph, but every sentence carries actionable information and nothing is filler.

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 four-parameter mutation tool with no output schema, the definition covers the essentials: what changes, rate inheritance, downstream effect on estimates, audit behavior, and admin-only access. Nothing material an agent would need before calling it appears to be missing.

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 already 100%, so the baseline is 3; the description earns extra by explaining that default_hourly_rate is a net figure inherited by all projects without their own rate and that vat_rate is a percent (e.g. 19). It adds inheritance semantics rather than merely restating the schema's field descriptions.

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?

The first sentence names a specific verb and resource ("Set a customer's billing defaults") and enumerates the exact fields affected: default_hourly_rate, currency, vat_rate. It also distinguishes its rate-inheritance behavior from set_ticket_estimate, which handles per-estimate rates, so an agent can tell the two apart without opening either 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?

It establishes the operating context clearly: admin only, customer-level defaults that flow to projects lacking their own rate, and that drafts are refreshed only on their next save via set_ticket_estimate. That gives strong when/why guidance, but it never states an explicit exclusion such as when to set a project rate instead of the customer default.

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