tspl_validate
Lint TSPL/TSPL2 label code; returns positioned findings with severity as JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tspl | Yes | Raw TSPL/TSPL2 code |
Lint TSPL/TSPL2 label code; returns positioned findings with severity as JSON.
| Name | Required | Description | Default |
|---|---|---|---|
| tspl | Yes | Raw TSPL/TSPL2 code |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral burden. It does disclose a useful behavior: the tool returns positioned findings with severity as JSON. However, it does not explicitly state that this is read-only analysis or describe behavior when the code passes validation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single sentence packs purpose and output into a readable, front-loaded format with no filler. Every clause earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter lint tool with no nested schema or annotations, the description covers what to pass and what to expect in return. It could be more explicit about output shape when no issues are found, but the core context is present.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already documents the single parameter at 100% coverage. The description's phrase 'label code' adds little beyond the schema's 'Raw TSPL/TSPL2 code,' so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific operation ('Lint'), a specific resource ('TSPL/TSPL2 label code'), and states the output ('positioned findings with severity as JSON'). This distinguishes it from sibling validators/preview tools by both language and action.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance or exclusions are given. It does not mention alternatives such as tspl_preview or other language validators, so an agent must infer selection solely from the tool name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.
Tools are largely organized by language and action, with clear pairs like cpcl_preview/cpcl_validate and zpl_preview/zpl_validate. The ZPL analysis tools (validate, explain, compatibility, command_help) have distinct purposes, though zpl_validate and explain_zpl overlap enough to cause occasional misselection.
Most tools follow a readable {domain}_{action} pattern such as zpl_preview, bulk_submit, and template_list, but there are several deviations: verb-first names like explain_zpl and convert_zpl_dpi, plus noun phrases like zpl_command_help and barcode_png. The mixed conventions are still understandable.
At 21 tools, this sits in the 16-25 'heavy' range, above the ideal 3-15 scope. The count is defensible given four label languages plus barcode, template, bulk, and conversion workflows, but it still feels dense for an agent to navigate.
The surface covers ZPL generation, validation, preview, compatibility, and conversion, plus validation/preview for CPCL, EPL, and TSPL, along with barcode, template, bulk, and language detection features. Minor gaps exist, such as no bulk job cancellation and no compatibility/health tools for non-ZPL languages, but core workflows have no dead ends.