Skip to main content
Glama

Add region effect

add_region_effect

Applies a visual effect inside a defined region during a program-time window. Effects include color transformations, blur, pixelation and glass-like distortions; picture outside the region remains unchanged.

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": {
      "effect": "<effect>",
      "region": "<region>",
      "start": "<start>",
      "end": "<end>",
      "project_id": "<project_id>"
    },
    "name": "add_region_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
evNo
idNo
endYes
scaleNo
stageNo
startYes
colourNo
effectYes
regionYesface|card|glyph:<motion id>|rect:x0,y0,x1,y1|ellipse:x0,y0,x1,y1, or FxRegion JSON (polygon points, keyframed keys)
on_faceNotrue ONLY when the customer asked for this effect on a person's face; a box region on a face is refused otherwise.
strengthNo
project_idYesExplicit project identifier for this request. The connection's navigation pointer does not select the target.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / on_face
      Added value: +{
      +  "description": "true ONLY when the customer asked for this effect on a person's face; a box region on a face is refused otherwise.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Required immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess."New value: +"Explicit project identifier for this request. The connection's navigation pointer does not select the target."
  3. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation/safety profile is covered. The description adds genuinely useful scope behavior: the effect is confined and 'picture outside the region remains unchanged', and it introduces the program-time window concept. It omits whether the change is undoable, whether it composes with existing effects, and idempotency implications.

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?

Two tight sentences, front-loaded with the core action and followed by the scope guarantee. Nothing is redundant, though the effect-category listing is partly decorative given the enum in 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 12-parameter mutation tool with no output schema, the description covers the essential mental model — effect in a region over a time window, localized to the region. Remaining gaps (units for scale/strength, stage semantics, return behavior) are real but partly mitigated by the schema's own descriptions for region, on_face and project_id.

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 description coverage is only 25% across 12 parameters, so the description must compensate. It does add meaning for the effect families (color transformations, blur, pixelation, glass distortion) and reframes start/end as program-time values, but leaves scale, strength, stage, colour, ev and id entirely unexplained.

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 states a specific verb and resource ('Applies a visual effect inside a defined region') plus a temporal scope ('during a program-time window'), which is more precise than the title. It does not, however, distinguish this tool from close siblings such as blur_region or remove_region_effect, which also act on regions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. An agent cannot tell from this text whether blur_region should be preferred for blur specifically, or how this differs from add_subject_effect / add_depth_effect.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.