Skip to main content
Glama

update_runtimes

Check for and apply updates to language runtimes (mise, rustup, swiftly, npm, uv, apt) with a safe dry-run by default; use apply=True to execute, with sudo-gated commands skipped unless allowed.

Instructions

Update language runtimes. SAFE BY DEFAULT: with apply=False this is a dry run — it returns the update commands that WOULD run without changing anything. Pass apply=True to actually execute them (mise up, rustup update, swiftly update, apt-get upgrade of language packages, npm -g update, uv tool upgrade). languages = comma-separated subset; empty = all.

PRIVILEGE: the apt manager updates system packages and its command begins with sudo. Those commands do NOT run unless the HOST has set CODECALC_ALLOW_RUNTIME_APPLY=1; without it they are reported as skipped with ok: false and the variable named, and the rest still run. Every entry carries an elevated flag either way. mise/rustup/swiftly/npm/uv touch user-owned toolchains and are never gated.

NETWORK: yes, on both paths. apply=False still asks each manager what the latest version is, which is a remote lookup; apply=True additionally downloads and installs. "Dry run" bounds what changes on disk, not what is sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNo
timeoutNo
languagesNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed6 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / apply / title
      Added value: +"Apply"
    • addedInput schema / properties / languages / title
      Added value: +"Languages"
    • addedInput schema / properties / timeout / title
      Added value: +"Timeout"
    • addedInput schema / title
      Added value: +"update_runtimesArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Although there are no annotations, the description details crucial behavioral aspects: the dry-run semantics that minimize changes on disk, the network usage on both dry-run and apply paths, the sudo/gating behavior for apt, and the `elevated` flag per entry. This far exceeds typical disclosure and provides agent-critical safety information.

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 is well-structured with clear sections separated by blank lines, starting with a bold SAFE BY DEFAULT callout, then the privileges and network details. It is slightly verbose with repeated parenthetical lists and explanations, but each sentence adds necessary context; could be tightened without losing value.

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?

Given the tool's complexity (multiple package managers, privileged operations, conditional gating) and the absence of annotations, the description covers all critical aspects: the dry-run safety, the exact commands, the gating mechanism, the network implications, and the per-entry flags. With no output schema, it also explains what entries report (ok: false, elevated flag) but could further specify the success outcome structure, yet this is sufficient.

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 input schema has three parameters with defaults but no descriptions; the tool description compensates by explaining `apply` (dry run vs. apply) and `languages` (comma-separated subset, empty = all). However, `timeout` is not discussed beyond its existence, though its default (600s) and type (integer) are implicitly clear, so the compensation is strong but not complete.

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 clearly states the tool updates language runtimes, enumerates the specific commands that would be executed, and clarifies the dry-run versus apply behavior. It distinguishes itself from sibling tools like runtimes_status or list_languages by focusing on updates, and from other tools via the unique verb 'update'.

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 provides explicit guidance on when to pass apply=False as a safe dry run and when to pass apply=True to actually execute changes, including the privileged apt-get path with its gating requirement. It also explains the `languages` parameter for subsetting, though it doesn't mention alternatives among siblings, but the distinctions are clear enough given the tool's purpose.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/The-40-Thieves/codecalc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server