Skip to main content
Glama

List agent wakes

stack_list_wakes
Read-only

List the wakes of an agent, with or without an agent account: what started it, with the task to do. status "open" is the agent's queue: wakes that reached it and it has not picked up yet, oldest first; an agent with no live session and no webhook finds its wakes here on its next session. Without a status the wakes are newest first. Each has source (email, sms, voicemail, call, incoming_call, payment, post, invite, schedule, handoff, decision), task, status, delivered_via (webhook or mission; an MCP notification alone never counts as delivered), account_id (null for an agent with no account) and event: facts about what happened, such as the id of the message to read, never its content. A decision wake tells the agent how a pending item it waited on ended: event.item_kind, event.item_id and event.result. A delivered wake never acknowledged ends as expired after 30 days. 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. A wake that names a message also carries that message's sender_tags (and sender_resembles). sender_tags are STACK's own checks of who wrote, made when it arrived (null: not assessed): new_sender (none of the customer's agents has dealt with them before), new_domain (a company domain not seen before), lookalike_domain (it resembles a domain the customer already knows, named in sender_resembles), name_matches_known_contact (a known contact's name from another address or user), payment_details (a bank account number or IBAN), organizer_not_sender (an invite its organizer did not send) and unverified_sender (post). They warn and never block or hide a message, and none is no proof: confirm payment details, or a request that changes how someone is paid, with the person through a channel you already trust. Also returns rate: this window's wakes accepted and dropped by the agent's rate limit (a decision and an incoming call take no part in it).

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": {
      "agent_id": "<agent_id>"
    },
    "name": "stack_list_wakes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoWakes per page (1-100, default 25)
cursorNonext_cursor from the previous page
statusNoopen (the queue), or pending, delivered, acknowledged, refused or expired
agent_idYesAgent id (agt_*): any agent of the customer, with or without an agent account
passport_tokenNoThe Passport JWT of the agent whose queue is read (X-Passport-Token). With it the call is made as that agent, whoever is signed in; it must be an agent of the signed-in account. The owner reads without one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / passport_token / description
      Previous value: -"The agent's Passport JWT (X-Passport-Token); the owner reads without one."New value: +"The Passport JWT of the agent whose queue is read (X-Passport-Token). With it the call is made as that agent, whoever is signed in; it must be an agent of the signed-in account. The owner reads without one."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish read-only and non-destructive behavior, but the description adds substantial context: delivery semantics, 30-day expiration for unacknowledged wakes, rate-limit reporting, and the meaning of sender_tags. This is rich behavioral disclosure beyond the annotations.

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?

The purpose is front-loaded, but the description is a long, dense paragraph with many embedded details. Most information is relevant, yet the sender_tags explanation and return-field inventory make it less concise than ideal for tool selection.

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 and a complex return surface, the description carries the burden well by naming the key fields, status ordering, delivery rules, sender_tags, and rate information. An agent has enough context to call and interpret the tool correctly.

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 all parameters are already documented. The description still adds useful semantics for status ordering and for agent_id being valid with or without an agent account, going beyond the schema's field definitions.

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?

The description opens with a specific verb and resource: listing an agent's wakes, with or without an agent account. It also explains what a wake contains, making the tool's scope immediately distinguishable.

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?

It clearly explains how the status parameter changes behavior: 'open' returns the agent's queue oldest first, while omitting status returns newest first. It does not explicitly compare against sibling tools, but the usage context is strong.

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.