Skip to main content
Glama

Playbooks

playbook
DestructiveIdempotent

List, read, write, delete, or lint Ansible project files. Every write is linted to reject constructs that would run on the local Mac, keeping changes safe.

Instructions

List, read, write, delete or lint files in the project: playbooks/.yml, roles/..., oneoffs/.yml, and check scripts checks//.sh|.rsc|.ps1 (run by look check=). Every write is linted: constructs that would run on the Mac (lookups, delegate_to, localhost, check_mode: false...) are refused. Declare per-run inputs in the first play's vars.asm_params so one approval covers them, e.g. asm_params: {client: {type: str, pattern: "^[a-z0-9-]+$"}}. Never put secrets in a playbook.

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": {
      "action": "<action>"
    },
    "name": "playbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoproject-relative path, e.g. playbooks/updates.yml, roles/web/tasks/main.yml, checks/linux/x.sh
actionYeslist (default), read, write, delete or lint
contentNowrite: the whole file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so mutation is known. The description adds genuinely non-obvious behavior: writes are linted and refused if they contain Mac-executing constructs (lookups, delegate_to, localhost, check_mode: false), plus an approval implication for asm_params. It does not describe delete irreversibility or what list/lint return, which is a real gap for a destructive multi-action tool without an output schema.

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?

Four sentences, front-loaded with the action/file inventory before the lint constraint and the asm_params example. The first sentence is long and enumerative, but no sentence is filler; the secrets warning earns its place.

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 three-parameter file tool with no output schema, the description covers scope, allowed actions, write-time validation, approval-related input declaration, and a safety prohibition. Missing is any sense of what list/lint produce, which an agent would otherwise have to discover by calling it.

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 baseline is 3. The description does add some semantic detail: path conventions for checks (<kind>/<name>.sh|.rsc|.ps1) and the requirement that `content` declarations go in the first play's vars.asm_params. That is useful but partial and expressed as workflow rules rather than parameter guidance.

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?

Opens with specific verbs (list, read, write, delete, lint) bound to a concrete resource scope: playbooks/*.yml, roles/..., oneoffs/*.yml, and checks/<kind>/<name>.sh|.rsc|.ps1. It also distinguishes itself from the sibling that consumes these files ('run by look check='), so an agent can tell what this tool owns versus what look executes.

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 operating context: which file trees are in scope, that writes are linted, and how to declare per-run inputs via vars.asm_params so one approval covers them. It stops short of explicit routing rules (e.g., when to use write versus apply, or whether to lint before write), so it is clear but not fully prescriptive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools