Skip to main content
Glama

minify_code

Read-onlyIdempotent

Css js minifier — whitespace and comment strip

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": {
      "code": "<code>",
      "type": "<type>"
    },
    "name": "minify_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesA code, for example: 404.
typeYesType: one of css, js.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / code / description
      Added value: +"A code, for example: 404."
    • addedInput schema / properties / type / description
      Added value: +"Type: one of css, js."
  2. First observed

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and a closed world, so the safety profile is covered. The description contributes only the transformation mechanism (whitespace and comment strip) and says nothing about semantic equivalence guarantees, size limits, or how errors in the source are handled.

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

Conciseness3/5

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

It is extremely short and front-loaded, with no filler, but the brevity is under-specification rather than efficiency — an em-dash fragment is not enough structure to convey what the tool guarantees.

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?

The tool is simple (two required parameters, no output schema, rich annotations), so a short description is defensible, but it still never says that minified code is returned, nor what happens to invalid or non-CSS/JS input. For a transformation tool that silently rewrites the user's source, that is a real gap.

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 both `code` and the `type` enum are already documented by the schema. The description's mention of "css js" loosely echoes the enum but adds no format, encoding, or validation meaning beyond what the schema supplies; baseline 3 applies.

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

Purpose3/5

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

"Css js minifier — whitespace and comment strip" conveys the resource (CSS/JS) and the mechanism (whitespace/comment removal), so the gist of the operation is recoverable. However it is a noun-phrase fragment with no verb, and it does not differentiate this from any other code-processing capability an agent might reach for.

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?

No when-to-use, when-not-to-use, or alternative is stated. The agent must infer on its own that this is for reducing source size rather than formatting or validating code, and nothing warns about cases where comment stripping would be unacceptable.

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