Skip to main content
Glama

register_budget_alert

Register a webhook URL to receive notifications when actual recorded spend (from record_usage) crosses a USD threshold within a rolling window. The alert monitors your org's spend. Fires at most once per period_days while spend stays over threshold. Returns the alert ID. Requires your service API key on the MCP connection (x-api-key or Authorization: Bearer); org_id defaults to, and must match, that key's org.

Input Schema

NameRequiredDescriptionDefault
urlYesPublic https webhook URL to POST when the alert fires (no private, internal or loopback hosts; redirects are not followed)
org_idNoOrganisation to monitor. Defaults to, and must match, the org of the service key on the MCP connection
period_daysNoRolling look-back window for the spend check, in days (default: 30)
threshold_usdYesSpend level in USD that triggers the alert

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Webhook URL to POST when the alert fires"New value: +"Public https webhook URL to POST when the alert fires (no private, internal or loopback hosts; redirects are not followed)"
  2. Changed1 schema field changed
    • changedInput schema / properties / org_id / description
      Previous value: -"Organisation to monitor. Omit for total spend across all orgs."New value: +"Organisation to monitor. Defaults to, and must match, the org of the service key on the MCP connection"
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the fire-once-per-period_days deduplication behavior, the auth requirement (service API key via x-api-key or Bearer), the org-scoping constraint, and that it returns an alert ID. It omits what happens on re-registering an existing URL (duplicate vs. update) and webhook retry/delivery semantics.

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?

Four tight sentences, front-loaded with what the tool does, followed by firing behavior, return value, and auth prerequisites — no filler and nothing buried.

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?

No output schema exists, and the description compensates by stating it returns the alert ID; auth and org scoping are also covered, which is essential given zero annotations. The remaining gap is lifecycle behavior for an already-registered URL, which matters for a create tool the agent may call repeatedly.

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 coverage is 100%, so the baseline is 3; the schema already explains period_days as a rolling look-back and org_id's default-and-match rule. The description reinforces the record_usage linkage behind threshold_usd but adds no new syntax, format, or unit detail beyond the structured fields.

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?

Specific verb+resource: registers a webhook URL that notifies when actual spend recorded via record_usage crosses a USD threshold. It names the data source (record_usage) and the monitored object (org spend), which cleanly separates it from record_usage and from sibling alert tools like register_price_alert.

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 states the condition that makes this the right tool — you want notification when real recorded spend crosses a threshold in a rolling window — and points at record_usage as the spend source. It does not explicitly contrast with register_price_alert or list_budget_alerts, so the agent must infer the boundary from names.

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.