Skip to main content
Glama

security_haproxy_check

Read-only

HAProxy config security audit — Offline security audit of a haproxy.cfg: runtime API (stats socket) exposed on the network or world-writable, stats page without auth / weak password / admin mode, old TLS versions and weak ciphers, small DH params, plain HTTP without HTTPS redirect, missing HSTS, missing timeouts (slowloris), databases published on all interfaces in tcp mode, backend TLS with verify none, plaintext userlist passwords, Authorization/Cookie captured into logs, running as root, no chroot/maxconn/logging, duplicate sections. Verdict PASS / REVIEW / FIX BEFORE DEPLOY / BLOCK with score, grade, line numbers, fixes and a hardened example. Secrets are never echoed. Params: text= (config) or url= (raw file or GitHub blob link). Example: /v1/security/haproxy-check?url=https://example.com/haproxy.cfg Price: $0.006 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "security_haproxy_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://raw.githubusercontent.com/haproxy/haproxy/master/examples/quick-test.cfg

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the supplied annotations by disclosing the output contract (verdict ladder PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK with score, grade, line numbers, fixes, hardened example), the non-echoing of secrets, and the x402 pricing. Annotations already cover the read-only/no-destroy profile, and the description adds substantive operational detail on top.

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?

Purpose is front-loaded correctly, but the middle is one long comma-spliced enumeration of checks that is hard to scan and partially duplicates what the verdict/return sentence later conveys. The trailing Params/Price fragments are useful but not structurally separated.

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?

With no output schema, the description carries the return-value burden and does so adequately by describing verdict, score, grade, line numbers, fixes, and example output. The only residual gap is the phantom text= parameter, which leaves input handling slightly inconsistent with the actual schema.

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 coverage is 100%, so the single url parameter is already documented, and the description usefully adds that GitHub blob links are acceptable. However, it advertises a "text=" parameter that does not exist in the schema, which could lead an agent to send an invalid argument.

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?

Names a specific verb and resource ("Offline security audit of a haproxy.cfg") and enumerates the concrete classes of findings it looks for, so an agent can separate it from security_nginx_check or security_apache_check without opening any schema.

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?

Gives clear invocation context: it is offline analysis of a config file, accepts raw URLs or GitHub blob links, and supplies a concrete example call. It does not state when to prefer a different tool or what inputs are unacceptable, so it stops short of the top score.

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