Skip to main content
Glama

workspace_sessions

Identify concurrent sessions in your project and see files they recently edited, so you can re-read potentially changed files before making your own edits.

Instructions

Returns same-workspace session awareness: who else is actively connected to this project and what files they recently edited.

you — this session's name.

active_sessions — sessions on this workspace right now (name, client, how long since their last tool call). A single entry whose is_self field is true means you are the only active session — your view of the workspace is authoritative. Multiple entries mean concurrent agents are working here; treat any file a peer recently touched as potentially changed.

recent_writes — the last N write operations (write_file, edit_file, rename_file, git commit, …) by all sessions on this workspace. The file path (when available), session name, operation, and age are shown. Only operations that could modify the workspace are listed: read-only git subcommands (status, log, diff, …) and dry-run previews never appear. A call that failed or was refused is kept but marked '[failed — no change applied]' — evidence the peer is working in that file even though nothing landed on disk. A successful git commit is attributed in full: its line carries the session name, the commit's short SHA and subject, and the repository, so a peer's commit is traceable to the session that authored it. When [collab] peer_awareness is on and the topology index has the file, each entry is annotated with its enclosing package/symbol (best-effort, source=topology).

Use this before editing a file that another session may have recently modified: if it appears in recent_writes, re-read it first.

Parameters: recent_limit — max recent-write entries to return (default 10, max 50).

Workspace boundary: workspace_sessions is scoped to the caller's pinned workspace; it never reveals sessions from a different project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recent_limitNoMaximum recent-write entries to return (1–50; default 10).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.16.6

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it succeeds admirably. It explains complex behaviors in depth: the distinction between the caller's session and others, that only write operations appear while read-only git subcommands are excluded, that failed operations are kept but marked, and that git commits are attributed in full with SHA and repo. This far exceeds what structured data could convey.

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 well-structured and thorough, using clear markdown headers to organize information about the workspace boundary, the output fields, and usage guidance. The critical usage instruction is front-loaded before the parameter details, and while detailed, every sentence earns its place by explaining behavior that couldn't be inferred from the schema.

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?

For a tool with no output schema and no annotations, this description is remarkably complete. It fully explains the response structure, the semantics of the 'self' session versus peers, the scope of recent_writes, and even the edge case of failed operations. The agent has all the information needed to call this tool correctly and interpret its results, from concurrency semantics to what the boundary of 'workspace' means.

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?

The schema's recent_limit parameter has 100% schema description coverage, so the baseline is 3. The description adds one meaningful piece of behavioral detail about the parameter — indicating it specifically limits 'recent-write entries' — which is a slight clarification, but doesn't add entirely new semantic information beyond the schema's well-documented parameter.

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 a specific verb ('Returns'), a specific resource ('same-workspace session awareness'), and the key differentiators: who else is connected and what files they recently edited. It provides a clear, non-tautological definition that goes beyond the tool name and effectively distinguishes it from sibling tools like file_status or git.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance, most notably: 'Use this before editing a file that another session may have recently modified: if it appears in recent_writes, re-read it first.' It also clearly explains the semantics of multiple active sessions versus a single self-session, effectively telling the agent when this tool is the right choice over alternatives for concurrency checks.

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

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/plumbkit/plumb'

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