Skip to main content
Glama

get_object

Read-only

Retrieve a Unity object's transform and components, or list a component's property names and values by specifying it.

Instructions

One object's transform and components. Set component to list its property names and values.

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": {
      "target": "<target>"
    },
    "name": "get_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 the safety profile is covered. The description adds useful behavioral detail about the default return payload (transform plus component list) and the drill-down mode when component is set. It still says nothing about error behavior when the target does not exist.

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 short sentences with zero filler; the core payload is front-loaded and the optional mode is stated second. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two parameters and no output schema, the main remaining gaps are the meaning/format of target and what happens when the object is not found or has no components. The description covers the return shape reasonably well, so it is adequate but incomplete.

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 carry parameter meaning. It explains the optional component parameter well — it switches to listing that component's property names and values — but says nothing about the required target parameter, leaving its expected format (path, name, or ID) undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource and payload ("One object's transform and components"), which conveys retrieval, but it is a verbless fragment rather than an explicit action. It does not differentiate itself from siblings like get_hierarchy or find_objects, so an agent has to infer that this is the single-object read.

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?

"Set component to list its property names and values" is parameter behavior, not when-to-use guidance. There is no statement of when to call this instead of get_hierarchy, find_objects, or get_editor_state, and no prerequisites or failure conditions are given.

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