Skip to main content
Glama

security_ansible_check

Read-only

Ansible Playbook Security Audit — Offline audit of an Ansible playbook, role or task file (text= or url=, GitHub blob links work): curl-pipe-to-shell, validate_certs off, curl -k, world-writable modes and chmod 777, plain-http downloads, get_url without checksum, hardcoded passwords/tokens/become passwords, secrets without no_log, templated vars in shell without | quote, SSH host-key checking off, sshd root/password login, SELinux or firewall disabled, state: latest, ignore_errors, shell instead of modules, deprecated sudo. Returns verdict PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK, score, grade and findings with line numbers and fixes. 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_ansible_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. - get_url: url=https://releases.hashicorp.com/terraform/1.9.8/terraform_1.9.8_linux_amd64.zip dest=/tmp validate_certs=no mode=0777

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description adds genuinely new behavioral facts beyond them: the audit is offline (the playbook is not executed), the verdict taxonomy is PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK, findings include line numbers and fixes, and the call costs $0.006 USDC via x402. Missing are any notes on input size limits, URL fetch behavior, or failure modes for malformed playbooks.

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, accepted inputs, and return values are front-loaded in a single dense sentence, and the long enumeration of checks earns its space by enabling precise match against a security-audit request. The run-on construction and inline pricing tail make it slightly harder to scan than it needs to be.

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 correctly compensates by describing the return payload (verdict, score, grade, findings with line numbers and fixes), and it discloses the payment requirement. Only the text-vs-url input ambiguity and absent edge-case behavior keep it from full completeness.

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% for the single required 'text' parameter, so the baseline is 3. The description adds that a URL or GitHub blob link may be supplied, which is useful meaning beyond the schema, but its phrasing '(text= or url=)' implies a separate 'url' parameter that does not exist in the schema, creating ambiguity about how to pass a link.

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 an Ansible playbook, role or task file') and enumerates the exact defect classes it detects, so an agent can distinguish it from the sibling checkers (nginx, k8s, Dockerfile, etc.) purely on file type. It also states the output shape (verdict/score/grade/findings).

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 context for use — an Ansible playbook, role or task file supplied as text or via a URL, with GitHub blob links accepted — which is enough to route correctly against the sibling file-type checkers. It stops short of explicit exclusions or naming the alternative tool to use for non-Ansible content.

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