Skip to main content
Glama

claim

Reserve files for a Linear issue before editing to avoid concurrent session conflicts; the request is all-or-nothing and returns conflicting files for coordination.

Instructions

Register intent to edit one or more files, scoped to a Linear issue id. Call this BEFORE editing files you haven't touched yet in this session — the PreToolUse hook auto-claims files as you edit them, so this is mainly for reserving files ahead of time (e.g. before a multi-file refactor) or to check for conflicts early. All or nothing: if another session holds any of the files, nothing is claimed and they are listed as conflicts. Treat conflicts as a signal to coordinate with that session, not to force through.

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": {
      "issue_id": "<issue_id>",
      "file_paths": "<file_paths>",
      "session_id": "<session_id>"
    },
    "name": "claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
issue_idYesLinear issue identifier (e.g. ENG-123) this work belongs to
file_pathsYesAbsolute or repo-relative file paths to claim
session_idYesThe scoped session_id given to you in context at session start (from scoped's SessionStart hook). Required so this claim matches the PreToolUse hook's enforcement for your session.
ttl_secondsNoOverride the default 4h claim expiry (max 7 days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden well: it discloses atomic all-or-nothing semantics, that conflicting files are returned as a list, and the interplay with the PreToolUse hook. It stops short of stating what a successful response contains or whether repeated claims are idempotent, and does not discuss any permission or identity requirements beyond the session id.

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

Conciseness5/5

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

Every sentence is load-bearing: purpose first, then timing, then the auto-claim exception, then atomicity semantics, then conflict interpretation. No filler or restatement of the name.

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-style tool with no annotations and no output schema, the description covers timing, atomicity, and conflict semantics thoroughly. The remaining gap is return-shape detail on success (what a claimed-set response looks like), which is only partially implied by 'they are listed as conflicts'.

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 defines issue_id, file_paths, session_id, and ttl_seconds. The description adds only indirect meaning ('reserving files ahead of time', 'scoped to a Linear issue id') and never mentions ttl_seconds, so baseline 3 is appropriate.

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: 'Register intent to edit one or more files, scoped to a Linear issue id.' Combined with the sibling set (check/release/status), the claim/release pairing is unambiguous, and the scoping to an issue id further narrows it.

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

Usage Guidelines5/5

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

Explicitly says when to call it ('BEFORE editing files you haven't touched yet in this session', 'before a multi-file refactor') and when it is unnecessary (the PreToolUse hook auto-claims on edit). It also gives guidance on how to interpret the failure case: 'Treat conflicts as a signal to coordinate with that session, not to force through.'

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