Skip to main content
Glama

Get resource UID

get_uid
Read-only

Retrieve the uid:// identifier for a Godot 4.4+ project file using its path, enabling correct resource references in scripts and scenes.

Instructions

Get the uid:// of a file in the project (Godot 4.4+).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesThe file, e.g. "res://player.gd".
projectPathNoFolder containing project.godot. Optional: defaults to the project Claude Code is running in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds a useful version constraint (Godot 4.4+), implying UIDs are unavailable on older projects, but says nothing about failure modes such as files without a UID or nonexistent paths.

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?

A single tight sentence with the core action front-loaded and the version caveat parenthesized at the end. No filler.

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 simple two-parameter read tool with full schema coverage and no output schema, the description is nearly sufficient; the return value is implied by 'uid://'. It stops short of noting behavior when a file has no UID or the version requirement is unmet.

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 filePath and projectPath (including its default behavior) are already fully documented in the schema. The description adds no parameter-level detail beyond implying a file within a project; baseline 3 is appropriate.

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?

States a specific verb (get) and resource (uid:// of a file), which is unambiguous and distinct from siblings like update_project_uids. It does not explicitly contrast itself with that sibling, but the purpose is immediately clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no mention of the related update_project_uids tool or the prerequisite that the project must already use Godot 4.4+ UIDs. The agent must infer usage from the purpose alone.

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