Skip to main content
Glama

Kalpana Designer

Set a phrase as kinetic type

kinetic_type

Add a phrase as kinetic type: words laid out one by one by the real text engine (wrapping at width, words sharing a baseline), with emphasis on chosen words (colour, style, size, tilt, a highlight pill) and motion that gives each word its own path: fly, drop, scatter, pop, wave, glitch, zoom, starting at start with stagger between words; exit_at sends them out. Seeded, so it varies by phrase but repeats exactly. Adds one new group each call and returns its group_id and the block's box and lines. Saved as a new revision that undo reverts; if any part is refused, nothing changes. Use it for animated headlines; for a plain typewriter or word reveal on an existing text layer use animate text_reveal.

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": {
      "page_id": "<page_id>",
      "text": "<text>",
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "font_size": "<font_size>",
      "intent": "<intent>"
    },
    "name": "kinetic_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesLeft edge of the block in the parent, px.
yYesTop edge of the block in the parent, px.
nameNoThe group's name (default: the text).
seedNoVaries the scatter and timing; the same seed and text repeat exactly.
textYesThe phrase; it is split into words at spaces.
alignNoLine alignment inside `width`: "left" (default), "center" or "right".left
colorNoHex colour of the words (default #111111).#111111
startNoSeconds.
widthYesWidest the block may be, px; words wrap onto new lines past it.
intentYesOne short sentence: what you change and why. Kept in the design history.
motionNoHow the words arrive (default fly).
exit_atNoLeave at this second (words fly back out in reverse).
page_idYesThe page to work on, as returned by create_design.
staggerNoSeconds between words (default 0.08).
durationNoSeconds each word takes (default 0.7).
emphasisNoWords to stand out, each with its own colour, style, size, tilt or highlight pill.
font_sizeYesSize of every word that is not emphasised, px.
parent_idNo
strike_atNoStrike the whole phrase through at this second: a line draws across the words left to right (a "stop doing this" list item).
font_styleNoA style of that family, e.g. "Bold".
font_familyNoA family from list_fonts (default: the library's default sans).
line_heightNoLine height: a multiple of the size (default 1.15), px when above 4, or a percentage of the size like "108%" as on text layers.
strike_colorNoThe strike line's colour (default the text colour).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / $defs / NumberOrText
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / line_height / $ref
      Added value: +"#/$defs/NumberOrText"
    • changedInput schema / properties / line_height / description
      Previous value: -"Line height: a multiple of the size (default 1.15), or px when above 4."New value: +"Line height: a multiple of the size (default 1.15), px when above 4, or a percentage of the size like \"108%\" as on text layers."
    • changedInput schema / properties / line_height / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "string"
      +]
  2. Changed12 schema fields changed
    • addedInput schema / properties / align / description
      Added value: +"Line alignment inside `width`: \"left\" (default), \"center\" or \"right\"."
    • addedInput schema / properties / color / description
      Added value: +"Hex colour of the words (default #111111)."
    • addedInput schema / properties / emphasis / description
      Added value: +"Words to stand out, each with its own colour, style, size, tilt or highlight pill."
    • addedInput schema / properties / font_family / description
      Added value: +"A family from list_fonts (default: the library's default sans)."
    • addedInput schema / properties / font_size / description
      Added value: +"Size of every word that is not emphasised, px."
    • addedInput schema / properties / font_style / description
      Added value: +"A style of that family, e.g. \"Bold\"."
    • addedInput schema / properties / motion / description
      Added value: +"How the words arrive (default fly)."
    • addedInput schema / properties / seed / description
      Added value: +"Varies the scatter and timing; the same seed and text repeat exactly."
    • addedInput schema / properties / text / description
      Added value: +"The phrase; it is split into words at spaces."
    • addedInput schema / properties / width / description
      Added value: +"Widest the block may be, px; words wrap onto new lines past it."
    • changedInput schema / properties / x / description
      Previous value: -"Where the block sits in the parent and how wide it may be, px."New value: +"Left edge of the block in the parent, px."
    • addedInput schema / properties / y / description
      Added value: +"Top edge of the block in the parent, px."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (write, non-destructive, closed-world), the description discloses crucial behaviour: one new group per call, the returned group_id plus box and lines, that it is saved as a new revision which undo reverts, and that a refusal is atomic ('if any part is refused, nothing changes'). This is exactly the mutation/side-effect context an agent needs.

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?

Single dense paragraph, front-loaded with the core action and followed by mechanics and the alternative. Every clause carries information, though the run-on density across emphasis/motion/seed/return/revision/atomicity could be split for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 23-parameter tool with no output schema, the description covers return values (group_id, box, lines), atomicity, undo behaviour, and the routing to a sibling. Together with 96% schema coverage, an agent has everything needed to invoke it correctly.

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 96%, so the baseline is 3, but the description adds real semantic weight the schema alone doesn't: seed makes results vary by phrase yet repeat exactly, `stagger` is the gap between words, `exit_at` sends words back out, and motion options are characterised narratively. It stops short of explaining every one of the 23 parameters, but the important ones gain meaning.

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 gives a specific verb and resource — adding a phrase as kinetic type — and immediately specifies the layout model (words placed one by one by the real text engine, wrapping at `width`, shared baseline), the emphasis and motion capabilities, and the seed behaviour. It is unmistakably distinct from a generic animate call.

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

Usage Guidelines5/5

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

It explicitly routes the agent: 'Use it for animated headlines; for a plain typewriter or word reveal on an existing text layer use animate text_reveal.' Both the when-to-use and the named alternative with its selecting condition are present.

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.

Resources