Skip to main content
Glama

county-economy-bundle

Set my spend cap and alerts

set_spend_controls
Idempotent

On demand only. cap_usd stops requests (402 spend_cap_reached) once this billing period's usage would pass it (null removes the cap); alert_usd and alert_percents create notifications; webhook_url and email are optional. Only send what you want to change. Ask the person before setting or removing a cap.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_spend_controls"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNo
cap_usdNo
alert_usdNo
webhook_urlNo
alert_percentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (which only say not read-only, idempotent, not destructive), the description discloses the concrete enforcement behavior: requests return 402 spend_cap_reached, null removes the cap, and unspecified fields are left untouched. It also flags the human-consent requirement, which annotations cannot express. This is exactly the extra context that matters for a billing-limits mutation.

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?

It is dense and nearly every clause adds information — error code, null semantics, partial-update rule, consent. The lead fragment "On demand only." is cryptic out of context and the sentence packs five concepts without separation, so structure is good but not exemplary.

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?

With five optional parameters, no schema descriptions, and no output schema, the definition covers the behavior an agent most needs: enforcement, null handling, and partial updates. Missing pieces are the response shape after a successful set and the exact meaning/units of the alert thresholds, which leaves a modest but real gap.

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 description coverage is 0%, so the description carries the burden, and it defines all five fields at a basic level: cap_usd semantics including null-to-remove, arrays for notification thresholds, and email/webhook_url as optional. Gaps remain on units and interplay — it does not say whether alert_usd is a cumulative dollar threshold per period or how alert_percents is interpreted, and email/webhook_url are only labeled "optional" without saying they are delivery channels.

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 states a concrete mutation with named resources: cap_usd sets a spend cap that blocks requests, while alert_usd/alert_percents create notifications. That is a specific verb-plus-resource statement an agent can act on, but it never contrasts itself with the sibling get_spend_controls, so the read-vs-write split has to be inferred from the verb.

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?

"On demand only" and "Ask the person before setting or removing a cap" give a clear operating context and an explicit confirmation gate for the destructive-feeling case. There is no stated when-not or named alternative (e.g., point to get_spend_controls for inspection), which keeps it below a 5.

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.