Skip to main content
Glama

Diagnose Skills & Rules

diagnose_skills

Scans installed AI agent skills and rule files, computes a 0–100 Health Score, and flags contradictions, trigger collisions, duplicate names, context bloat, broken references, and security hazards.

Instructions

Scan all installed AI agent skills and rule files across Antigravity, Claude Code, Cursor, Codex, and an optional workspace; compute a 0–100 Health Score and detect contradictions, trigger collisions, duplicate names, context bloat, broken local references, and security hazards.

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": "diagnose_skills"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceDirNoOptional project workspace path to include repo-local rules and skills
severityFilterNoOptional filter for markdown output (all, error, warning, info)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the detection scope (contradictions, trigger collisions, duplicate names, context bloat, broken local references, security hazards) and that results are summarized as a 0–100 score. It never states that the scan is read-only/non-mutating, whether it requires any permissions, or that scanning every installed platform may be slow — gaps that matter for an agent deciding to invoke it.

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 sentence with the verb, platform scope, and output front-loaded, followed by the enumerated check categories — no filler. It is dense but every clause earns its place; slightly tighter phrasing could improve readability.

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?

For a two-optional-parameter diagnostic with no annotations and no output schema, the description covers what is scanned and roughly what comes back, but leaves the return shape (markdown vs structured, per-severity grouping), read-only nature, and runtime cost unspecified. Adequate but not fully sufficient for the agent to predict the result.

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 description coverage is 100%, so both workspaceDir and severityFilter are documented in the schema and the baseline is 3. The description reinforces the workspace-inclusion semantics but adds nothing about severityFilter's effect on output, so it does not exceed what the schema already provides.

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 ('Scan') and a precise resource ('installed AI agent skills and rule files across Antigravity, Claude Code, Cursor, Codex, and an optional workspace') plus the concrete output (0–100 Health Score) and the issue classes it detects. That is far beyond a restatement of the name. It does not, however, distinguish itself from siblings such as check_rule_conflicts or inspect_skill_health, which sound like overlapping diagnostics.

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: the phrase 'an optional workspace' hints that you pass workspaceDir when repo-local rules should be included, and the mention of a Health Score suggests a first-pass audit. There is no explicit when-to-use / when-not-to-use statement and no routing to the sibling diagnostic tools, so the agent must infer the choice.

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