Skip to main content
Glama

Create inbound webhook

stack_create_inbound_webhook

Create a hosted inbound webhook and return its URL and metadata. STACK verifies signatures on received calls, scans the content for prompt injection and forwards clean calls to forward_url. Signing is configured by an owner or admin through the REST API or SDK (https://getstack.run/docs/api/inbound-webhooks); this tool returns no signing secret.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "provider": "<provider>",
      "agent_id": "<agent_id>"
    },
    "name": "stack_create_inbound_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent ID to attribute security_events to (e.g. agt_*). The agent must belong to the calling operator.
providerYesProvider identifier. 'agentmail' uses AgentMail's payload shape; 'generic' accepts any JSON webhook with HMAC-SHA256 + X-Webhook-Signature header (configurable).
forward_urlNoDownstream URL STACK POSTs to after a clean scan. Leave null/unset for log-only mode (scan runs, decision recorded, no forward). Must be publicly accessible (no localhost/private ranges).
generic_configNoOnly valid when provider='generic'. Configures HMAC scheme + scan content extraction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly=false, destructive=false), but the description adds real behavioral context beyond them: received calls are signature-verified, content is scanned for prompt injection, only clean calls are forwarded to forward_url, and the response deliberately omits a signing secret. It also discloses the auth requirement (owner or admin via REST API/SDK), which is exactly the kind of prerequisite annotations do not express.

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 tight sentences, front-loaded with the action and return value, followed by the runtime behavior and the scope limitation. Nothing is repeated from the schema and there is no filler.

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?

For a mutation tool with a nested config object and no output schema, the description covers the operational flow and the scope boundary around signing well. The return payload is only summarized as 'URL and metadata' rather than enumerated, which is the one remaining shortfall.

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% and every parameter, including the nested generic_config fields, is documented in the schema itself. The description adds only marginal meaning (forward_url implicitly tied to 'forwards clean calls') and does not explain provider selection or generic_config behavior, so the 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?

Specific verb and resource ('Create a hosted inbound webhook') plus the immediate return value ('its URL and metadata'). It also distinguishes itself from secret-management siblings by stating explicitly that this tool returns no signing secret, which an agent can use to route correctly among the inbound-webhook tools.

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?

Usage context is clear: this is the provisioning step, with signature verification, injection scanning and forwarding described as what happens afterwards. It also tells the agent that signing configuration is out of scope here and must be done by an owner/admin via the REST API or SDK, so the agent knows this call alone does not complete signing setup. No explicit exclusion of named alternatives, which is the only gap.

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.