Skip to main content
Glama

smart_process

Detects minified code, beautifies it for editing, applies changes, then re-minifies. Edit minified JavaScript and CSS without losing formatting.

Instructions

Smart workflow: auto-detect if minified, beautify if needed, process, and optionally re-minify. Perfect for editing minified files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCode to process
actionNoAction to perform: 'read' returns beautified code, 'edit' applies modifications, 'write' returns minified resultread
file_typeYesType of code (js or css)
indent_sizeNoNumber of spaces for indentation when beautifying
modificationsNoJSON string describing modifications to apply (for 'edit' action). Format: [{"find": "text", "replace": "new_text"}]

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?

The description discloses the conditional behavior (auto-detect, beautify if needed, optional re-minify), which is useful given no annotations. However, 'process' is opaque, and it does not clarify side effects or what each action returns beyond what the schema already states.

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

Conciseness4/5

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

The description is short and front-loaded, conveying the core workflow in a single sentence. The phrase 'Smart workflow' is somewhat generic but does not add meaningful bloat.

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

Completeness3/5

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

With no annotations and no output schema, the description provides only a high-level workflow. It leaves 'process' ambiguous and does not explain how the actions (read/edit/write) map to the detect-beautify-reminify flow, though the schema does document each parameter.

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%, so the parameter definitions already carry the semantic weight. The description adds no new meaning about parameters such as action, modifications, or indent_size.

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

Purpose4/5

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

The description clearly states the workflow: auto-detect minification, beautify if needed, process, and optionally re-minify. This distinguishes it from the sibling beautify/minify/is_minified tools, though the word 'process' remains somewhat vague.

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

Usage Guidelines4/5

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

'Perfect for editing minified files' gives clear usage context, but it does not explicitly name sibling alternatives or state when not to use this combined tool versus calling beautify_js/minify_js/is_minified directly.

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