Skip to main content
Glama

Set usage alert

set_usage_alert
Idempotent

Optional usage alerts: set an alert webhook on your key (PUT /api/v1/usage/alert {"webhook_url"}, MCP set_usage_alert, or your human on /account) and HorseToga POSTs one signed usage.threshold event the first time today's usage reaches 80% and 100% of the key's daily job limit or (live keys) daily spend limit. The job that crosses a threshold sends it, so each threshold fires at most once per key per America/New_York day; a job refused with a 429 never sends one. Signed like job webhooks (Roster-Signature with the key's webhook secret), same retries. Sandbox keys get the same events for $0. Send {"webhook_url": null} to turn alerts off. GET /api/v1/usage shows the setting and today's alerts as alert. The same as PUT /api/v1/usage/alert. Returns the setting and today's alerts.

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_usage_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoYour HorseToga API key (rk_test_... or rk_live_...), if your client can't send it as the Authorization header. Get one with get_sandbox_key or request_access.
webhook_urlNohttps URL on a public host for signed usage.threshold events (80% and 100%), or null to turn alerts off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Your Roster API key (rk_test_... or rk_live_...), if your client can't send it as the Authorization header. Get one with get_sandbox_key or request_access."New value: +"Your HorseToga API key (rk_test_... or rk_live_...), if your client can't send it as the Authorization header. Get one with get_sandbox_key or request_access."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say non-read-only, idempotent, non-destructive): at-most-once firing per threshold per America/New_York day, no event for 429-refused jobs, Roster-Signature signing with the key's webhook secret, same retry behavior as job webhooks, sandbox keys get events at $0, and null disables. That is exactly the operational context an agent needs before mutating a setting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is one long run-on sentence with stacked parentheticals (REST path, MCP name, 'your human on /account', signature details), making it harder to scan than it needs to be. Almost every clause carries real information, so this is a structure problem rather than padding.

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?

Covers the mutation's effect, idempotence, event cadence, signing, sandbox behavior, how to disable, and what is returned ('the setting and today's alerts') despite there being no output schema. Minor gaps remain: no statement of what happens on an invalid or non-public webhook_url, and auth is only implied through the api_key parameter.

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 both parameters are already documented in the schema, including 'null to turn alerts off'. The description adds event semantics for webhook_url (what the URL receives, 80%/100% thresholds) but no new syntax or format detail beyond the schema, so the baseline of 3 applies.

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: set an alert webhook on the caller's key for usage thresholds. It also names the REST equivalent (PUT /api/v1/usage/alert) and implicitly separates itself from job webhooks by noting they are 'signed like job webhooks' — that is, a different thing.

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?

Explains when alerts fire (first time today's usage hits 80%/100%), that they are optional, and how to disable them via null. It never explicitly routes to siblings such as set_job_webhook, set_webhook_events, test_webhook, or get_usage for inspection, so the alternative-selection guidance is implicit rather than stated.

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