Skip to main content
Glama

map_skill_risks

Audit a SKILL.md and map each finding to the exact step and line range, flag irreversible actions lacking confirmation, and return a risk graph and JSON for step-by-step fixes.

Instructions

Audit a SKILL.md and place each finding on the step of the skill it sits in. Returns the skill's steps with their line ranges, the findings on each step, irreversible actions that have no confirmation step before them, a mermaid graph, and the same data as JSON. Use when the user wants to know WHERE in a skill the problems are, wants to fix a skill step by step, or asks for a risk map / graph of a skill. Pass skill_text or url. The graph is computed locally from the audit findings.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "map_skill_risks"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL of a SKILL.md to fetch instead of passing skill_text
domainNo
skill_textNoFull SKILL.md content including YAML frontmatter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does most of it: it enumerates exactly what is returned (steps with line ranges, per-step findings, irreversible actions lacking a preceding confirmation step, mermaid graph, JSON) and notes 'the graph is computed locally from the audit findings', which rules out an external renderer. It never states that the audit is non-mutating or what happens on a malformed SKILL.md, which are the remaining gaps.

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 comes first, then a compact enumeration of outputs, then usage triggers. The output list is long but each item is a distinct return component an agent needs, so little is wasted; only 'the same data as JSON' is slightly redundant given the graph/JSON phrasing.

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 and no annotations, the description must describe returns and behavior itself, and it does so thoroughly, including the local-computation caveat. The unexplained 'domain' parameter is the one thing an agent cannot resolve from the definition.

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 67% and the description adds real meaning by making skill_text and url mutually exclusive alternatives ('Pass skill_text or url'), which the schema alone does not convey. However, the third parameter, domain, is described in neither the schema nor the description, so a full third of the input surface is opaque.

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 (audit a SKILL.md) plus the distinctive output framing: findings mapped onto the step they sit in, with line ranges. That mapping is what separates it from the flat audit_skill_text/audit_skill_url siblings, and the description makes the 'WHERE' framing explicit.

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?

Gives three concrete trigger conditions (wanting to know where the problems are, fixing step by step, asking for a risk map/graph) and clarifies the input choice with 'Pass skill_text or url'. It does not explicitly exclude the sibling audit tools, but the use-case framing implicitly routes correctly.

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