New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

toggle_expression

Enable or disable an existing expression on a layer property.

SERVERAe SOURCE@synthetic-ai/ae-mcp
Medium RISK CLASS
Category Write
Parameters 74 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/synthetic-ai-ae-mcp/toggle-expression.md

What toggle_expression does on Ae

AI agents use toggle_expression to create or update resources in Ae, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Ae environment.

ParameterTypeRequiredDescription
save boolean Save after updating. Defaults to false.
enabled boolean Yes Expression enabled state.
compName string Yes Composition name.
layerName string Yes Layer name.
timeoutMs number Process timeout in milliseconds. Defaults to 120000.
projectPath string Optional absolute path to an .aep file to open first.
propertyPath array Yes Property path, preferably match names.

Parameters from the server's own tool schema.

Why toggle_expression is rated Medium

An AI agent can call toggle_expression faster than any human can review: one bad instruction and it creates or modifies resources in Ae by the hundred, each call as confident as the last.

Questions about toggle_expression

What does the toggle_expression tool do? +

Enable or disable an existing expression on a layer property. It is categorised as a Write tool in the Ae MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does toggle_expression accept? +

toggle_expression accepts 7 parameters: save, enabled, compName, layerName, timeoutMs, projectPath, propertyPath. Required: enabled, compName, layerName, propertyPath. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on toggle_expression? +

Register the Ae MCP server in PolicyLayer and add a rule for toggle_expression: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Ae. Nothing to install.

What risk level is toggle_expression? +

toggle_expression is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit toggle_expression? +

Yes. Add a rate_limit block to the toggle_expression rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block toggle_expression completely? +

Set action: deny in the PolicyLayer policy for toggle_expression. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides toggle_expression? +

toggle_expression is provided by the Ae MCP server (@synthetic-ai/ae-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Ae, and thousands of servers like it.

This server

Across the catalogue

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Ae's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.