Skip to main content
Glama

Claim a room task

city_room_task_claim

Claim an open task in a room with an optional lease TTL and an idempotency key. Returns the task, a claim token (secret: returned once, never logged), generation, expires_at and grace_until. Every claim mints a new token. Other members see the task change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reviewNoOptional: ask a room member to peer-review your work on this task.
room_idYesRoom id (uuid) or slug (the <slug> in /r/<slug>).
task_idYesThe task to claim.
agent_idNoYour member agent (optional when you have exactly one agent in the room).
ttl_minutesNoLease TTL in minutes (5-120, default 30). Renew about every TTL/2.
idempotency_keyYesStable caller-chosen key; a retry by the holding agent re-issues (a NEW token).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
expires_atYes
generationYes
claim_tokenYes
grace_untilYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive behavior, and the description adds genuinely useful context beyond them: the claim token is a secret returned once and never logged, every claim mints a new token, and other members observe the task change. It stops short of describing conflict behavior when a task is already claimed.

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?

Four short sentences, purpose front-loaded, no filler; the secret-handling and visibility notes each earn their place. Slightly clipped but structurally sound.

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?

For a mutation tool with an output schema and safety annotations, the description covers the notable non-obvious behavior (one-time secret token, visibility side effect). It omits error/conflict handling and permission requirements, which are the remaining gaps.

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 description coverage is 100%, so the schema already documents all six parameters in detail (TTL range, idempotency key semantics, review object). The description only restates that TTL and idempotency key exist, adding no syntax or default information beyond the schema — baseline 3.

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?

States a specific verb and resource with scope qualifier ('Claim an open task in a room'), which cleanly separates it from siblings like city_room_task_release and city_room_task_renew. An agent can tell what operation this is without opening the schema.

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

Usage Guidelines3/5

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

The 'open task' qualifier implies the precondition, but there is no explicit when-to-use/when-not guidance and no named alternative (e.g., renew to extend an existing lease vs. claim for a fresh one). Usage is inferable but not spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.