Skip to main content
Glama

LLM Pricing

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. Optionally scope to a specific org_id (omit for total spend across all orgs). Fires at most once per period_days while spend stays over threshold. Returns the alert ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesWebhook URL to POST when the alert fires
org_idNoOrganisation to monitor. Omit for total spend across all orgs.
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. 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 burden well: it discloses the firing semantics (at most once per period_days while spend stays over threshold), the webhook POST delivery, and the return value. It omits auth/permission requirements and webhook failure/retry behavior, which an agent configuring an endpoint would benefit from knowing.

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?

Three dense sentences that front-load the core action and trigger, then scoping, then firing cadence, then return value. No filler or restatement of the name.

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, but the description supplies the return value (alert ID) and the key operational semantics. Combined with 100% schema coverage, an agent has enough to invoke it correctly; only auth/prerequisite context and webhook failure handling are missing.

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 100%, so the baseline is 3. The description reinforces the semantics of org_id (omit for total) and the threshold/period interaction, but adds little that the schema's own parameter descriptions do not already state.

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 specific verb and resource ("Register a webhook URL to receive notifications") plus the exact trigger condition — recorded spend from record_usage crossing a USD threshold in a rolling window. This is clearly distinguishable from register_price_alert, list_budget_alerts, and delete_budget_alert by naming the data source and alert type.

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 clear selection context: use org_id to scope to one organisation, omit it to monitor total spend, and the alert fires at most once per period_days. It doesn't explicitly name sibling alternatives (register_price_alert for price drift, list_budget_alerts for review), so the routing guidance stops short of full when-not coverage.

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.