Skip to main content
Glama

Set wake rule

stack_set_wake_rule
Destructive

Create a wake rule, or replace one (rule_id). source is email, sms, voicemail, call, incoming_call, payment, post, invite, schedule, handoff, decision, meeting, service_event or telegram (an incoming call, a drop-off from another of the customer's agents, a decision and an event of a connected service such as RentAHuman wake the agent on their own: a rule for them only gives the wake its own task). filters narrow it: from (addresses, @domain.example for a whole domain, phone numbers, or telegram: for a Telegram sender; message sources only) and min_amount_cents (payments only). A task is the owner's own words, or STACK's plain default for the source; nothing from the event is ever put into it. Each wake is one action on the meter and is put to the owner's decider as wake.deliver. At most 50 rules per scope. Operator only.

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": {
      "name": "<name>",
      "source": "<source>"
    },
    "name": "stack_set_wake_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA name for the rule
taskNoThe owner's own words for the agent; omit for STACK's plain default for the source
sourceYes
enabledNo
filtersNo
rule_idNoRule id (wkr_*) to replace; omit to create
agent_idNoAgent id (agt_*) of the agent these apply to. Omit for the customer's defaults, which every agent without its own setting uses.

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?

Goes well past the supplied annotations (destructiveHint=true, readOnlyHint=false) by disclosing billing impact ('Each wake is one action on the meter'), downstream routing ('put to the owner's decider as wake.deliver'), a data-isolation guarantee ('nothing from the event is ever put into it'), a hard quota (50 rules per scope), and an authorization requirement (operator only). These are exactly the behavioral traits an agent needs before a destructive write.

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?

Content is dense and front-loaded correctly, but it is delivered as one sprawling paragraph with deeply nested parentheses, making it hard to parse. A short bulleted or ordered structure for source/filters/limits would preserve the information with far less reading friction.

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 destructive, operator-only write with no output schema, it covers billing, quotas, authorization, replacement semantics, and data isolation well. Remaining gaps are minor but real: no mention of default for 'enabled', no statement of what comes back (presumably a wkr_* id), and no indication of what happens when the 50-rule cap is hit.

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?

Adds substantial meaning beyond the 57%-covered schema: it explains what the non-obvious source enum values mean (incoming_call, handoff, decision, service_event), gives concrete filter syntax ('@domain.example for a whole domain', 'telegram:<name>'), states which sources each filter applies to, and clarifies task fallback ('STACK's plain default for the source'). The 'enabled' parameter is left unexplained in both schema and description, which keeps it off a 5.

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, 'Create a wake rule, or replace one (rule_id)', which makes the upsert semantics explicit and distinguishes it from the delete/list wake-rule siblings. An agent can tell what operation this performs without opening the 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?

Provides strong context: 'Operator only', 'At most 50 rules per scope', per-source filter applicability ('message sources only', 'payments only'), and the important caveat that for self-waking sources a rule only gives the wake its own task. It stops short of naming when to use stack_delete_wake_rule or stack_list_wake_rules instead, so alternatives are implied rather than routed.

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.