Skip to main content
Glama

mcp-audit — MCP static scan (SARIF + CI)

explain_rule

查询单条规则的严重度、含义与修复建议

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": {
      "rule": "<rule>"
    },
    "name": "explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does indicate the response content (severity/meaning/fix advice), but it says nothing about what happens if the rule identifier is unknown, whether identifiers are IDs or names, or any access or rate constraints for a lookup that presumably hits a rule catalog.

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?

A single short sentence that front-loads the action and the resource and appends the useful return content. No filler, though the brevity leaves real specification gaps rather than excess words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not enumerate return fields, and the tool is simple (one string param). The remaining gap is the identifier format for `rule`, which neither the schema nor the description defines, leaving an agent to guess the expected input.

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?

There is a single required parameter, `rule`, with 0% schema description coverage, so the schema gives no hint about its expected format. The description implies it identifies one specific rule but does not clarify whether that is a rule ID, a rule name, or a pattern, so it only partially compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (查询, query) and resource (单条规则, a single rule), and it further specifies the returned content: severity, meaning, and remediation advice. This makes it clearly distinguishable from list_rules, though it does not name that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: fetch details for one rule you already have. The word 单条 signals a single-item lookup rather than enumeration, but there is no statement of when to prefer this over list_rules or scan_mcp_server, and no prerequisites or exclusions.

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