Skip to main content
Glama

Set webhook events

set_webhook_events
Idempotent

Choose which webhook events your key gets: job.started, job.completed, job.failed, usage.threshold. PUT /api/v1/webhooks/events {"events": [...]} (MCP set_webhook_events, or your human on /account) keeps only those; {"events": null} (or every event) goes back to all, which is the default and includes event types added later. [] turns off every event. GET (MCP get_webhook_events) shows the setting. ping (POST /api/v1/webhooks/test) is always sent. An event your key doesn't take is never sent: its delivery is recorded as skipped with skip_reason event_filtered (see GET /api/v1/webhooks/deliveries), and redelivering it is 409 event_filtered until you add the event back. The filter is read when HorseToga sends. Unknown event names get a 400 unknown_webhook_event. Free. The same as PUT /api/v1/webhooks/events.

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

Input Schema

NameRequiredDescriptionDefault
eventsNoThe events to keep (any of job.started, job.completed, job.failed, usage.threshold; [] for none), or null for every event (the default).
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.

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.3/5.0
Behavior5/5

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

Well beyond the annotations (which only say it is a non-read-only, idempotent, non-destructive write), the description discloses that null/all is the default and auto-includes future event types, that [] disables everything, that filtered deliveries are recorded as skipped with skip_reason event_filtered, and that redelivery then returns 409 event_filtered. It also surfaces the 400 unknown_webhook_event failure mode and that the call is free.

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?

Key semantics (enum, null, []) are front-loaded, but the text is a run-on chain of parenthetical asides ('or your human on /account', 'see GET /api/v1/webhooks/deliveries') and the closing 'The same as PUT /api/v1/webhooks/events' redundantly repeats the endpoint already given in the second sentence.

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 mutation tool with no output schema, it covers everything an agent needs: defaults, disabling, future event types, the ping exemption, downstream delivery-recording consequences, the 409 redelivery trap, and the 400 error case. Nothing material about correct invocation is left unstated.

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 enum values, null meaning, and the api_key pattern are already fully documented in the schema. The description adds one genuinely new fact—that the null default includes event types added later—but otherwise restates the enum list and the null/[] semantics verbatim, so baseline 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?

The opening clause names the exact verb and resource ('Choose which webhook events your key gets') and enumerates the four valid events. It also distinguishes itself from the sibling reader by naming get_webhook_events for viewing the current setting, so an agent can route without opening a 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 clearly positions the tool against siblings: get_webhook_events reads the setting, test_webhook/ping always fires, and list_webhook_deliveries shows skipped records. What it lacks is an explicit 'use this when you want X, not Y' statement for the null-vs-empty-list choice in a workflow context, leaving the agent to infer intent from the semantics.

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