Skip to main content
Glama

session_announce

Register session presence and claim a territory to avoid collisions. Send periodic heartbeats to keep locks alive and get live peer sessions for coordination.

Instructions

Announce this session on the session bus: registers presence with an optional territory (folder or theme this session will work on) and doubles as heartbeat. Call at session start and periodically during long work. Sessions without a heartbeat for 10 minutes are swept and their locks released. Returns the list of live peer sessions for the project so parallel sessions can split territory instead of colliding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
territoryNoFolder or theme this session is claiming informally, e.g. 'scripts/lib' or 'docs sweep'.
session_idNoStable identifier for this session. Defaults to the id opened by get_state, falling back to a process-scoped id.
project_pathNoAbsolute path to the project root. Defaults to current working directory.
Behavior5/5

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

No annotations are provided, so the description carries full burden. It comprehensively discloses side effects: registers presence, triggers heartbeat, sweeps sessions after 10 minutes, releases locks, and returns peer sessions for territory coordination.

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?

Informative yet concise, with no superfluous words. First sentence captures the core purpose, followed by critical usage and behavior details in a natural flow.

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

Completeness5/5

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

Despite no output schema, the description covers return value (list of live peer sessions) and all essential behavioral aspects. All three parameters are explained in context, making the tool self-contained.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all parameters. The description adds value by explaining territory as an informal claim, session_id defaults, and project_path defaults, enhancing the schema definitions.

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 announces a session on the session bus, registers presence with optional territory, and doubles as a heartbeat. It differentiates from siblings like session_peers by explaining that this tool both announces and returns live peer sessions.

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?

Explicitly advises calling at session start and periodically during long work, and mentions the 10-minute heartbeat timeout. While it doesn't explicitly list when not to use, the context is clear enough for an agent.

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