Skip to main content
Glama

gameobject-component-get

Retrieve detailed information about a specific component on a GameObject, including type, enabled state, and serialized fields or properties. Prepare to inspect component data before making modifications.

Instructions

Get detailed information about a specific Component on a GameObject. Returns component type, enabled state, and optionally serialized fields and properties. Use this to inspect component data before modifying it. Use 'gameobject-find' tool to get the list of all components on the GameObject.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameObjectRefYesTarget GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345}
componentRefYesComponent to get. SCHEMA: {"typeName":"Transform"} or {"typeName":"BoxCollider","index":0}
includeFieldsNoInclude serialized fields of the component.true
includePropertiesNoInclude serialized properties of the component.true
deepSerializationNoPerforms deep serialization including all nested objects. Otherwise, only serializes top-level members.false
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It implies a read-only operation via 'inspect' and mentions what data is returned, but does not explicitly state side effects, error handling, or access restrictions. This is sufficient for a simple getter tool.

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?

The description is three sentences long, front-loaded with the purpose, and every sentence adds value. No wasted words.

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?

Despite lacking an output schema, the description mentions the returned data (component type, enabled state, optional fields/properties). It also advises using an alternative tool. It could elaborate on error cases but is sufficiently complete for a straightforward inspection 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%, so all parameters are documented in the input schema. The description adds no new parameter semantics beyond what the schema already provides, achieving the baseline score.

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 tool's action: 'Get detailed information about a specific Component on a GameObject.' It specifies the returned data (component type, enabled state, optional fields/properties) and distinguishes itself from the sibling tool 'gameobject-find' which lists all components.

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

Usage Guidelines5/5

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

The description explicitly says 'Use this to inspect component data before modifying it' and 'Use 'gameobject-find' tool to get the list of all components on the GameObject,' providing clear when-to-use and alternative context.

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/butterlatte-zhang/unity-ai-bridge'

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