Skip to main content
Glama

Validate CPCL

cpcl_validate
Read-onlyIdempotent

Lint CPCL label code and return positioned findings with severity as JSON. Checks the command set Labelixa implements from the CPCL manual — a clean result is not a guarantee that a specific printer accepts the job. Run this before cpcl_preview; if you are not sure which language the code is, call language_detect first.

Input Schema

NameRequiredDescriptionDefault
cpclYesRaw CPCL code

Output Schema

NameRequiredDescriptionDefault
summaryYes
diagnosticsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / properties / diagnostics / items / properties / mesaj
      Removed value: -{
      -  "description": "Human-readable message in the requested language",
      -  "type": "string"
      -}
    • addedOutput schema / properties / diagnostics / items / properties / message
      Added value: +{
      +  "description": "Human-readable message in the requested language",
      +  "type": "string"
      +}
    • removedOutput schema / properties / ozet
      Removed value: -{
      -  "properties": {
      -    "error": {
      -      "type": "integer"
      -    },
      -    "info": {
      -      "type": "integer"
      -    },
      -    "toplam": {
      -      "type": "integer"
      -    },
      -    "warning": {
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "toplam",
      -    "error",
      -    "warning",
      -    "info"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "properties": {
      +    "error": {
      +      "type": "integer"
      +    },
      +    "info": {
      +      "type": "integer"
      +    },
      +    "total": {
      +      "type": "integer"
      +    },
      +    "warning": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "error",
      +    "warning",
      +    "info"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "diagnostics",
      -  "ozet"
      -]New value: +[
      +  "diagnostics",
      +  "summary"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "diagnostics": {
      +      "items": {
      +        "properties": {
      +          "code": {
      +            "description": "Stable diagnostic code, e.g. ZPL0002",
      +            "type": "string"
      +          },
      +          "col": {
      +            "type": "integer"
      +          },
      +          "end_col": {
      +            "type": "integer"
      +          },
      +          "end_line": {
      +            "type": "integer"
      +          },
      +          "line": {
      +            "type": "integer"
      +          },
      +          "mesaj": {
      +            "description": "Human-readable message in the requested language",
      +            "type": "string"
      +          },
      +          "message_key": {
      +            "description": "i18n key for the message",
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "error",
      +              "warning",
      +              "info"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "line",
      +          "col"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ozet": {
      +      "properties": {
      +        "error": {
      +          "type": "integer"
      +        },
      +        "info": {
      +          "type": "integer"
      +        },
      +        "toplam": {
      +          "type": "integer"
      +        },
      +        "warning": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "toplam",
      +        "error",
      +        "warning",
      +        "info"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "diagnostics",
      +    "ozet"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint, so the safety profile is covered. The description adds genuine behavioral context the annotations lack: it validates only the subset of commands Labelixa implements, and a clean result does not guarantee a specific printer accepts the job. It also notes findings carry position and severity, though the output schema already carries return shape.

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?

Three sentences, front-loaded with the core action, then the limitation, then the workflow ordering. Every sentence earns its place and none repeats structured data.

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?

For a single-parameter lint tool with a full annotations block and an output schema, the description supplies everything else an agent needs: what is checked, the limits of a clean result, and the prerequisite tool. Nothing material is missing.

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?

Only one parameter ('cpcl': 'Raw CPCL code') with 100% schema coverage, so the schema already documents the input fully. The description adds no format, encoding, or size guidance beyond what the schema provides, making a baseline 3 appropriate.

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+resource ('Lint CPCL label code') and immediately scopes it to the command set Labelixa implements. An agent can distinguish it from the sibling epl_validate/tspl_validate/zpl_validate family without opening any schema.

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 sequencing advice: 'Run this before cpcl_preview' and 'if you are not sure which language the code is, call language_detect first.' Both the when-to-use and the fallback alternative are named, leaving nothing to inference.

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.