Skip to main content
Glama

get_selection

Retrieves the active composition, selected timeline layers, and project panel selection so you know what the user has selected before making changes. Call before mutations.

Instructions

Returns active comp, currently selected timeline layers, and project panel selection. Cheap — call before mutations to know what user has selected.

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
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the load: it discloses the three returned data sets and adds a cost signal ("Cheap") that matters for an agent deciding whether to probe first. It never explicitly says the call is side-effect free or what happens when nothing is selected, so a small gap remains.

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 return contents are front-loaded, then the when-to-call hint with its cost rationale. Nothing extraneous and no restating of the name.

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?

No output schema exists, so the description must name the return values, which it does for all three. It lacks detail on return shape or empty-selection behavior, but for a cheap single-parameter read tool the essentials are covered.

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 optional `instance` parameter is fully documented in the schema, including its omission case. The description adds nothing about instance targeting, so baseline 3 applies.

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?

States a specific verb ("Returns") and enumerates exactly what comes back: active comp, selected timeline layers, and project panel selection. That is far more precise than the bare name and tells an agent this is the read-side counterpart to the mutation siblings.

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?

Explicitly says to call it "before mutations to know what user has selected," which gives a concrete trigger condition. It stops short of naming specific mutation siblings or stating when not to bother, so it is clear context without full alternative routing.

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

Deploy Server

Other Tools