Skip to main content
Glama

Find instances

find_instances
Read-only

Search a live Roblox instance tree with CSS-like selectors or name and class filters to locate objects and return their full paths, classes, and optional property values.

Instructions

Search the instance tree. Use a CSS-like selector (for example Model > Part[Anchored=false], TextButton#Play, Frame TextLabel[Text*='coins'], RemoteEvent) or the simple name and class_name filters. Returns the full path and class of each match, optionally with property values, and whether the result list was cut off. Requires the connected state.

Input Schema

NameRequiredDescriptionDefault
nameNoCase-insensitive part of the instance name.
rootNoDotted path to search under (default game).
limitNoMaximum number of results (default 50).
clientNoClient id from list_clients, for example c2. Defaults to the client that connected last.
selectorNoSelector made of Type, #Name and [property operator value] parts. A space means any descendant, > means a direct child. Operators: = != *= ^= $= < <= > >=. A property can also be an attribute.
class_nameNoClass to match, base classes included (for example BasePart, RemoteEvent or LocalScript).
propertiesNoProperty names to return for every match (at most 8).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, and the description adds genuinely new behavior: results include full path and class, optional property values, a truncation flag, and the requirement for an active connection. Return-shape detail is valuable given there is no output schema; only pagination/ordering behavior is unstated.

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?

Four tight sentences with the core action and the highest-value detail (selector examples) front-loaded. Every sentence carries information, though the selector examples and the schema's selector description overlap slightly.

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

Completeness5/5

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

For a seven-parameter, zero-required, no-output-schema search tool, the description covers what it does, how to express queries, what comes back (path, class, optional properties, truncation), and the connection prerequisite. An agent has enough to call it correctly without further context.

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%, so every parameter is already documented in the input schema, including the operator list and limits. The description adds concrete selector examples (Model > Part[Anchored=false], TextButton#Play) that aid construction, but restates the operator/syntax information already present in the selector schema.

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?

Opens with a specific verb+resource ("Search the instance tree") and immediately clarifies it is a filtered search rather than a tree dump, which separates it from get_hierarchy and inspect_instance. It does not explicitly name those siblings, so an agent must infer the boundary.

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?

Explains the two usage modes (selector syntax vs. the simple name/class_name filters) and states the prerequisite "Requires the connected state." However it never says when to prefer this over get_hierarchy, inspect_instance, or semantic_search, leaving the routing decision to inference.

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