Skip to main content
Glama

self_update

Updates the running installation by pulling from its Git clone, rerunning setup to refresh skills and MCP registration, and reporting when a restart or manual update is needed.

Instructions

この道具自身を更新する。サーバーが動いている git clone で git pull --ff-only を実行し、引いた版の src/setup.mjs を新しいプロセスで実行してスキルのコピーと MCP 登録を入れ直す(手で git pull と node src/setup.mjs を実行するのと同じ)。動作中の会話は古い版のままなので、updated か restartRequired が true なら「版の知らせ」の reloadNeeded と同じように起動し直しを頼む。clone から動いていないとき(Claude Code のプラグイン)は ok:false を返すので、その環境の更新手順を案内する。

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": "self_update"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations supply only readOnlyHint=false, so the description carries the burden and does so thoroughly: it discloses that a real git pull runs against the live clone, that a new process executes the pulled setup script, that skill copies and MCP registration are redone, and that the currently running conversation stays on the old version. It also names concrete return signals (updated, restartRequired, ok:false) and the environment where the operation cannot work, which is exactly the behavioral context an agent needs before invoking a mutating self-modification.

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 purpose is front-loaded in the first clause, and the parenthetical equivalence to manually running git pull and node src/setup.mjs is genuinely useful for understanding the blast radius. It is a single dense Japanese paragraph with nested clauses, so readability could be improved with sentence breaks, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must explain return values, and it does: it names updated, restartRequired, and ok:false and tells the agent what to do for each. For a self-modifying operation whose effects only appear after a restart, this covers the failure mode, the follow-up action, and the version-staleness caveat.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline is 4. The reference to "src/setup.mjs <agent>" describes the internal script invocation rather than a tool argument, which is slightly ambiguous but does not mislead an agent into passing parameters.

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 opens with a specific verb and resource ("この道具自身を更新する") and immediately names the exact mechanism: git pull --ff-only on the server's clone plus re-running src/setup.mjs. No sibling tool (update_session, startup, stop_server) performs self-update, and the description makes that scope unmistakable.

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 states the operating precondition implicitly via the failure case: when the server is not running from a clone (Claude Code plugin), the tool returns ok:false and the agent should instead guide the user through that environment's update procedure. It also gives explicit post-call routing: if updated or restartRequired is true, ask for a restart like reloadNeeded in the version notice. What is missing is an explicit trigger statement of when to reach for this tool versus simply telling the user to update manually.

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