Skip to main content
Glama

rush_dead_asset

Scan a directory to detect unreferenced images, fonts, and media assets, listing findings for safe cleanup.

Instructions

Detect unreferenced images, fonts, and media assets under (strictly read-only). Returns {status, findings[], summary}; export manifest requires --allow-artifact-write.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
export_manifestNo
allow_artifact_writeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNo
toolNo
engineNo
statusNo
metricsNo
summaryNo
findingsNo
metadataNo
artifactsNo
duration_msNo
review_kindNo
engine_versionNo
review_providerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changedv0.2.2
    • addedInput schema / properties / allow_artifact_write
      Added value: +{
      +  "default": false,
      +  "title": "Allow Artifact Write",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / export_manifest
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "path",
      +      "type": "string"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Export Manifest"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "format": "path",
      +  "title": "Path",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "path"
      +]
    • changedInput schema / title
      Previous value: -"mcp_rush_dead_assetArguments"New value: +"__call__Arguments"
    • addedOutput schema / $defs
      Added value: +{
      +  "Finding": {
      +    "description": "One issue from any engine. total=False because not all engines\npopulate every field (e.g. heuristics may lack `rule`).",
      +    "properties": {
      +      "column": {
      +        "title": "Column",
      +        "type": "integer"
      +      },
      +      "evidence": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Evidence"
      +      },
      +      "fingerprint": {
      +        "title": "Fingerprint",
      +        "type": "string"
      +      },
      +      "fix": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Fix"
      +      },
      +      "freshness": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Freshness"
      +      },
      +      "line": {
      +        "title": "Line",
      +        "type": "integer"
      +      },
      +      "message": {
      +        "title": "Message",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Patch"
      +      },
      +      "path": {
      +        "title": "Path",
      +        "type": "string"
      +      },
      +      "provenance": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Provenance"
      +      },
      +      "remediation": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Remediation"
      +      },
      +      "rule": {
      +        "title": "Rule",
      +        "type": "string"
      +      },
      +      "rule_id": {
      +        "title": "Rule Id",
      +        "type": "string"
      +      },
      +      "severity": {
      +        "enum": [
      +          "info",
      +          "warn",
      +          "error"
      +        ],
      +        "title": "Severity",
      +        "type": "string"
      +      },
      +      "suggested_fix": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Suggested Fix"
      +      }
      +    },
      +    "title": "Finding",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / artifacts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Artifacts"
      +}
    • addedOutput schema / properties / duration_ms
      Added value: +{
      +  "default": null,
      +  "title": "Duration Ms",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / engine
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Engine"
      +}
    • addedOutput schema / properties / engine_version
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Engine Version"
      +}
    • addedOutput schema / properties / findings
      Added value: +{
      +  "default": null,
      +  "items": {
      +    "$ref": "#/$defs/Finding"
      +  },
      +  "title": "Findings",
      +  "type": "array"
      +}
    • addedOutput schema / properties / metadata
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Metadata"
      +}
    • addedOutput schema / properties / metrics
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Metrics"
      +}
    • addedOutput schema / properties / raw
      Added value: +{
      +  "anyOf": [
      +    {},
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Raw"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "title": "Result",
      -  "type": "string"
      -}
    • addedOutput schema / properties / review_kind
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "heuristic",
      +        "llm"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Review Kind"
      +}
    • addedOutput schema / properties / review_provider
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Review Provider"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "default": null,
      +  "enum": [
      +    "ok",
      +    "warn",
      +    "fail",
      +    "error",
      +    "skipped"
      +  ],
      +  "title": "Status",
      +  "type": "string"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "default": null,
      +  "title": "Summary",
      +  "type": "string"
      +}
    • addedOutput schema / properties / tool
      Added value: +{
      +  "default": null,
      +  "title": "Tool",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"mcp_rush_dead_assetOutput"New value: +"ToolResult"
  2. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It explicitly states 'strictly read-only,' discloses the return shape ({status, findings[], summary}), and warns that exporting a manifest requires --allow-artifact-write. This is strong behavioral disclosure, though it does not cover edge cases or failure modes.

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 dense sentences with no filler. The action and scope are front-loaded, read-only safety is placed prominently, and the export caveat is compressed into a single clause. Every part 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?

Given the tool's moderate complexity, the description covers the essential context: what it scans, the read-only guarantee, the return shape, and the artifact-write requirement. An output schema exists to fill in return details, so this is sufficiently complete, though it could add a note on whether path must be a directory or file.

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 0%, so the description must compensate. It references all three parameters indirectly: <path>, export manifest, and --allow-artifact-write, and it explains the relationship between manifest export and write permission. However, it does not clarify expected formats, defaults beyond the schema, or the meaning of null values.

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?

The description opens with a specific verb ('Detect') and a concrete resource ('unreferenced images, fonts, and media assets') scoped to a path. This clearly distinguishes rush_dead_asset from siblings like rush_dead (likely code-focused) and rush_media_opt (optimization-focused).

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?

The tool's use case is implied clearly: run this when you need to find unreferenced media assets under a path. However, it does not explicitly mention alternatives or state when not to use it, so the agent must infer routing from the name and sibling context.

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