Skip to main content
Glama

get_class_reference

Retrieve a complete Unity class reference with public methods, properties, fields, and events. Use it to confirm API details and prevent hallucinated signatures.

Instructions

Get a complete reference card for a Unity class — all public methods, properties, fields, and events.

Use this when you want to see everything available on a class at a glance.

Args: class_name: Class name with or without namespace. Examples: "Rigidbody", "Tilemap", "InputAction", "SceneManager"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
class_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.8/5.0
Behavior3/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. It discloses the shape of what comes back (all public methods, properties, fields, events), which is genuinely useful, but says nothing about failure modes (class not found), namespace ambiguity resolution, or output size for very large classes.

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?

The purpose and usage sentence are front-loaded and waste no words. The Args block restates the parameter name but adds real format guidance and examples, so it earns its place reasonably well, though the structure is slightly boilerplate.

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?

With an output schema present, the description need not explain return values, and the single required parameter is well covered. For a simple read-only lookup this is close to complete; only edge-case behavior (missing class, ambiguous namespace) is unaddressed.

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?

Schema description coverage is 0%, so the description must compensate, and it does: it specifies that class_name accepts a name with or without a namespace and gives four concrete examples (Rigidbody, Tilemap, InputAction, SceneManager). That is meaningfully more than the schema's bare 'string' type.

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 and resource ('Get a complete reference card for a Unity class') and enumerates the returned members (public methods, properties, fields, events), so the agent knows exactly what this tool produces. It does not explicitly contrast itself with siblings like get_method_signature or search_unity_api, which keeps it from 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 Guidelines4/5

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

It gives clear context for use — 'Use this when you want to see everything available on a class at a glance' — which implicitly separates it from the narrower get_method_signature. No explicit when-not-to-use or named alternatives are provided, so it falls short of a 5.

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