Skip to main content
Glama

Audit Unity GUID references

re_refs
Read-onlyIdempotent

Audits Unity project GUID references to find dangling scripts, duplicate .meta GUIDs, missing or orphan assets, and unreferenced files; reports issues with fix suggestions without writing changes.

Instructions

Audits a Unity project's GUID references: references to GUIDs no .meta file declares (dangling: missing scripts, pink materials), the same GUID in two .meta files (copies made outside Unity), assets without a .meta, .meta files whose asset is gone, and declared assets nothing references. For dangling script references it suggests scripts that nothing references. Reports only; nothing is written. Fix by re-linking in Unity or by setting the suggested guid in the right .meta.

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": {
      "path": "<path>"
    },
    "name": "re_refs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesUnity project root, or any folder/file inside it.
limitNoMax items per list (default 200).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description adds real substance beyond that by naming the five failure classes detected and noting that dangling script references come with suggested replacement scripts. It stops short of describing output structure or cost/performance characteristics, so not a 5.

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 is front-loaded in the opening clause, and the enumerated defect categories are dense but each earns its place by telling the agent what to expect in the report. The closing remediation sentence is useful but slightly overlaps the "Reports only" clause.

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, the description carries the burden of explaining what comes back, and it does so by listing the five report categories plus the script-suggestion behavior. It does not describe the report's shape or how the limit parameter partitions results, which is the main remaining gap for a two-parameter audit tool.

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%, and both the path semantics (project root or any folder/file inside it) and the limit bound are documented there. The description adds no additional parameter meaning, so the baseline of 3 applies.

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?

"Audits a Unity project's GUID references" gives a specific verb plus resource, then enumerates exactly what it detects (dangling GUIDs, duplicate GUIDs across .meta files, missing .meta, orphaned .meta, unreferenced assets). No sibling in the list covers GUID/meta auditing, so an agent can select this tool without ambiguity.

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?

The description makes the read-only intent explicit ("Reports only; nothing is written") and closes with remediation guidance (re-link in Unity or set the suggested guid in the right .meta), which tells the agent what to do with the output. It does not name an alternative tool or state an exclusion, so it falls short of a full when/when-not pairing.

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