Skip to main content
Glama
roblox-studio
by nardjay

Search instances

search_instances
Read-onlyIdempotent

Locate Roblox Studio instances by name substring and class name within a subtree, traversing descendants to find scripts, parts, or GUIs when the full path is unknown.

Instructions

Find instances by name substring and/or class name under a subtree, traversing descendants. This is the fastest way to locate a script, part or GUI by name when you do not know its full path.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches. Default 50.
queryNoCase-insensitive substring of Instance.Name. Omit to match all names.
underNoInstance path. Accepts "Workspace.Model.Part", "game.Workspace.Model.Part" or "game.Workspace[\"My Part\"].Model". Use "game" or omit for the DataModel root. Default "game".
classNameNoExact ClassName filter, or a trailing-* wildcard such as "Script" / "*Script".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the safety profile is covered. The description does add genuine behavioral context beyond them — descendant traversal under a subtree and case-insensitive matching — but says nothing about result ordering, truncation behavior at the limit, or what a match contains.

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 tight sentences: the first defines the operation and scope, the second supplies the decision heuristic. Nothing is repeated and the routing hint is front-loaded rather than buried.

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 read-only search with four optional parameters and no output schema, the definition covers the operation, scope, and matching rules adequately. The only real gap is that it never sketches the shape of results (matched instance paths), which an agent might want since no output schema exists.

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%, and the schema already documents every parameter including accepted path syntax and wildcard class names. The description only restates the same filtering concepts at a higher level, adding no syntax or edge-case detail the schema lacks; baseline 3 applies.

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 and resource ('Find instances') plus the search axes (name substring, class name) and scope ('under a subtree, traversing descendants'). It implicitly separates itself from path-based lookup via 'when you do not know its full path', but never names a sibling such as get_instance, so differentiation is inferential rather than explicit.

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?

Provides a clear selection criterion: use this to locate a script, part, or GUI by name when the full path is unknown. That effectively implies get_instance (path-based) is the alternative, but the description never states the exclusion or names the alternative, so it stops short of explicit when-not guidance.

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