Skip to main content
Glama

claim_next_card

Atomically lease the next eligible card in a column, draining it as a durable work queue. Mirrors POST /v1/boards/{board_id}/columns/{column_id}:claim-next. Returns a lease with a one-time lease_token receipt plus the full card. Present that token on every later renew/complete/fail call for this lease. When the queue is drained returns {object:'lease', card:null} (a single content-type, cheap to busy-poll, and never an error). lease_ttl_seconds overrides the column contract's TTL for this claim (and defaults every subsequent renew). Requires board edit_cards permission. The nested card carries a top-level unique_id: the resolved human key ("BUG-12"), or null when the board defines no unique_id property.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "board_id": "<board_id>",
      "column_id": "<column_id>"
    },
    "name": "claim_next_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
board_idYes
column_idYes
lease_ttl_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: discloses atomicity, the one-time lease_token receipt, TTL override semantics that also propagate to subsequent renews, the required board 'edit_cards' permission, and the exact drained-queue return shape. This is materially more than the schema conveys.

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?

Front-loads the core action and then layers the lease token, drained-state, TTL, and permission details in short declarative sentences. Dense but every sentence carries a distinct fact; the endpoint-mirroring clause is the only mildly expendable line.

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 mutation-shaped queue tool with no annotations, the description covers permissions, atomicity, lease lifetime, follow-up calls, and the empty-queue edge case. An output schema exists, yet the extra note on the nested card's resolved unique_id key adds useful interpretation beyond it.

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 0%, and the description thoroughly explains lease_ttl_seconds — its override of the column contract TTL and its effect as the default for later renews. However, board_id and column_id are left to their uuid types alone, so the description compensates for only one of three undocumented parameters.

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 precise verb and resource — 'atomically lease the next eligible card in a column' — plus the queue-draining semantics, which clearly separates it from plain read tools like get_card and from the lease lifecycle siblings (complete_lease). Also names the backing REST endpoint, anchoring meaning unambiguously.

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?

Explains the operating context well: it hands back a lease_token that must be presented on later renew/complete/fail calls, and that when the queue is drained it returns card:null rather than an error, making busy-polling viable. It stops short of explicitly contrasting with non-lease card retrieval, but the workflow framing leaves little ambiguity.

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.

Resources