Skip to main content
Glama

discover_unity_tests

Discover runnable Unity Test Framework test cases in Edit Mode, Play Mode, or both to get exact full names, assemblies, categories, run state, and stable unique names before running tests.

Instructions

Discover runnable Unity Test Framework test cases in Edit Mode, Play Mode, or both. Returns exact full names for run_unity_tests plus assembly, categories, run state, and stable Test Framework unique names. Requires com.unity.test-framework and a settled running Unity Editor.

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": "discover_unity_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoTest modes to discoverall
searchNoOptional case-insensitive name, assembly, or category filter
timeoutMsNoMaximum time to wait for Unity test discovery
maxResultsNoMaximum matching test cases to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden, and it does disclose the hard prerequisites of package availability and an editor that is not compiling or switching state — real behavioral constraints an agent needs. It also discloses what is returned (full names, assembly, categories, run state, stable unique names) but says nothing about behavior on timeout, partial results, or cost of discovery.

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 sentences, front-loaded with purpose, then prerequisites and return content. No filler and nothing restated from the name or title.

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 no output schema, the description does the work of describing the return payload (exact full names, assembly, categories, run state, unique names) and the environmental preconditions, which is sufficient to call it correctly. Minor gaps are error/timeout behavior and what happens when nothing matches.

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 mode, search, timeoutMs and maxResults are already documented with enums, defaults and bounds; the description adds no extra meaning to any parameter. The mention of categories and assemblies hints at what the search filter matches, but the schema itself already says 'name, assembly, or category filter'.

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 definition states a specific verb (Discover) and scope (runnable Unity Test Framework cases in Edit Mode, Play Mode, or both) and explicitly names run_unity_tests as the consumer of its output, which cleanly separates it from the sibling that executes tests.

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: call this to get exact full names before passing them to run_unity_tests, and it names the prerequisites (com.unity.test-framework installed, a settled running Unity Editor). It stops short of explicit when-not-to-use cases, such as the already-known-name or read-only-status scenario.

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