Skip to main content
Glama

validate_script

Run basic checks on a script definition to catch invalid structure before saving or executing it.

Instructions

Validate a script definition (basic checks)

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": "validate_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
defYesScript definition

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and largely drops it. It does not say whether validation is read-only, whether the definition is normalized or stored, how failures are surfaced, or what 'basic checks' actually covers versus deeper linting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no wasted words, which is structurally good. The brevity, though, comes at the cost of substance, and the '(basic checks)' parenthetical introduces ambiguity rather than information.

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 taking a nested script-definition object with no annotations and no output schema, the description is too thin. An agent cannot infer what makes a definition valid, what the response contains, or how to recover from a failed validation.

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% for the single parameter, so the baseline of 3 applies. However, 'def' is a nested object described only as 'Script definition', and the description adds no insight into its expected shape, required subfields, or whether partial definitions are accepted.

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

Purpose3/5

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

The verb+resource pair 'validate a script definition' is clear, but the parenthetical '(basic checks)' leaves the actual scope unspecified. With siblings named lint_script, test_script, and preview_script nearby, the description gives no way to tell which kind of check this tool performs.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of when to prefer validate_script over lint_script or test_script. The agent must guess at the workflow position of this tool.

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