Skip to main content
Glama

session_send

Send events to a specific session or broadcast to all sessions in a project. Use intents and pointers to communicate without bulk content, with payloads capped at 16KB.

Instructions

Send an event to another live session (direct) or to every session in the project (broadcast, by omitting to_session). Events carry intents and pointers, not bulk content: payloads are capped at 16KB, so store large context in project state and send a reference. Delivered once per receiving session, kept for 24h.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesShort event type, e.g. 'handoff', 'heads-up', 'done', 'request'.
payloadNoEvent body (max 16KB). Any string including JSON.
session_idNoSender session id. Defaults to the current session.
to_sessionNoTarget session id from session_peers. Omit to broadcast to the whole project.
project_pathNoProject scope for broadcast delivery. Defaults to unscoped.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses payload cap (16KB), delivery once per session, retention (24 hours), and default behavior for session_id. This is sufficient for understanding the tool's behavior.

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?

Three sentences, each serving a purpose: first defines the core action, second addresses constraints and alternatives, third details delivery guarantees. No unnecessary words.

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?

Given no annotations and no output schema, the description covers delivery semantics, defaults, and limits. It could mention ordering guarantees, but overall it is fairly complete for the tool's complexity.

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%, so the description adds only marginal value beyond the schema: it explains broadcast behavior (omit to_session) and the payload size limit. The schema already describes each parameter adequately.

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 the tool sends events to live sessions, distinguishing between direct (with to_session) and broadcast (omit to_session). It uses specific verbs and resources, and the sibling tools like session_announce suggest this is a distinct messaging function.

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 explains when to use direct vs broadcast, payload constraints, and suggests storing large context in project state. It does not explicitly list when not to use, but the context is clear.

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/Fmarzochi/EGC'

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