Skip to main content
Glama

update_companion

Previews, downloads, verifies, and stages a signed companion release after user approval, then guides bridge mod installation and restart steps.

Instructions

Update this companion to the latest release, when the user asks for it.

1. Call with no arguments to preview. Pass `tell_user` to the user in
   your own words and ask them. confirm=true is refused until this
   server has returned that preview; the user's say is their answer to
   you and their client's approval of the call.
2. Only on their yes, call again with confirm=true. It downloads this
   computer's release, checks it against the release's signed list of
   files, and sets it up beside this version. Nothing running is
   replaced; the new version starts with the user's next chat.
3. When the reply's `next` says so, show the user `bridge.output` and,
   on their yes, call with confirm=true and install_bridge=true. The
   new mod loads when they fully quit and reopen Dungeondraft.

Always pass `tell_user` on: it says when to restart the chat or
Dungeondraft, and reports an earlier update that did not start
(`previous_attempt`). `state` is current, available, ready, staged,
refused, manual, update_elsewhere, disabled or unavailable. For a Python
package, the .deb, a Claude Code plugin or a Claude Desktop extension,
`tell_user` gives the steps for that install instead, and nothing is
downloaded here. There is no way to choose another source or version.

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

Input Schema

NameRequiredDescriptionDefault
confirmNofalse previews; true downloads and stages, on the user's yes
install_bridgeNowith confirm: also install the new release's Dungeondraft mod

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so richly: it states that confirm=true is refused until a preview has been returned, that the download is checked against the release's signed file list, that nothing running is replaced, and that the new version starts on the user's next chat. It also lists every state value (current, available, ready, staged, refused, manual, update_elsewhere, disabled, unavailable) and explains previous_attempt reporting.

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 numbered three-step structure mirrors the actual call sequence and is front-loaded with the core instruction before the details. It is somewhat long and repeats the confirm=true gating in several places, but the repetition reinforces a genuinely non-obvious multi-call protocol rather than padding.

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?

This is a complex multi-stage tool with no output schema, so the description must explain return values and sequencing on its own, and it does: it names next, bridge.output, state, previous_attempt and tell_user, explains what to show the user at each stage, and states the restart requirements for the chat and Dungeondraft. Nothing an agent needs in order to drive the flow correctly is missing.

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?

Schema coverage is 100%, so the schema already documents confirm and install_bridge, making the baseline 3. The description adds real semantic value beyond that: confirm=true is refused until a preview has been returned, and install_bridge is meaningful only alongside confirm, and only once the reply's next field says to proceed. The only gap is that tell_user is discussed as if it were a field the agent passes, which is not represented in the input schema and could confuse an agent scanning 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-resource-scope statement: 'Update this companion to the latest release, when the user asks for it.' This clearly distinguishes it from the drawing/editing siblings like add_floor or generate_dungeon, which do not touch the companion runtime. An agent can tell immediately what this tool affects and under what condition.

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

Usage Guidelines5/5

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

The description gives an explicit when-to-use ('when the user asks for it'), a strict gating sequence (preview first, confirm only after the user's yes), and an exclusion: for Python packages, .deb, Claude Code plugins or Claude Desktop extensions, tell_user gives steps and nothing is downloaded here. This is about as explicit as when/when-not/alternatives guidance gets.

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

Deploy Server

Other Tools