Skip to main content
Glama

relay_send

Sends a message to another Claude Code session, locally or across machines, so separate sessions can exchange requests, information, and responses.

Instructions

Send a message to another Claude Code session (local or remote)

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": {
      "to": "<to>",
      "message": "<message>"
    },
    "name": "relay_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget session name (local) or machine:session (remote)
typeNoMessage type: request (needs reply), info (FYI), response (answering a request)info
messageYesMessage content (max 1 MB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it only discloses the local/remote routing dimension. It says nothing about whether the send is synchronous or queued, what happens if the target session is offline or does not exist, whether delivery is confirmed, or what errors look like.

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?

A single front-loaded sentence with no filler, and the local/remote qualifier is placed where it is immediately useful. It is efficient but too terse to earn a 5 given the tool's side effects.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With three fully documented parameters the schema side is covered, but this is a side-effecting messaging tool with no annotations and no output schema. An agent still cannot tell from the definition whether the message is delivered immediately, buffered, or lost when the peer is absent, which is core to calling it safely.

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%: the 'to' format (name or machine:session), the three message types with their reply expectations, and the 1 MB message cap are all documented in the schema itself. The description adds no parameter meaning beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource: 'Send a message to another Claude Code session', with the local/remote scope stated. The singular 'another session' implicitly distinguishes it from relay_broadcast, but no sibling is named, so differentiation is inferred rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no exclusion of alternatives such as relay_broadcast for multi-recipient sends, and no mention of relay_poll for reading replies. The agent must infer that this is the one-to-one send path from the word 'another'.

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

Deploy Server

Other Tools