Skip to main content
Glama

Get expressions

get_expressions
Read-only

List every expression in a composition or layers with layer, property path, enabled state, and AE-reported error. Use onlyErrors=true to find broken expressions.

Instructions

List every expression in a comp (or on given layers) with layer, property path, enabled state and the error AE reports. onlyErrors=true to find broken expressions.

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_expressions"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layerNoSingle layer to scan.
layersNoLayers to scan (default: all layers in the comp).
onlyErrorsNo

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?

Annotations already declare readOnlyHint=true, non-destructive and closed-world, so the safety profile is covered by structured data. The description's added value is the return-field enumeration (layer, property path, enabled state, AE error text), which matters because there is no output schema. Beyond that it says nothing about result size, ordering, or what happens when a comp has zero expressions.

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, zero filler, with the scope constraint and the returned fields front-loaded before the error-filter hint. Every clause earns its place and nothing is repeated from the schema.

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 4-parameter read tool with no output schema, the description covers purpose, scope, returned fields, and the key filter use case -- enough for correct invocation. Minor gaps remain around default behavior when both layer and layers are supplied, but the schema carries defaults for the layers parameter.

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?

Schema coverage is 75%, and the one parameter lacking any schema description -- onlyErrors -- is the one the description explains ("to find broken expressions"), which is exactly the compensation needed. It also signals that comp vs layer/layers are scope alternatives for the same scan. It does not clarify the layer-vs-layers interaction or precedence, which the schema only partly addresses.

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 opens with a specific verb and resource ("List every expression") and scopes it precisely to "a comp (or on given layers)", so the agent knows exactly what is enumerated. It also enumerates the returned fields, making the tool's output intent unambiguous. It does not distinguish itself from the read-only/write counterparts in the sibling set (e.g., set_expressions_bulk), so it stops short of a 5.

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 an explicit selection cue for the error-hunting case: "onlyErrors=true to find broken expressions." That is a real when-to-use signal rather than an implied one. However, it offers no when-not guidance or named alternative, so it falls short of full routing guidance.

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