Skip to main content
Glama

Agent Workforce

queue_claim

Agent Workforce: a worker claims the highest-priority ready job and gets a LEASE (it is now responsible). Send jacket_key too and the attached Job Jacket is checked out in the same call (one call to start a shift). Expired leases come back with the last checkpoint so a replacement can resume. Header X-Queue-Key. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/queue/claim, $0.002 via x402.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "queue_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
queue_idNoqueue id
worker_idNoworker id
x_queue_keyNothe key returned by create (sent as a header on HTTP)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / queue_id / description
      Added value: +"queue id"
    • addedInput schema / properties / worker_id / description
      Added value: +"worker id"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false), the description discloses the key behavioral facts: claiming creates a lease and transfers responsibility, expired leases return the last checkpoint so a replacement can resume, and a second resource (Job Jacket) can be checked out atomically. It omits lease duration and renewal/expiry mechanics, which matter for a non-idempotent lease operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior is front-loaded in the first two sentences, which is good. The remainder mixes useful context (header, expired-lease resume) with promotional and deployment noise ("By OMENZ", free playzone, production URL and $0.002 x402 pricing) that is unlikely to help an agent choose or invoke the tool.

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 non-idempotent, open-world claim operation with no output schema, the description covers what the call produces (a lease, or a checkpoint-bearing expired lease), how auth is passed, and that jacket checkout can be bundled. Missing lease TTL, renewal path, and empty-queue behavior keep it short of complete.

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 coverage is 100%, so the three parameters are already documented and the baseline is 3. The description adds that x_queue_key travels as the X-Queue-Key header, which is genuinely useful, but it also instructs the caller to "send jacket_key too" even though no such property exists in the schema — a mismatch that adds confusion rather than meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: a worker claims the highest-priority ready job and receives a lease, which is far more informative than the name alone. It does not, however, distinguish this from close siblings such as queue_bid or queue_award, so the agent must infer the boundary.

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?

"One call to start a shift" implies this is the entry point when a worker is ready to take work, and the jacket_key note implies an optional combined checkout. There is no explicit when-not guidance, no mention of queue_heartbeat for renewing an expiring lease, and no statement about what happens when no job is ready.

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