Skip to main content
Glama

Create a webhook subscription

create_subscription

Creates a subscription and returns its id, title, state, trigger and webhook. Use it to deliver one trigger to one webhook in the current workspace. Use get_trigger for required inputs and filter fields. Inputs choose what is fetched. Conditions filter events. Get the webhook fullname from list_webhooks or add_webhook. The API can refuse creation with subscription_limit_reached. A created subscription may be blocked and include blockedReason. If the call ends without a reply, call list_subscriptions before retrying because a retry can create a duplicate. Use set_subscription_state for an existing subscription.

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": {
      "trigger": "<trigger>",
      "webhook": "<webhook>"
    },
    "name": "create_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoUse on to deliver events or off to pause delivery.on
titleNoOptional display title for the subscription.
inputsNoRuntime values keyed by input name from get_trigger. Include every required input.
triggerYesTrigger fullname from get_trigger or find_triggers.
webhookYesWebhook fullname from list_webhooks or add_webhook.
conditionsNoFilter on fields from get_trigger. Omit or pass null for all events.

Output Schema

NameRequiredDescriptionDefault
workspaceYes
subscriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false; the description adds substantial value on top by disclosing the subscription_limit_reached refusal, the blocked/blockedReason outcome on a created subscription, and the duplicate-creation hazard on retry. It does not explain permission requirements or whether the created resource can be rolled back, and the duplicate-retry guidance partly restates the non-idempotency already implied by idempotentHint=false, so this is good but not exceptional coverage.

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

Conciseness4/5

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

Purpose and return shape are front-loaded, and nearly every sentence carries a distinct fact (prerequisites, error cases, retry hazard, sibling routing). The telegraphic one-clause sentences ("Inputs choose what is fetched. Conditions filter events.") read as clipped notes rather than flowing prose, and the return-field enumeration is partly redundant with the output schema.

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 mutating, non-idempotent, open-world tool with six parameters and deeply nested condition objects, it covers the prerequisites for each required field, the failure mode, the partial-success state, and the retry safety rule. Return values are already covered by the output schema, so the remaining enumeration is bonus rather than a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an increment by explaining the conceptual split between inputs ("what is fetched") and conditions ("filter events"), which the schema's nested anyOf does not make obvious. It still defers all field-level and operator detail to get_trigger and the schema rather than adding format or syntax guidance.

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?

Opens with a specific verb and resource and even enumerates the returned fields: "Creates a subscription and returns its id, title, state, trigger and webhook." It immediately scopes the operation ("deliver one trigger to one webhook in the current workspace") and later names set_subscription_state as the tool for existing subscriptions, so it is distinguishable from siblings 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 Guidelines5/5

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

States when to use it and how to prepare: fetch inputs/filter fields via get_trigger, resolve the webhook fullname via list_webhooks or add_webhook. It also routes the agent away from this tool for modification (set_subscription_state) and gives a concrete recovery procedure (list_subscriptions before retrying) when a call ends without a reply.

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.