Skip to main content
Glama

Add notification delivery method

stack_add_delivery_method

Add a notification delivery method (email, SMS or webhook). Email, SMS and webhook are the channel types: a hosted account's plan can limit SMS and webhook (the API answers 403 when it does), and SMS needs a text provider configured on the deployment. An email address matching the account email is verified automatically. Every other destination, webhook included, is verified with a code; for a webhook STACK posts the code to the URL signed with the destination's HMAC secret. Nothing is delivered to an unverified destination. Calls from MCP and API-key sessions require human approval. When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours. Returns the delivery method; for a webhook it returns a masked hint of the HMAC signing secret, never the secret itself.

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": {
      "channel_type": "<channel_type>",
      "destination": "<destination>"
    },
    "name": "stack_add_delivery_method"
  }
}

Input Schema

NameRequiredDescriptionDefault
destinationYesEmail address, phone number (+E.164), or webhook URL
channel_typeYesDelivery method type
governance_approval_idNoApproval id (gvr_*) from a GOVERNANCE_APPROVAL_REQUIRED response, after a human approved it in the dashboard

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare the mutating, open-world, non-destructive profile; the description adds the substantive behavior the agent cannot infer: destinations are undeliverable until verified, webhook codes are posted signed with the destination's HMAC secret, email matching the account address auto-verifies, approvals are single-use, payload-bound and expire in 24 hours, and the returned secret is masked.

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 remaining content is a single dense paragraph with run-on sentences and some restatement in the elicitation/fallback branch ("the page for that one approval"). It would read better split into channel rules, verification, approval, and return-value sections.

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?

With no output schema, the description correctly compensates by stating what is returned (the delivery method, plus a masked HMAC hint for webhooks) and by covering prerequisites, verification, and the full approval round-trip. Nothing an agent needs to call this correctly appears to be missing.

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, but the description adds real meaning: destination format per channel (email, +E.164, webhook URL), why governance_approval_id exists, and the fact that it must come from a prior GOVERNANCE_APPROVAL_REQUIRED response after human approval. The approval-id lifecycle constraints go beyond what the schema says.

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?

The definition opens with a specific verb plus resource ("Add a notification delivery method") and enumerates the three channel types, so the agent knows exactly what is created. It never names the sibling tools (stack_verify_delivery_method, stack_test_delivery_method) that handle adjacent steps, so differentiation is implied by the verification narrative rather than stated.

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?

Conditional guidance is strong: it explains that SMS and webhook can be 403-limited by plan, that SMS requires a configured text provider, and precisely what to do when GOVERNANCE_APPROVAL_REQUIRED is returned (resubmit with governance_approval_id after the human approves). It stops short of explicitly telling the agent when to choose this over the verify/test/list siblings.

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.