Skip to main content
Glama

Remove Overlay

remove_overlay

Removes a registered overlay from a Remotion composition and optionally deletes its component file; Root.tsx is regenerated so the overlay disappears from preview.

Instructions

Remove a registered overlay from the composition. Optionally delete the component file from disk. After removal, Root.tsx is regenerated without the overlay — it will disappear from the preview immediately.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectPath": "<projectPath>",
      "overlayId": "<overlayId>"
    },
    "name": "remove_overlay"
  }
}

Input Schema

NameRequiredDescriptionDefault
overlayIdYesID of the overlay to remove
deleteFileNoIf true, also deletes the component .tsx file from disk. Default false.
projectPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose real behavior: Root.tsx is regenerated, the overlay vanishes from the live preview, and the optional file deletion is destructive to disk. Gaps remain around irreversibility of disk deletion, permissions, and behavior when overlayId is unknown.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then the optional-destructive choice, then the observable consequence. No filler, though the second sentence largely duplicates the schema's deleteFile description rather than adding new information.

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 3-parameter mutation with no annotations and no output schema, the description covers the key consequence (regenerated Root.tsx, preview update) and the destructive optional flag. It leaves projectPath unexplained and says nothing about the return value or failure modes, which is the remaining gap.

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 67%; overlayId and deleteFile are already documented in the schema, and the description's 'Optionally delete the component file from disk' merely restates deleteFile. projectPath has no description anywhere, and the description does not compensate for that gap.

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+resource: 'Remove a registered overlay from the composition.' The counterpart sibling add_overlay makes the direction unambiguous. It stops short of naming any sibling or contrasting with update_composition/delete_scene, so differentiation is implied 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied by the effect ('it will disappear from the preview immediately'), but there is no explicit when-to-use vs when-not guidance and no named alternative such as add_overlay for the inverse operation. An agent can infer this is the teardown counterpart, but must infer it.

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