Skip to main content
Glama

unity_runtime

Read play-mode runtime state to monitor fps, elapsed time, frame count, loaded scenes, and object counts, including inactive objects.

Instructions

Read play-mode runtime state: fps, time, frame count, loaded scenes, object counts. (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_runtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeInactiveNocount inactive objects too, default true

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?

With no annotations, the description carries the full burden and does disclose a key behavioral trait: the editor is offline, schemas are cached, and calls will fail until reconnect – unusually valuable failure-mode context. It does not say whether the tool requires an active play session or what error results then, leaving one meaningful gap.

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 compact clauses, no waste, with the core read purpose front-loaded and the operational caveat bracketed at the end where it belongs.

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 one-parameter read tool with no output schema, listing the returned fields covers the return-value question well, and the offline caveat covers operability. Only the not-in-play-mode behavior is missing.

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 coverage is 100% and the single parameter includeInactive is already documented with its default in the schema, so the baseline is 3. The description adds no further meaning about how counting behaves with the flag.

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 (read) and resource (play-mode runtime state), then enumerates the concrete fields returned: fps, time, frame count, loaded scenes, object counts. This clearly distinguishes it from control-style siblings like unity_playmode, though it does not name any alternative explicitly.

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?

Usage is only implied by 'play-mode runtime state' – an agent can infer this is for inspecting metrics during play, but there is no explicit when-to-use versus unity_playmode, unity_status, or unity_screenshot, and no statement about what happens if play mode is not running.

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