Skip to main content
Glama

security_mosquitto_check

Read-only

Mosquitto MQTT broker config audit — Offline security review of an Eclipse Mosquitto mosquitto.conf (IoT/MQTT broker). Tracks every listener block (and per_listener_settings) and flags plaintext listeners reachable beyond loopback (1883, websockets 8080/9001), allow_anonymous true (CRITICAL on a public plaintext listener), authentication without an acl_file (every user can read/write all topics), TLS 1.0/1.1 and weak ciphers, use_identity_as_username without require_certificate, bridges without TLS or with bridge_insecure, bridges of every topic in both directions, stored bridge passwords (never echoed), running as root and disabled connection logging. Returns a per-listener table (tls, localOnly, anonymous, auth, acl), score, A-F grade, PASS/REVIEW/FAIL and line-numbered findings with fixes. Params: text (config; newlines may be sent as a literal backslash-n) or url (raw file or GitHub blob URL) instead of text. Price: $0.005 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": {
      "text": "<text>"
    },
    "name": "security_mosquitto_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. listener 1883 allow_anonymous true listener 8883 certfile /etc/mosquitto/certs/server.crt keyfile /etc/mosquitto/certs/server.key tls_version tlsv1.1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description goes further by disclosing the scoring model (score, A-F grade, PASS/REVIEW/FAIL), line-numbered findings with fixes, the per-listener output table, that stored bridge passwords are 'never echoed', and the $0.005 x402 payment requirement. It stops short of describing pagination or size limits for large configs, keeping it just below top marks.

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?

Purpose and scope are front-loaded, followed by the check list, output shape, params and price in a logical order. The long enumeration of checks is dense but each item is a concrete finding category rather than filler; only the parenthetical examples (1883, 8080/9001) and price tag add slight clutter.

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

Completeness5/5

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

With one required parameter and no output schema, the description fully carries the burden: it says what input it takes, how to escape newlines, what the return payload contains (per-listener table with tls/localOnly/anonymous/auth/acl, score, grade, verdict, line-numbered findings with fixes), and the payment cost. Nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the single 'text' parameter only carries an example, so the description genuinely adds value by explaining that newlines may be sent as a literal backslash-n. It also introduces a 'url' input mode (raw file or GitHub blob URL) that is absent from the schema, which adds useful meaning but risks an agent passing an undocumented property.

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?

States a specific verb and resource: 'Offline security review of an Eclipse Mosquitto mosquitto.conf'. It also scopes the domain (IoT/MQTT broker) and enumerates the exact misconfigurations checked, so an agent can instantly distinguish it from the many sibling *security_*_check tools that audit other config formats.

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

Usage Guidelines3/5

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

'Offline security review' implies the usage context (static config file analysis, no live broker connection), and the params sentence indicates you can supply text or a URL. However, there is no explicit when-to-use vs when-not guidance, no statement about what to do on parse failure, and no mention of alternatives for live MQTT probing.

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