Skip to main content
Glama
ZERONOVA LAB MCP Server

ZERONOVA LAB MCP Server

generate_htaccess

Generate a valid Apache .htaccess file with redirect rules (301/302/307/308), cache control, gzip compression, HTTPS forcing, and trailing slash handling for your web server.

Instructions

Generate a valid Apache .htaccess file with redirect rules, cache control, and gzip compression settings. Redirect rules support 301/302/307/308 status codes with RewriteRule syntax. Includes injection prevention for RewriteRule patterns. Example input: { "redirectRules": [{ "from": "/old-page", "to": "/new-page", "statusCode": 301 }], "compressionEnabled": true, "forceHttps": true }

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_htaccess"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceHttpsNoAdd HTTP to HTTPS redirect rule (default: false)
cacheControlNoCache-Control rules per file extension
redirectRulesNoRedirect rules (max 100). Each rule maps a source path to a destination.
compressionEnabledNoEnable gzip compression for text/HTML/CSS/JS/JSON/XML/SVG (default: false)
removeTrailingSlashNoAdd trailing slash removal rule (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the supported redirect status codes and — valuably — that patterns are sanitized for injection prevention, but it never states whether the tool returns the file content as a string, writes a file to disk, or merely validates, nor what happens on invalid input. For a generator that presumably produces output, that missing return/effect disclosure is a real gap.

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?

Three front-loaded sentences: purpose first, then capability detail, then an example. The example is long but earns its place by illustrating the nested redirectRules structure; no filler sentences.

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?

The input side is well covered between the description and a fully documented schema, but with no annotations and no output schema, nothing tells the agent what the tool returns or whether generation has side effects. That missing output/effect statement is the one significant hole for a tool of this complexity.

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 all five parameters (forceHttps, cacheControl, redirectRules, compressionEnabled, removeTrailingSlash) are already documented in the schema. The description adds a concrete worked example and restates status code support, which helps with the nested redirectRules shape but is largely redundant with what the schema already provides.

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 opens with a specific verb and resource — 'Generate a valid Apache .htaccess file' — and enumerates the three content categories it can produce (redirect rules, cache control, gzip). The resource is clearly distinct from the other generate_* siblings (robots.txt, sitemap, meta tags), though the description never explicitly contrasts with them.

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 when-to-use or when-not-to-use guidance, no prerequisites, and no mention of alternatives such as check_redirect_chain or check_cache_headers when the user actually wants verification rather than generation. The sample input shows invocation shape but not selection context.

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