Skip to main content
Glama

Get agent wake

stack_get_wake
Read-only

Get one wake of an agent: its source, the task, where it stands and the facts about the event. To read a message a wake points at, use the id in event.message_id with the account's messages; a decision wake names the pending item in event.item_kind and event.item_id and how it ended in event.result. A wake that names a message carries its sender_tags too. 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.

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>",
      "wake_id": "<wake_id>"
    },
    "name": "stack_get_wake"
  }
}

Input Schema

NameRequiredDescriptionDefault
wake_idYesWake id (wke_*)
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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, yet the description still adds real behavioral context: sender_tags are warnings that 'never block or hide a message', null means 'not assessed', and absence of flags is 'no proof', with explicit advice to confirm payment details out of band. It omits error/not-found behavior and whether reading affects wake state, so it falls short of a 5.

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 is front-loaded in the first clause, then routing guidance, then flag semantics — a sensible order. The nine-flag glossary is delivered as one dense run-on sentence, which is justified because there is no output schema but hurts scannability and pushes the text long.

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?

With no output schema, the description carries the return-value burden and does so: it names the wake's source, task, state, event facts, message routing fields, decision-wake fields and the sender_tags vocabulary including sender_resembles. Remaining gaps are failure modes (invalid wake_id, missing passport token) and whether reading marks the wake as seen.

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% — agent_id, wake_id and passport_token all carry their own descriptions, including the X-Passport-Token acting-as semantics. The description adds nothing about the parameters themselves; its detail is entirely about returned fields (event.*, sender_tags, sender_resembles), so the schema baseline of 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?

Opens with a specific verb and resource — 'Get one wake of an agent' — and immediately scopes what a wake contains (source, task, state, event facts). An agent can tell this is a single-object read of a wake, distinct from the list/rule/schedule siblings, without opening any 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?

Gives concrete follow-on routing: to read the referenced message use event.message_id against the account's messages, and for decision wakes read event.item_kind, event.item_id and event.result. It does not name when to call this versus stack_acknowledge_wake or state prerequisites for obtaining a wake_id, so guidance is strong on interpretation but not exhaustive on tool selection.

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.