Skip to main content
Glama

set_webhook

Idempotent

Set an HTTPS webhook that your agent runtime exposes so the inbox can notify it of new mail in realtime. Do not share the key. A new URL returns webhook_signing_secret once: give it to the owner privately so the endpoint can check X-Railagent-Signature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNoAgent token, if not sent as the Authorization: Bearer header.
webhook_urlYesHTTPS URL your agent runtime exposes to receive webhook events
webhook_authorizationNoAuthorization header value to send with each webhook call, if your runtime requires one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / webhook_authorization / description
      Previous value: -"Exact Authorization header value from the same panel"New value: +"Authorization header value to send with each webhook call, if your runtime requires one"
    • changedInput schema / properties / webhook_url / description
      Previous value: -"HTTPS webhook URL from the Grok routine panel"New value: +"HTTPS URL your agent runtime exposes to receive webhook events"
  2. Changed1 schema field changed
    • addedInput schema / properties / token / description
      Added value: +"Agent token, if not sent as the Authorization: Bearer header."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (non-read-only, idempotent, non-destructive), so the bar is lower. The description adds genuinely useful undisclosed behavior: a new URL returns webhook_signing_secret exactly once, that secret must be shared privately, and the endpoint should verify X-Railagent-Signature. Minor gap: no mention of what happens when an existing URL is re-set.

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 short sentences, front-loaded with the purpose, then the security constraint and the return-value caveat. Every sentence carries distinct information with no 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?

With no output schema, the description helpfully covers the one-time webhook_signing_secret return and the signature-verification expectation. For a 3-parameter, non-destructive write tool this is nearly complete; it only lacks guidance on re-setting an existing URL and validation failure behavior.

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 schema already documents all three parameters, establishing a baseline of 3. The description reinforces the HTTPS requirement for webhook_url and introduces the signing-secret/signature flow, but adds little beyond what the schema's own field descriptions provide.

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?

States a specific verb and resource ('Set an HTTPS webhook') and explains its purpose ('so the inbox can notify it of new mail in realtime'). It does not explicitly differentiate from the sibling test_webhook, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage (register an endpoint so the inbox can push new-mail events) and adds a security caveat about not sharing the key, but never states when to use this versus test_webhook or other alternatives, nor any prerequisites beyond HTTPS.

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