Skip to main content
Glama

unity_refresh

Refresh the Unity asset database and trigger script compilation when needed so the editor detects changed assets and code.

Instructions

Refresh the asset database and trigger a script compile if needed. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects)

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/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, and it does disclose two things beyond the name: the operation can trigger a script compile (a real side effect an agent could not otherwise predict) and the editor is currently offline, so calls will fail. It does not say whether the call blocks, how long compilation takes, or whether compile errors are surfaced in the response.

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?

Two short sentences with the core action front-loaded and the conditional side effect immediately after. The parenthetical offline notice is useful but is transient operational state that could go stale inside a cached tool definition, which keeps it from being a 5.

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 zero-parameter, no-output-schema tool, an agent mainly needs to know what it does and whether it is currently callable; both are answered. The only remaining gap is whether the response reports compile success/failure, which matters for a tool whose whole point is compilation, but that is a minor omission against a very simple surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so per the baseline rule this scores a 4. There is nothing about arguments to clarify or omit.

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 states a specific verb+resource: refresh the asset database, plus the conditional side effect of triggering a script compile. This is clearly distinct from the sibling tools (which mostly manipulate hierarchy, properties, scenes, or run code). It stops short of naming a sibling it must be preferred over, so it is a clear 4 rather than a 5.

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 phrase 'if needed' implies usage after asset or script changes, but the definition never says when an agent should call this versus, for example, unity_status or the asset/scene tools. There are no exclusions or prerequisites stated. Usage is only implied, which is the definition of a 3.

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