Skip to main content
Glama

Claim mapping scope

claim_map_scope
DestructiveIdempotent

Advisory claim on a repository subtree so concurrent mappers avoid overlapping work. Claims expire on their own and never block a publish.

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": {
      "projectId": "<projectId>",
      "scopePrefix": "<scopePrefix>",
      "agentId": "<agentId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "claim_map_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesIdentifier of the mapping agent claiming the scope.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
ttlSecondsNoRequested lifetime of the scope claim in seconds.
scopePrefixYesPrefix of the mapping scope to reserve for an agent.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed4 schema fields changed
    • addedInput schema / properties / agentId / description
      Added value: +"Identifier of the mapping agent claiming the scope."
    • addedInput schema / properties / scopePrefix / description
      Added value: +"Prefix of the mapping scope to reserve for an agent."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
    • addedInput schema / properties / ttlSeconds / description
      Added value: +"Requested lifetime of the scope claim in seconds."
  3. Changed3 schema fields changed
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description usefully clarifies that claims are advisory, self-expiring, and never block a publish, which softens the destructive framing with real semantics. However, it does not say what happens when a scope is already claimed (error vs. return existing claim) or whether an explicit release is expected.

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 tight sentences with zero filler, leading with the action and following with the key behavioral caveat. Every clause carries information an agent needs.

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 mutating tool with no output schema, the definition covers intent and expiry but not the return value (claim ID, effective expiry) or conflict behavior on an already-claimed prefix. Annotations and full schema coverage carry the rest, so this is adequate but leaves real gaps for correct invocation.

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% and all six parameters, including ttlSeconds and idempotencyKey, are documented in the schema itself. The description adds no parameter meaning beyond that, 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?

States a specific verb and resource: 'Advisory claim on a repository subtree so concurrent mappers avoid overlapping work.' The purpose and rationale are clear without opening the schema. It does not name the release_map_scope sibling, so an agent must infer the pairing from the name alone.

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?

The description implies the when: claim before mapping a subtree so concurrent mappers don't overlap. It gives no explicit exclusions or pointer to release_map_scope for giving the claim back, so lifecycle guidance is left to inference from the sibling name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources