Skip to main content
Glama

is_minified

Detect if JavaScript or CSS code is minified by analyzing line length and structure, enabling automated handling in beautification workflows.

Instructions

Check if code appears to be minified based on line length and structure

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCode to check
file_typeYesType of code (js or css)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral transparency burden. It does disclose that the check is heuristic ('appears to be minified') and based on 'line length and structure,' which is useful context. However, it does not state the return format, threshold behavior, edge cases, or explicitly confirm that the tool does not modify the code.

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?

The description is a single, front-loaded sentence with no filler. It communicates the core purpose first and then adds the heuristic detail. Every word contributes meaning.

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

Completeness4/5

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

For a simple two-parameter check tool with no output schema, the description is nearly complete: it identifies the input, the heuristic approach, and the boolean-like purpose implied by the tool name. The main missing piece is an explicit statement of the return value, but the name and verb make the boolean outcome reasonably inferable.

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?

The input schema already fully documents both parameters (code and file_type) with 100% coverage. The description adds some context about what aspects of the code are examined, but it does not provide additional per-parameter meaning beyond the schema, so the baseline score of 3 is 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?

The description uses a specific verb ('Check if') and resource ('code') to state exactly what the tool does: detect minification. It also names the heuristic basis ('line length and structure'), which clearly distinguishes it from the sibling beautify/minify transformation tools.

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?

The description gives no explicit guidance about when to use this tool versus alternatives such as beautify_js, minify_js, or smart_process. It implies a checking/detection use case, but it does not state conditions, prerequisites, or which sibling tools to prefer in other situations.

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