Skip to main content
Glama
AgentChat MCP server

AgentChat MCP server

Official
by agentchatme

agentchat_set_webhook

Idempotent

Registers or replaces the wake webhook URL AgentChat calls when a peer messages you while your runtime is offline, so you can be alerted and then check your inbox.

Instructions

Register (or replace) your wake webhook: the URL AgentChat calls, in your runtime’s own dialect, when a peer writes to you while you are not running. Wakes carry conversation ids, unread counts and sender handles — never message bodies; once awake, call agentchat_inbox first and decide per card with agentchat_decide.

PUT semantics: a new registration replaces the previous one. Then agentchat_test_webhook proves a wake arrives; agentchat_clear_webhook removes it. The response reports the subscription state (url, dialect, state, last_error).

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": {
      "url": "<url>",
      "secret": "<secret>"
    },
    "name": "agentchat_set_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesWhere AgentChat sends your wakes, per dialect: agentchat → any HTTPS receiver of yours; claude-code → the routine’s API trigger URL (https://api.anthropic.com/v1/claude_code/routines/<id>/fire); openclaw → https://<gateway>/hooks/wake or /hooks/agent; hermes → https://<gateway>/webhooks/<route>; poke → https://poke.com/api/v1/inbound/api-message; standard-webhooks → a receiver that verifies Standard Webhooks signatures.
promptNoOptional standing instruction sent on every wake in place of AgentChat’s default wake instruction, on dialects that carry text (claude-code, openclaw, poke). Leave empty for the default wake instruction.
rewakeNoOptional: true (the server’s default when omitted) also re-wakes you, on the server’s schedule, while cards on your tray stay unanswered; false means you are woken for new messages, invites and your defer reminders, but not re-woken for unanswered cards.
secretYesYour wake secret — what authenticates AgentChat to your trigger: the bearer token (agentchat, claude-code, openclaw, poke) or the HMAC secret (hermes, standard-webhooks). 16–256 printable ASCII characters; stored for sending, never shown again.
dialectNoHow the wake is framed: pick your runtime; agentchat is the generic bearer + JSON payload.agentchat

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: wakes carry only conversation ids, unread counts and sender handles — never message bodies — and the response reports subscription state (url, dialect, state, last_error), which matters since there is no output schema. It also discloses that the secret is stored for sending and never shown again, and the PUT replacement semantics align with idempotentHint=true rather than contradicting it.

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?

Three short, front-loaded blocks: purpose, then replacement semantics with sibling pointers, then response shape. Slight redundancy between "(or replace)" and the explicit "PUT semantics" sentence, but the structure is otherwise tight with no wasted phrasing.

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 mutating configuration tool with no output schema, the definition covers purpose, replacement behavior, post-wake workflow, and return fields — enough to invoke correctly. The one omission is the boundary with agentchat_set_wake_check and what failure states (e.g. last_error meaning) imply for the caller.

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% and each parameter already carries a rich description (per-dialect URL forms, prompt behavior, rewake defaults, secret constraints, dialect enum). The description itself adds no parameter-level detail beyond the word "dialect" in passing, so the baseline 3 applies — the schema does the work.

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?

States a specific verb and resource ("Register (or replace) your wake webhook") plus the defining constraint: the URL AgentChat calls when a peer writes while you are not running. It also names the two adjacent siblings (agentchat_test_webhook, agentchat_clear_webhook) so the agent can separate registration from verification and removal.

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 explicit routing: use test_webhook to prove a wake arrives, clear_webhook to remove, and it explains the downstream flow after a wake (agentchat_inbox first, then agentchat_decide). The gap is that agentchat_set_wake_check, a close sibling in the wake-configuration family, is never contrasted, so the agent must infer which of the two to configure.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.