Skip to main content
Glama
roblox-studio
by nardjay

Read selection

get_selection
Read-onlyIdempotent

Read the instances currently selected in Roblox Studio to anchor your actions to what the user is viewing. Use it instead of guessing scene paths.

Instructions

Read the instances currently selected in Studio. This reflects what the user is looking at right now, which is often a better anchor than guessing a 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": "get_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare this read-only, idempotent, non-destructive, and closed-world, so safety is covered. The description adds genuinely useful context that the result is live transient UI state reflecting 'right now' rather than a stable resource, but it says nothing about what happens with an empty selection or what the returned items look like.

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 short sentences with zero filler. The core action is front-loaded and the second sentence earns its place by explaining why the agent would prefer this over path-based alternatives.

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 zero-parameter read tool with full annotation coverage, the definition gives enough to decide and invoke. The only real gap is the shape of the return value (instance references, IDs, or paths) and the empty-selection case, which matters somewhat given there is no output schema.

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?

The tool takes zero parameters, so there is no parameter meaning for the description to supply; the baseline of 4 applies. Nothing is misdescribed or omitted on this axis.

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 names a specific verb and resource — 'Read the instances currently selected in Studio' — which is unambiguous about what comes back. The second sentence implicitly contrasts it with path-based lookups like get_instance ('a better anchor than guessing a path'), giving real sibling differentiation without naming the tool directly.

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 states a clear selection criterion: use this when you want what the user is currently looking at, rather than deriving an object from a guessed path. It stops short of explicit exclusions, such as what to do when nothing is selected or when a known path is already available, 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.