Skip to main content
Glama

security_barcode_code128

Read-onlyIdempotent

Code 128 barcode

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": {
      "text": "<text>"
    },
    "name": "security_barcode_code128"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPrintable ASCII text to encode, for example ABC-12345.
formatNoFormat: one of json, svg.
heightNoBar height in pixels, 10 to 400, for example 80.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / format / description
      Added value: +"Format: one of json, svg."
    • addedInput schema / properties / height / description
      Added value: +"Bar height in pixels, 10 to 400, for example 80."
    • addedInput schema / properties / text / description
      Added value: +"Printable ASCII text to encode, for example ABC-12345."
  2. Changed6 schema fields changed
    • addedInput schema / properties / format
      Added value: +{
      +  "enum": [
      +    "json",
      +    "svg"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / height / maximum
      Added value: +400
    • addedInput schema / properties / height / minimum
      Added value: +10
    • addedInput schema / properties / text / maxLength
      Added value: +80
    • addedInput schema / properties / text / minLength
      Added value: +1
    • addedInput schema / properties / text / pattern
      Added value: +"^[\\x20-\\x7E]+$"
  3. First observed

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is known. The description adds no behavioral context at all: it does not say what is produced (JSON payload vs SVG string), whether output is an image or markup, or any constraints beyond the barcode symbology.

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

Conciseness2/5

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

It is short but under-specified rather than concise: a fragment with no verb and no front-loaded purpose statement. Nothing is wasted, but the single phrase does not earn its place as a usable definition.

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 simple generation tool with rich annotations and a fully described schema, the remaining burden is to state what the tool produces and in which form. The description is silent on return values, and there is no output schema to compensate.

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%, with the text pattern, format enum, and height range all documented inline. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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

Purpose2/5

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

The description is a three-word noun phrase, 'Code 128 barcode', that restates the tool name rather than stating a verb and resource. It does not say the tool generates/encodes a barcode, nor does it distinguish this from the sibling security_qr.

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 guidance on when to use this versus security_qr or converters_social_security. The only implied usage comes from the tool name and the Code 128 reference, not from any explicit condition or exclusion.

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