Skip to main content
Glama

Apply Mosaic

apply_mosaic

Pixelate an entire video clip by adding the Mosaic (Legacy) effect and setting block counts to control coarseness. Covers the full frame, with no mask option.

Instructions

Pixelate a whole video clip by adding the "Mosaic (Legacy)" effect (the one with block counts) and setting the number of blocks. Fewer blocks = coarser. It covers the full frame; there is no mask option. Returns effect_index and the values read back.

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": {
      "horizontal_blocks": "<horizontal_blocks>"
    },
    "name": "apply_mosaic"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
sharp_colorsNoUse the colour of the centre pixel of each block instead of the average. Default false.
sequence_nameNoSequence name; used only when sequence_id is not given.
vertical_blocksNoNumber of blocks down the frame. Default: same as horizontal_blocks.
horizontal_blocksYesNumber of blocks across the frame.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation, and the description usefully adds which underlying effect is applied, that it spans the full frame with no mask, and what is returned (effect_index and read-back values). That is real added context, but it says nothing about whether repeated calls stack duplicate effects (relevant given idempotentHint=false) or how to undo it, so it stops short of full behavioral disclosure.

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?

Three short sentences, front-loaded with the action and effect name, then the block-count semantics, then the return values. Every clause carries information the agent needs 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 9-parameter mutation tool with no output schema, the description covers the action, the key tuning knob, a scope constraint, and the returned fields, which is what an agent needs to act. It is only slightly short on what happens on repeated invocations and how the effect is later removed.

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 description coverage is 100%, so the baseline is 3, and the description earns extra credit by explaining that fewer blocks produce a coarser result, giving practical meaning to horizontal_blocks and implicitly vertical_blocks. It does not, however, describe how sharp_colors or the clip-locating parameters should be used.

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?

The description names a specific verb and resource ('Pixelate a whole video clip') plus the exact mechanism (the 'Mosaic (Legacy)' effect with block counts), so an agent can distinguish it from effect siblings such as apply_gaussian_blur or apply_sharpen without opening a schema.

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 is implied only: it explains that fewer blocks mean a coarser result and that the effect covers the full frame with no mask, which helps the agent choose settings. It never states when to prefer this tool over another effect tool or what prerequisites exist, so guidance is inferred rather than explicit.

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