Skip to main content
Glama

capability_lock

Write .caprouter/caprouter.lock.json for the current registry, optionally rehashing live skill and plugin directories to verify installed capabilities.

Instructions

Write .caprouter/caprouter.lock.json for the current registry, optionally rehashing live skill/plugin directories.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "capability_lock"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNo
liveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description still discloses the concrete side effect (a file write at a specific path) and the optional filesystem-walking rehash of live directories, which signals potential I/O cost. It does not say whether an existing lock file is overwritten, whether the rehash mutates anything, or what permission or failure conditions apply.

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?

A single sentence, front-loaded with the primary effect and artifact, and the optional mode appended. No filler words or redundant restatement of the tool name.

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 two-parameter tool with no output schema and no annotations, the description covers the core write behavior but omits the return value, overwrite semantics, and the meaning of `out`. Adequate but leaves real gaps for an agent to guess at.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with two parameters. The phrase 'optionally rehashing live ... directories' effectively maps to the `live` boolean, but the `out` parameter is never explained beyond implying a default path, so a third of the semantic burden is unaddressed.

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 precise verb and artifact: writes .caprouter/caprouter.lock.json for the current registry, with an optional rehash of live skill/plugin directories. That is enough for an agent to tell it apart from read-only siblings like capability_list or capability_health, though it never names which sibling action should precede it.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no prerequisites such as run this after install/uninstall or after registry edits. Usage is only implied by 'for the current registry', leaving the agent to infer the trigger condition.

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