Skip to main content
Glama
AccelByte

AccelByte Unity MCP Server

Official
by AccelByte

unity_repair_package_cache

Repair a stale Unity Package Manager cache for a git-dependency package. Resolves 'Failed to rename' errors or hash mismatches by deleting corrupted cache folders and lock entry, then re-resolves on next editor launch.

Instructions

Force a clean re-resolve of a stale UPM git-dependency package. Use on a packages-lock.json hash mismatch against Library/PackageCache, or a 'Failed to rename ... EPERM' error during resolve. Deletes the stale Library/PackageCache/@* folder(s) and removes the package's packages-lock.json entry so Package Manager re-resolves it fresh on next editor launch. Refuses to run while a Unity editor process is open unless force=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoRepair even if a Unity editor process is currently running. Leave false unless you've independently confirmed it's safe.
packageNameYesUPM package name to repair, e.g. 'com.accelbyte.ui-tools'.
projectPathYesUnity project root.
Behavior4/5

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

No annotations exist, so the description carries full behavioral burden. It discloses destructive actions: deletes stale folders and removes lock entry, and the refusal behavior with editor open. However, it does not mention potential data loss or that the package must be a git dependency, which would improve transparency.

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?

Three sentences with no wasted words. First sentence states purpose, second gives usage context, third details behavior and a constraint. Information is front-loaded and efficiently structured.

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?

For a tool with 3 parameters and no output schema, the description covers use case, behavior, constraints, and parameter roles. It could mention what happens after repair (e.g., re-launch editor) or offer a note on when not to use it, but overall it is sufficiently complete for an agent to invoke correctly.

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% with descriptions for all parameters. The description adds value for 'force' with a safety note, but for 'packageName' and 'projectPath' it adds no extra meaning beyond the schema. Baseline 3 is appropriate as the description complements without redundancy.

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 clearly states the action: 'Force a clean re-resolve of a stale UPM git-dependency package.' It specifies the verb (repair/resolve) and the exact resource (package cache). This distinguishes it from sibling tools focused on UI generation or example components.

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 provides specific error scenarios where the tool should be used: 'packages-lock.json hash mismatch' or 'Failed to rename ... EPERM' error. It also notes a condition: refuses to run with editor open unless force=true. Missing explicit alternatives or when-not-to-use, but the context is clear enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AccelByte/accelbyte-unity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server