Skip to main content
Glama

set_thread_footprint

DestructiveIdempotent

Declare which repository paths, crates, lanes, or branches a thread's work touches so queued claims skip overlapping work and conflicting footprints are blocked.

Instructions

Declare what part of a repository this thread's work touches, so a swarm claiming from one queue never holds overlapping work. items lists {kind: path|glob|crate|lane|branch, value}; lane, crate and branch match exactly, path and glob by prefix (a glob counts up to its first wildcard). mode exclusive conflicts with any overlap, shared only with an exclusive one, and a branch is always exclusive. Footprints count only while the thread holds a live claim and free themselves when it ends. claim_next skips a thread whose footprint overlaps a live claim. On a claimed thread, a footprint that overlaps another live claim is refused with error code -32009 and data.conflicts (each with thread_id, assignee_id, lease_expires_at, kind, value), and nothing is stored: release the claim and requeue, or narrow the footprint. No items clears the footprint. repo is owner/name, or a GitHub clone URL.

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": {
      "thread_id": "<thread_id>",
      "repo": "<repo>",
      "mode": "<mode>"
    },
    "name": "set_thread_footprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
repoYesowner/name, or a GitHub clone URL
itemsNo
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true) by disclosing the conflict model (exclusive vs shared, branches always exclusive), the lifecycle ('count only while the thread holds a live claim and free themselves when it ends'), and the exact failure contract with error code -32009 plus the data.conflicts fields (thread_id, assignee_id, lease_expires_at, kind, value) and the guarantee that nothing is stored on refusal. That is behavioral detail an agent cannot get from structured fields.

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 purpose and then proceeds logically from item semantics to conflict rules to lifecycle to error handling. Every sentence carries operational meaning, though the conflict/error paragraph is dense and could be split for readability rather than compressed.

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 destructive, stateful mutation tool with no output schema, the description covers the required parameters, clearing behavior, lifecycle, and the exact error contract, which is close to complete. It leaves minor holes: the 'slot' kind is not explained, and there is no hint about what a successful call returns or whether it echoes the stored footprint.

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

Parameters4/5

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

With only 25% schema description coverage, the description does most of the work: it explains the matching rules per kind (lane, crate, and branch match exactly; path and glob by prefix; 'a glob counts up to its first wildcard'), what mode values mean, the repo format, and that an empty items list clears the footprint. The one gap is that the enumerated kinds listed in the description (path|glob|crate|lane|branch) omit 'slot', which the schema itself documents, so the description's kind list is slightly out of sync with the actual enum.

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 ('Declare what part of a repository this thread's work touches') plus the reason it exists (so a swarm claiming from one queue never holds overlapping work). This clearly separates it from sibling setters like set_thread_attributes or set_thread_budget, which configure other thread properties.

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 operational context and the consequences that select its use: claim_next skips threads whose footprint overlaps a live claim, and a footprint may only be set on an unclaimed thread. It also gives the remedy path after a -32009 refusal ('release the claim and requeue, or narrow the footprint') and says 'No items clears the footprint'. It stops short of naming a concrete alternative tool for removing or inspecting footprints, but the when/when-not conditions are explicit enough to act on.

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

Deploy Server

Other Tools