Skip to main content
Glama
smurfy92

openclaw-control-mcp

by smurfy92

openclaw_chat_send

Send a message to an active chat session using a composite session key and message body. Triggers an agent response.

Instructions

Send a message into a chat session via the gateway's chat layer. Wire format (verified live against gateway 2026.4.12+): requires sessionKey (composite, e.g. 'agent:main:main' from openclaw_sessions_list), message, and idempotencyKey (auto-generated UUID if omitted). The pre-0.5.x agentId/sessionId/text shape is rejected by the gateway. Destructive — triggers an agent turn.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesMessage body.
instanceNoOptional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list.
sessionKeyYesComposite session key from openclaw_sessions_list (e.g. 'agent:main:main', 'agent:main:cron:<id>').
idempotencyKeyNoUnique key to dedupe retries. Auto-generated UUID if omitted.
Behavior4/5

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

With no annotations, the description carries full disclosure burden. It explicitly states 'Destructive — triggers an agent turn', which is a key behavioral trait. It also mentions wire format version compatibility, but does not cover rate limits or authentication needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph of four sentences, front-loading the purpose and then adding essential details. Every sentence adds value; no redundancy.

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 tool with 4 parameters, 2 required, no output schema, the description covers purpose, required parameters, idempotency, version warnings, and destructive nature. It does not mention the return format, which would be helpful given no output schema, but overall it is quite complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value beyond schema by explaining that sessionKey is composite from openclaw_sessions_list, idempotencyKey is auto-generated if omitted, pre-0.5.x shape is rejected, and instance parameter has fallback behavior.

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 clearly states 'Send a message into a chat session via the gateway's chat layer', specifying verb (send) and resource (message into chat session). It distinguishes from sibling tools like openclaw_sessions_send and openclaw_send by referencing the chat layer and gateway specifics.

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?

The description specifies required parameters (sessionKey, message, idempotencyKey) and warns about the deprecated pre-0.5.x shape, but does not explicitly state when to use this tool vs alternatives. However, the purpose is distinct enough that an agent can infer appropriate use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smurfy92/openclaw-control-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server