Skip to main content
Glama

security_samba_check

Read-only

Samba smb.conf security audit — Offline audit of a Samba smb.conf (text= the file, testparm -s output works best). Checks SMB1/NT1 enabled, NTLMv1/LANMAN/plaintext auth, ZeroLogon (server schannel = no/auto and per-account exceptions), insecure DNS updates and LDAP simple binds on AD DCs, SMB signing and SMB3 encryption, restrict anonymous, map to guest = bad password, guest account = root, guest-readable and guest-writable shares, shares of system paths (/ /etc /root), force user = root, admin users, world-writable create/directory masks, wide links / insecure wide links, root preexec and magic scripts, hosts allow, interface binding and NetBIOS. Returns findings with severity and fix, per-share summary, score/grade, PASS / REVIEW / FIX BEFORE DEPLOY / BLOCK and a hardened example. Nothing is stored; secrets are never echoed. 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_samba_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes[global] server min protocol = NT1 map to guest = bad user [public] path = /srv/public guest ok = yes read only = no

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, destructiveHint=false), it discloses the return payload (findings with severity and fix, per-share summary, score/grade, verdict tiers, hardened example) and adds non-obvious behavior: "Nothing is stored; secrets are never echoed" plus a metered price of $0.006 USDC via x402. Payment and data-handling details are exactly the kind of context an agent cannot get from structured fields.

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 input format are front-loaded, and the long list of checks is dense but each item earns its place by letting an agent verify coverage before calling. The enumeration could be grouped more tightly, but there is no filler or repetition.

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?

For a single-parameter read-only auditor with no output schema, the definition covers input format, the full scope of checks, the shape of results, verdict tiers, data-handling guarantees, and pricing. Nothing material is missing for correct selection and 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% and the schema even embeds a sample smb.conf, so the baseline is 3. The description adds real meaning on top by clarifying that `text` is the file content and that `testparm -s` output is the preferred form, which the schema alone does not say.

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?

The description names a specific verb and resource — "Offline audit of a Samba smb.conf" — and enumerates the exact classes of issues checked (SMB1/NT1, NTLMv1/LANMAN, ZeroLogon, signing/encryption, guest shares, etc.). That specificity makes it easy to tell this apart from the sibling config auditors such as security_sshd_check or security_nginx_check.

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 clear usage context: the audit is offline and the input should be the file itself, with "testparm -s output works best" as an explicit format preference. It does not state when-not-to-use this tool or route to alternatives, but the config-file scoping makes the boundary largely self-evident.

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