Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Save script

write_script
DestructiveIdempotent

Save Python source as a named script for later execution, replacing any existing script with the same name. Use it to create or update scripts run via run_script.

Instructions

Save Python source as a named script, replacing one of that name. Use when: creating or changing a script for run_script. Instead: write_file for files under the MCP root. Requires: --mcp-allow-scripts (stdio only); not in paranoid mode. Behavior: destructive for a script of that name. Atomic, mode 0600, in the script folder. Over 1 MiB of UTF-8 fails. Runs nothing. Time limit: 15 s. Returns: {name, path, size (bytes)}.

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>",
      "source": "<source>"
    },
    "name": "write_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe script's name: letters, digits, '_' and '-', at most 80 characters, without '.py', e.g. 'disk_report'.
sourceYesThe complete Python source; it runs with the module axross already imported.

Output Schema

NameRequiredDescriptionDefault
nameYes
pathYes
sizeYes

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?

Goes well beyond the annotations: discloses the required --mcp-allow-scripts flag, stdio-only and paranoid-mode exclusion, atomic write with mode 0600 into the script folder, the 1 MiB UTF-8 limit, a 15 s time limit, and that nothing is executed. These are operational gates an agent could not otherwise know.

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 clauses (Use when / Instead / Requires / Behavior / Returns) keep it scannable while every line carries distinct information. No filler sentences despite the density.

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?

Covers prerequisites, destructive scope, size and time limits, atomicity and permissions, and confirms no execution occurs. With annotations and a 100%-covered schema, nothing material is left for an agent to guess before calling.

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 already documents the name pattern, max length, the no-'.py' rule, and the axross module prelude, so the schema does the heavy lifting. The description adds only marginal framing ("Python source", "named script") beyond it, matching the baseline 3.

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 ("Save Python source as a named script") and adds the critical replacement semantics ("replacing one of that name"), which an agent cannot infer from the name alone. It is clearly distinguishable from write_file and run_script.

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: creating or changing a script for run_script" and an explicit alternative rule ("Instead: write_file for files under the MCP root"). Both the positive trigger and the routing-away condition are stated.

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