Skip to main content
Glama
This connector has been deprecated in the official MCP Registry

Replaced by ronda.

Moved to com.useronda/ronda

Run package.json script

run_script
Destructive

Run one named script from package.json (e.g. build, lint, typecheck, test) with the repo's package manager (pnpm, yarn or npm, from the lockfile) and return exit code, stdout and stderr (last 64 KB each). This executes the project's own code: the script is whatever package.json defines at that moment, including any change made with apply_patch or write_file. Only existing scripts run; an unknown name lists the available ones. Optional args are passed as plain argv, never through a shell. Scripts can modify sandbox files and reach the internet; changes are not committed automatically. Hard timeout (default 120s, max 600s). Not idempotent.

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": {
      "sessionId": "<sessionId>",
      "script": "<script>"
    },
    "name": "run_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoDirectory containing the package.json, relative to the repository root (default: root).
argsNoExtra arguments passed to the script as separate argv entries (never through a shell). Max 10, 200 chars each.
scriptYesName of a script in package.json "scripts" (e.g. "build", "lint", "test", "typecheck").
contextNoA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
sessionIdYesThe ronda session id, from open_session or list_sessions.
timeoutSecondsNoHard timeout (default 120, max 600). The script is killed when it expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the script executes whatever package.json currently defines (including edits from apply_patch/write_file), that it can modify sandbox files and reach the internet, that changes are not committed, that args bypass the shell, and that a hard timeout (default 120s, max 600s) applies. These are concrete operational risks an agent needs, and they reinforce rather than contradict destructiveHint/openWorldHint.

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?

Densely packed but front-loaded, leading with the core action and refining with behavioral caveats. Nearly every clause earns its place, though the closing "Not idempotent." merely restates the idempotentHint annotation.

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?

For a destructive, open-world execution tool with no output schema, the description covers return values (exit code, stdout, stderr, last 64 KB each), timeout bounds, shell-avoidance for args, and side effects. Nothing essential for correct invocation is missing despite the seven parameters.

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%, so the schema already documents script, args, cwd, timeoutSeconds, and the analytics fields. The description adds minor reinforcing detail on argv handling and timeout defaults but does not enrich cwd or the contextual parameters beyond what the schema states; baseline 3 is appropriate.

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?

States a specific verb and resource ("Run one named script from package.json") and adds the package-manager resolution logic, plus concrete examples (build, lint, test, typecheck). This is clearly distinguishable from siblings like apply_patch, write_file, or install_package.

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?

Gives clear usage context (running existing project scripts in the repo) and edge-case behavior: an unknown script name lists the available ones, which effectively tells the agent what to do if it guesses wrong. It stops short of naming alternatives or explicitly stating when not to use it versus install_package or restart_dev_server.

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