Skip to main content
Glama

check

Verifies whether a file path is currently claimed by another session before you start editing, preventing conflicting work.

Instructions

Check whether a file path is currently claimed by any session, before starting work on it.

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": {
      "file_path": "<file_path>"
    },
    "name": "check"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesFile path to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.6/5.0
Behavior3/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. 'Check whether... is currently claimed' strongly implies a non-mutating query, but the description never states explicitly that nothing is modified, nor whether the call is scoped to a session or global, or how stale the claim state may be. Read-only intent is implied rather than disclosed.

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?

One compact sentence with the action front-loaded and the workflow timing attached without padding. Nothing is redundant, though the sentence could have been split slightly more cleanly between what it does and when to call it.

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 single-parameter query tool this covers the essentials, and no output schema exists so return values need explaining. The description does not indicate whether the result is a boolean, a session identifier, or richer claim metadata, which an agent needs in order to decide its next step after checking.

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% with a single required string parameter already documented as 'File path to check', so the schema does the heavy lifting. The description adds nothing about path format (absolute vs relative), resolution rules, or symlink handling, which would have been the valuable extra. Baseline 3 applies.

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 object: check whether a given file path is currently claimed by any session. It is clearly a read-style query about claim state, distinct from the mutation-flavored siblings claim and release. It does not, however, explicitly contrast itself with status, so the differentiation is inferred rather than stated.

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?

The phrase 'before starting work on it' supplies a concrete trigger condition that tells the agent when this tool belongs in a workflow. It stops short of naming alternatives (e.g., what to call to perform the claim) or stating when not to use it, so the guidance is clear but not exhaustive.

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