Skip to main content
Glama

repair_arenascript

Read-onlyIdempotent

Repairs a pseudo-ArenaScript while keeping its own conditions: mechanical fixes (header, sections written inline, ATR syntax), removal of the sections the engine refuses, then line-by-line removal of what the preflight of the Lab's Rust engine refuses (each removal is listed). valid comes from the engine alone. If no executable entry condition is left, the tool says so (ok=false) instead of inventing a strategy.

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

Input Schema

NameRequiredDescriptionDefault
arenascriptYesArenaScript script (20,000 characters max).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / arenascript / description
      Previous value: -"Script ArenaScript (20 000 caractères max)."New value: +"ArenaScript script (20,000 characters max)."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, so the safety profile is covered; the description adds real behavioral detail on top: a three-stage pipeline (mechanical fixes, section removal, line-by-line preflight removal), that each removal is reported, and that validity is judged by the engine alone. The explicit ok=false behavior when no entry condition survives is a genuinely useful disclosure. It does not contradict destructiveHint=false, since removals happen inside the returned script rather than to stored data.

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?

Front-loaded with the action and the specific fix categories, then the fallback behavior. Dense but largely earning its space; the phrase 'preflight of the Lab's Rust engine' is jargon that could be tightened, and the clause structure is run-on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be spelled out, yet the description still flags the two key result signals (valid from the engine, ok=false). For a single-parameter repair tool this covers the essentials; the main omission is how it relates to the sibling validate tool and what happens when the input already passes.

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?

There is a single parameter at 100% schema description coverage with a stated 20,000-character limit, so the schema already carries the semantics. The description adds no further constraint or format guidance about the input script beyond calling it 'pseudo-ArenaScript'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (repair) and resource (pseudo-ArenaScript), and enumerates the concrete classes of fix: header, inline sections, ATR syntax, engine-rejected sections. It doesn't explicitly contrast itself with validate_arenascript or generate_arenascript_strategy, so the repair-vs-validate boundary is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage is implied: you bring a pseudo-script that the engine rejects and get a repaired version back. There is no explicit 'use this instead of validate_arenascript' routing and no stated precondition (e.g., 'run after generate_arenascript_strategy produces a draft'). The ok=false fallback hints at the failure branch but not when to prefer this tool.

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