Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Read script

read_script
Read-onlyIdempotent

Read the Python source of a saved script to inspect its code before running or updating it.

Instructions

Read the Python source of one saved script. Use when: checking a script before run_script or write_script. Instead: list_scripts for names; read_file for files under the MCP root. Requires: --mcp-allow-scripts (stdio only); not in paranoid mode. Behavior: read-only. A missing script, a bad name or a symlinked file fails. Time limit: 15 s. Returns: {name, source}.

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": {
      "name": "<name>"
    },
    "name": "read_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe script's name, from list_scripts: letters, digits, '_' and '-', at most 80 characters, without '.py', e.g. 'disk_report'.

Output Schema

NameRequiredDescriptionDefault
nameYes
sourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the enabling flag (--mcp-allow-scripts, stdio only), that it is unavailable in paranoid mode, the specific failure modes (missing script, bad name, symlinked file), and a 15-second time limit. These are operational constraints the annotations cannot express.

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?

Labeled lines (Use when / Instead / Requires / Behavior / Returns) front-load the purpose and make each constraint scannable. Every sentence carries a distinct constraint or routing cue; nothing repeats the name or title.

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 single-parameter read tool, the description covers purpose, alternatives, gating prerequisites, failure conditions, timeout, and return shape. An output schema exists, so the brief Returns note is a bonus rather than a dependency.

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 coverage is 100% and the name parameter already documents the pattern, length cap, no '.py' suffix, and an example. The description only adds that a bad name fails, which is marginal. Baseline 3 applies when the schema carries the parameter detail.

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 opening sentence names a specific verb and resource: 'Read the Python source of one saved script.' The scope word 'one saved script' and 'Python source' together distinguish it from run_script, write_script, and read_file without needing the schema.

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?

Explicit 'Use when' clause ties it to pre-flight inspection before run_script or write_script, and the 'Instead' line routes the agent to list_scripts for name discovery and read_file for general files under the MCP root. Both positive and negative routing are present.

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