Skip to main content
Glama

cos_presence_query

Read-onlyIdempotent

Check per-agent presence state and live-session inventory to verify zombie sessions are gone after deploy.

Instructions

Return per-agent presence state and live-session inventory.

Reads .coding-os/<agent>/sessions/*.json (the same files agent-presence.sh writes) and applies the SSOT rules in board_os.presence. When agent is empty, every adapter registered in adapters//adapter.yaml is reported.

Used by cos daily, CI gates, and the live-agents board UI to verify zombie sessions are gone after deploy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond annotations (readOnly, idempotent), it reveals it reads specific files (".coding-os/<agent>/sessions/*.json"), applies SSOT rules in board_os.presence, and defines behavior when agent is empty (reports all registered adapters). This adds valuable operational detail without contradicting annotations.

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?

Four compact sentences: purpose, data source, empty-agent behavior, and usage context. No redundant phrasing; each sentence adds distinct information.

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 the tool's single optional parameter and the presence of an output schema, the description sufficiently covers data provenance, rules applied, empty-agent semantics, and practical use. It doesn't enumerate all return fields, but that is handled by the output schema.

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 has 0% description coverage, so the description must compensate. It explains the empty-agent behavior ('every adapter registered... is reported') but does not explicitly define the expected format/identifier for a non-empty agent value. Thus, partial compensation.

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?

Description opens with 'Return per-agent presence state and live-session inventory,' a specific verb+resource statement. It details the data source (.coding-os sessions files) and clearly differentiates from sibling tools by focusing on presence/session inventory.

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?

States it is used by cos daily, CI gates, and the live-agents board UI to verify zombie sessions are gone after deploy, giving concrete use cases. Does not explicitly name alternative tools or exclusion criteria, but the usage context is clear enough.

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/kouroshez/coding-os'

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