Skip to main content
Glama

test_script

Validates script definitions with a syntax-only check to catch errors before execution.

Instructions

Test a script (syntax check only)

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

Input Schema

NameRequiredDescriptionDefault
defYesScript definition

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. "Syntax check only" is a genuine behavioral disclosure — it tells the agent the script is not executed and no side effects occur — but it says nothing about what a failure looks like, whether errors are returned or thrown, or how results are shaped (no output schema exists).

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?

A single front-loaded phrase with the scope constraint in parentheses and zero filler. It is as terse as a description can be, though the brevity edges toward under-specification rather than efficiency.

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

Completeness2/5

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

For a tool with no annotations, no output schema, a nested untyped object parameter, and three highly overlapping siblings, seven words are not enough. An agent cannot determine the result format or reliably choose this over lint_script or validate_script from this definition alone.

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%, so the single parameter is documented at baseline. The description adds no meaning beyond "def: Script definition" — notably it does not explain the nested object's expected fields, so the agent learns nothing extra about what constitutes a valid script definition.

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?

"Test a script (syntax check only)" gives a specific verb plus resource and adds a scope qualifier that differentiates it from execution-style siblings like preview_script. It stops short of naming the near-identical siblings (lint_script, validate_script), so the boundary is implied 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?

The parenthetical implies this is the cheap, non-executing check, which is a usable usage signal. However, it never says when to prefer it over lint_script, validate_script or preview_script, and offers no preconditions for the required script definition.

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