Skip to main content
Glama

set_status

Declare your agent's operational status (idle, working, blocked, waiting_user, offline) to control task routing and prevent automatic reassignment while actively engaged.

Instructions

Declare your operational state independently of presence.

When to use: tell the relay what kind of work you are in, so the health monitor and orchestrators can route or skip accordingly. Distinct from last_seen-derived presence (online/stale/offline), that one is computed; this one is your declared intent. For one-call team rollup use get_standup.

Behavior: updates the agent row's agent_status (idle | working | blocked | waiting_user | offline). v2.1.3 (I6) widened the enum from the original online/busy/away/offline. busy and away map to working for backward compatibility. The health monitor exempts working/blocked/waiting_user rows from automatic task reassignment. Auth: own agent token only.

Returns: { success: true, agent, status, note, status_normalized_from? }. status_normalized_from is set when the input alias (e.g., online/busy/away) was rewritten to the canonical enum value (idle/working).

Errors: NOT_FOUND (unknown agent_name), AUTH_FAILED, INVALID_INPUT, RATE_LIMITED.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYesOperational status — v2.1.3 widened enum: idle (default active state), working (actively executing a task; exempts from health-monitor reassignment), blocked (cannot proceed; also exempt), waiting_user (paused pending operator input), offline (graceful shutdown). Legacy aliases still accepted: online→idle, busy→working, away→blocked. `stale` is relay-computed, not agent-settable.
agent_nameYesYour agent name
agent_tokenNoYour agent token (from register_agent response). Optional here — also resolvable from RELAY_AGENT_TOKEN env or X-Agent-Token header.
Behavior3/5

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

Rich behavioral detail: health-monitor reassignment exemption, enum aliasing (busy/away→working), auth requirements (own token only), and error codes. However, no annotations are provided, so the description carries the full burden; it does disclose mutation, auth, and enum-widening. The mapping details add significant value beyond just 'declares status'.

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?

Well-structured with labeled sections (When to use, Behavior, Returns, Errors) that front-load the critical decision context. Slightly verbose in places but every sentence earns its place with concrete operational details like the enum mapping and version reference.

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?

Complete for a state-setting tool: describes behavior, health-monitor implications, return shape, error codes, and auth requirements. Given no output schema, the Returns section compensates by documenting the response shape. No annotations require additional disclosure.

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

Parameters5/5

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

Schema coverage is 100% and the description adds substantial semantic value: it explains the legacy alias mapping (online→idle, busy→working, away→blocked), notes which statuses exempt from reassignment, and clarifies which values are relay-computed vs agent-settable. Also explains the optional agent_token resolution chain via env/header.

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?

Declares operational state distinct from presence, with explicit verb (declare, set) and resource (agent_status). Explicitly differentiates from last_seen-derived presence and identifies sibling get_standup for rollup use. Purpose is specific and clear.

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?

Explicit 'When to use' section states the context (tell the relay what kind of work you're in for health monitor/orchestrator routing) and explicitly distinguishes from last_seen-derived presence and names the alternative get_standup. Provides clear when-use and when-not-use guidance.

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/Maxlumiere/bot-relay-mcp'

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