Skip to main content
Glama
Apache AIops

Apache AIops

apache_config_check

Read-only

Validates Apache configuration syntax before reloads to catch errors early; returns structured results or a sanitized operation error.

Instructions

[READ] Run Apache's native config syntax test.

Use before a reload to check syntax; use apache_diagnose for correlated service and HTTP probe results.

Result: structured data or an explicit, sanitized operation error.

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": "apache_config_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoConfigured target name; omit to use the default connection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / target / description
      Added value: +"Configured target name; omit to use the default connection."
  2. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is known. The description adds genuinely new behavioral context: results come back as structured data or as an 'explicit, sanitized operation error', telling the agent how failures surface and that error output is sanitized. It does not detail timeout or size limits, keeping it just short of a 5.

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?

Three short lines: capability first, usage and alternative second, result contract third. Every sentence earns its place with no redundancy or filler.

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 single-optional-parameter read tool with no output schema, the definition covers what it does, when to use it, the alternative, and the shape of the return (structured data or sanitized error). Only minor gaps remain, such as what 'structured data' actually contains.

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%, and the single optional 'target' parameter is already documented as 'omit to use the default connection'. The description adds no additional meaning about the target parameter, so the baseline of 3 applies since the schema carries the burden.

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 names a specific verb+resource: 'Run Apache's native config syntax test', reinforced by the [READ] tag. It differentiates itself from apache_diagnose by framing that sibling as the correlated service/HTTP probe option, though it does not disambiguate from other config-oriented siblings such as apache_config_includes or apache_static_directives.

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?

It gives a concrete usage context ('Use before a reload to check syntax') and routes the agent to apache_diagnose when correlated service and HTTP probe results are wanted. There is no explicit statement of when not to use it, but the reload pre-check framing is clear enough to select it correctly.

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