Skip to main content
Glama

Explain a detection rule

vibe_shield_explain_rule

Explains a security rule by ID or slug, detailing severity, confidence, CWE, exploitability, vulnerable and fixed code shapes, and remediation steps so you can understand a finding before fixing it.

Instructions

Returns the full documentation for one rule id or slug: severity, confidence, CWE, why it is exploitable, the vulnerable code shape, the fixed code shape, ordered remediation steps and references. Use this when you need to understand a finding before fixing it, or when the user asks what a rule means.

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": {
      "ruleId": "<ruleId>"
    },
    "name": "vibe_shield_explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleIdYesRule id or slug, e.g. "VSB-CLIENT-001" or "public-env-secret-exposure".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4.3/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 burden, and it does disclose the substantive behavior: this is a lookup keyed by rule id and it returns a fixed documentation payload (severity, CWE, remediation, references). It omits behavior for an unknown or invalid rule id (error vs. empty result), which is the main remaining gap for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both earning their place: the first front-loads the returned payload, the second front-loads the usage trigger. No filler or redundancy.

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?

With no output schema present, the description must describe the return value, and it does so comprehensively field by field. Combined with a single fully-documented parameter, nothing an agent needs to invoke this correctly is missing beyond edge-case error behavior.

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% and the single parameter already documents that it accepts a rule id or slug with examples. The description restates "one rule id or slug" without adding resolution semantics (e.g. case sensitivity, whether slug and id are interchangeable), so it adds nothing beyond the schema baseline.

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 ("Returns the full documentation for one rule id or slug") and then enumerates exactly what documentation means: severity, confidence, CWE, exploitability, vulnerable/fixed code shape, remediation steps, references. An agent can distinguish this from the scan/audit siblings purely from the definition.

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 clear when-to-use context: "when you need to understand a finding before fixing it, or when the user asks what a rule means." It does not name an alternative tool or state exclusions, so it stops short of explicit routing guidance, but the trigger conditions are unambiguous.

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