Skip to main content
Glama

hub_claim

Claim a project work area or queued task so other agents see it as taken; use path globs for file-level coordination and exclusive mode to block conflicting live claims.

Instructions

Soft-lock a work area so other agents see it. Not enforced — informational. Write area as a path glob relative to the project root ("src/**/*.ts", "docs/{a,b}.md", "public/index.html", a bare directory) and hub_claim_check / hub_context can tell another agent that the file it opened is yours; prose is accepted but comes back matchable:false.

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": {
      "agent": "<agent>"
    },
    "name": "hub_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoa path glob relative to the project root; several joined with " + "
noteNo
taskNostart a task from your work queue instead: the claim is on task:<id> in the task's project (project and area are then not needed). While it holds the task is in progress and not offered again; when it lapses the task is offered again.
agentYes
ttlMinNodefault 240
projectNo
exclusiveNorefuse instead of warn when another agent holds a live claim on the same area: returns {ok:false, refused:true, holder} and nothing is written. Of two agents racing for one task, exactly one holds it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.9.88
    • addedInput schema / properties / exclusive
      Added value: +{
      +  "description": "refuse instead of warn when another agent holds a live claim on the same area: returns {ok:false, refused:true, holder} and nothing is written. Of two agents racing for one task, exactly one holds it.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / task
      Added value: +{
      +  "description": "start a task from your work queue instead: the claim is on task:<id> in the task's project (project and area are then not needed). While it holds the task is in progress and not offered again; when it lapses the task is offered again.",
      +  "type": [
      +    "string",
      +    "integer"
      +  ]
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "area",
      -  "agent"
      -]New value: +[
      +  "agent"
      +]
  2. Changed1 schema field changedv0.9.15
    • addedInput schema / properties / area / description
      Added value: +"a path glob relative to the project root; several joined with \" + \""
  3. First observedv0.1.6

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does good work on the key trait: the claim is advisory, not enforced, and non-glob prose comes back matchable:false. It does not disclose what a successful claim returns, what happens by default when another agent already holds a live claim (the schema mentions 'warn' only inside the exclusive param), or whether a re-claim overwrites.

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?

Purpose and the advisory caveat are front-loaded in the first two short clauses, and the rest is dense but earns its space by giving concrete syntax examples instead of an abstract rule. It reads as a slightly run-on single sentence but contains no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, no-annotation, no-output-schema mutation tool, the definition covers intent, area syntax, and downstream consumption well. It still leaves the agent guessing about the success response shape, default conflict behavior, and how to release a claim, which matters for a tool that mutates shared coordination state.

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?

At 57% schema coverage the description meaningfully upgrades `area` with concrete glob examples, the bare-directory case, and the matchable:false outcome for prose — semantics the schema does not state. However `note`, `agent`, and `project` remain undocumented in both places, and the task-claim mode is only explained in the schema's `task` description, so the description does not fully close the gap.

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 ('soft-lock a work area') plus the effect on other agents, and names the sibling consumers hub_claim_check / hub_context so the agent understands the intended scope. The 'not enforced — informational' clause immediately separates this from a hard mutual-exclusion lock.

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?

Usage is implied through the effect description ('so other agents see it') and the pointer to hub_claim_check / hub_context, which tells the agent why it would claim. But there is no explicit when-to-use / when-not-to-use framing and no mention of hub_release as the counterpart for dropping a claim, so the lifecycle must be inferred.

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