Skip to main content
Glama

synapse_claim_task

Claim a task and lock file patterns to prevent collisions with other agents; overlapping globs, directories, and files are rejected before work starts.

Instructions

Claim a task and lock file patterns to prevent collisions with other agents (Claude, Codex, Antigravity). Globs, directories and files are compared by overlap, so 'src/auth/**' blocks 'src/auth/login.ts'.

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_name": "<agent_name>",
      "title": "<title>"
    },
    "name": "synapse_claim_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesClear, concise summary of the task to be done
agent_nameYesYour agent name, e.g. 'antigravity', 'claude-code', 'codex'. Use a distinct name per concurrent session.
descriptionNoDetailed scope, intent, and acceptance criteria
lock_patternsNoFiles, directories or globs you will edit (e.g. ['src/auth/**', 'package.json']). Overlapping patterns held by other agents are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world mutation, so the safety profile is covered. The description adds genuine value by explaining the overlap-comparison rule and giving a worked example ('src/auth/**' blocks 'src/auth/login.ts'), which is behavior beyond the schema. It does not say what happens on rejection, whether claims expire, or how to release them, leaving meaningful behavioral gaps.

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?

Two tightly written sentences: the core action and purpose come first, then the mechanism with a concrete example. No filler, no restatement of the title, and the example earns its place by disambiguating glob-overlap behavior.

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?

With a fully described schema and annotations covering the safety profile, and no output schema to explain, the description covers what an agent needs to call it correctly. The main omission is the post-call picture: what a successful claim returns and how long the lock persists, which matters for a coordination primitive.

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 all four parameters (title, agent_name, description, lock_patterns) are already documented, including the rejection semantics for overlapping patterns. The description adds nothing new about parameter formats or edge cases (e.g., empty lock_patterns, duplicate agent names), so the 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 opens with a specific verb+resource ('Claim a task') and names the secondary effect (locking file patterns), plus the concrete benefit (prevent collisions with named agents). That is enough to distinguish it from siblings like synapse_release_task or synapse_get_tasks, though it never explicitly contrasts with them.

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 rather than stated: an agent can infer it should call this before editing files, but there is no explicit 'use this when...' or 'do not use when...' guidance. The lifecycle counterparts (synapse_release_task, synapse_handoff_task) are never mentioned, so the agent must infer when the claim should be released or handed off.

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