Skip to main content
Glama

Claim Goal

claim_goal

Claim a Goal for the current Session so only it can work on that Goal; fails if another running Session already holds it.

Instructions

Claim a Goal for this Session, so only this Session works on it. The Session keeps any other Goals it holds; while it holds several, pass goal to the tools that change one. Fails if another running Session holds it. Claiming a done Goal reopens it: its finished Tasks stay done, and add_tasks adds the new work to the same list.

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": {
      "goal": "<goal>"
    },
    "name": "claim_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesThe Goal ID, such as 'ship-oauth-login'.
takeoverNoTake the Goal from another running Session. Only when the Developer asks for it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.2.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and discloses exclusivity, conflict failure, preservation of other held Goals, reopening of a done Goal, and that finished Tasks remain done while add_tasks appends new work. It leaves takeover behavior to the schema and does not discuss permissions or return values, but the core mutation and side effects are well covered.

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?

The description front-loads the action and then adds behavioral constraints. It is dense but each sentence contributes useful information, though the second sentence is somewhat convoluted.

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 two-parameter mutation tool with no annotations or output schema, the description is largely complete. It covers conflict failure, multi-Goal usage, and done-Goal reopening; takeover is covered by the schema, and return values need not be described without an output schema.

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% and both goal and takeover are documented in the schema. The description adds only modest meaning: it clarifies that goal identifies the target when the Session holds several Goals and explains the effect of claiming a done Goal, while takeover semantics remain in the schema.

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?

The description states a specific verb and resource: claiming a Goal for this Session, with the explicit scope of exclusive work. It distinguishes the action from merely adding or releasing a goal by stating that only this Session will work on it.

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?

It gives clear context for use (exclusive work on a Goal) and a precondition (fails if another running Session holds it), plus guidance to pass goal when multiple Goals are held. It does not explicitly contrast with alternatives such as release_goal or drop_goal, so it falls short of full when/when-not guidance.

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