Skip to main content
Glama

security_mongodb_check

Read-only

MongoDB config security audit — Offline security audit of mongod.conf (YAML or legacy key = value): network exposure (bindIp/bindIpAll), authorization, TLS mode and certificate checks, legacy HTTP/REST interface, replica-set keyFile/x509 internal auth, server-side JavaScript, weak auth mechanisms, localhost auth bypass, logging, socket permissions. Returns exposure, findings with fixes, score, grade, verdict (PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK) and a hardened config. Params: text= (required). 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": {
      "text": "<text>"
    },
    "name": "security_mongodb_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesnet: bindIp: 0.0.0.0 storage: dbPath: /var/lib/mongodb

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

The description goes well beyond the annotations by disclosing the payment cost ($0.006 USDC via x402) and the full set of return artifacts, which is real behavioral value. However, the annotations only carry readOnlyHint and the description omits input size limits, error behavior for malformed YAML, and whether the hardened config reveals secrets that were in the original. Adding the cost is a genuine plus over the annotations, but the disclosure is uneven rather than rich.

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?

Front-loaded with the action and scan surface, then output, then params, then price — a sensible order with dense but non-wasteful phrasing. Two elements are redundant: the trailing 'Params: text= (required)' duplicates the schema, and the price tag is useful but bolted on rather than integrated into the flow.

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-parameter tool with no output schema, the description is nearly complete: it lists what is checked, what the verdict vocabulary is (PASS through BLOCK), and what is returned. The only real gap is how malformed or oversized config text is handled, which matters for a grader-style tool that returns 'BLOCK'.

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 schema already documents the single 'text' parameter and even supplies a YAML snippet as an example. The description's 'Params: text= (required)' merely restates the schema. Baseline 3 is correct when the schema does the heavy lifting.

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 audit of mongod.conf (YAML or legacy key = value)' — then enumerates the exact check families (bindIp, authorization, TLS, keyFile/x509, server-side JS, localhost auth bypass). An agent can distinguish this from security_mysql_check, security_redis_check, and other sibling config auditors purely from the text.

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?

The word 'Offline' plus the accepted config formats make the use case clear: static analysis of an existing mongod.conf, not a live database scan. No explicit exclusions or 'use X instead' routing are given, but the file-specific scoping is unambiguous enough that an agent knows this is not the tool for other server configs.

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