Skip to main content
Glama

Add vector graphic

add_vector_graphic

PROJECT-SCOPED: this call acts only on the explicit project_id and returns the project identity with its result. Add a renderer-native VECTOR graphic over a PROGRAM-time window. Kinds: rectangle (panel/highlight), ellipse, line (underline or connector), arrow, ring (point at a real visible subject/UI target), progress (a truthful completion indicator). x/y are frame-fraction centres; width/height are frame fractions. color/stroke_color/background_color are #RRGGBB; stroke_width is a fraction of the short frame edge; rounding is 0-0.5 of the shape's short side; progress value is 0-1. motion uses the same LOCAL x/y/scale/rotation/opacity keyframes as designed text. These are compositional primitives, not decoration quotas: use a panel to support hierarchy, a line to connect, and arrows/rings only when the frame contains the thing they identify. Preview the whole path before accepting it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
endYes
kindYes
colorNo
startYes
valueNo
widthNo
heightNo
motionNoElement-local motion curves. t is seconds from this text's own start; x/y are frame fractions, scale is relative, rotation is degrees, opacity is 0..1.
opacityNo
roundingNo
project_idYesRequired immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess.
motion_motifNoActive Blueprint motion motif id this event executes; never 'hold'.
stroke_colorNo
stroke_widthNo
background_colorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations are all false, so the description carries the full burden. It discloses that the call is project-scoped, returns the project identity, uses program-time windows, and advises previewing the whole path before accepting. This gives the agent a clear sense of side effects and scope, though it doesn't state whether it replaces or adds to existing graphics or detail error conditions.

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?

The description is a single dense paragraph, but every sentence adds value: scope, action, kinds, coordinate system, formatting rules, motion, and usage philosophy. It is front-loaded with the project-scoping caveat and avoids filler. Slightly long but efficient for the parameter complexity.

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?

Given 17 parameters, nested motion objects, and no output schema, the description covers most parameter semantics and usage context. It lacks explicit units for start/end (seconds vs frames) and does not explain motion_motif or the top-level opacity (though motion includes it). These are minor gaps given the richness of the rest, so it is nearly complete.

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?

With schema coverage at only 18%, the description compensates well: it explains x/y as frame-fraction centres, width/height as fractions, color formats (#RRGGBB), stroke_width as a fraction of the short edge, rounding as 0-0.5 of the short side, and progress value as 0-1. It also explains motion uses the same keyframe structure as designed text. It does not explicitly describe start/end units or the motion_motif parameter, but most critical semantics are covered.

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 clearly states it adds a renderer-native VECTOR graphic over a program-time window, enumerates the supported kinds (rectangle, ellipse, line, arrow, ring, progress) and distinguishes them by purpose. This is a specific verb+resource with enough detail to separate it from sibling add_* tools like add_text or add_overlay.

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

Usage Guidelines4/5

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

It provides explicit guidance on when to use each shape ('use a panel to support hierarchy, a line to connect, and arrows/rings only when the frame contains the thing they identify') and notes the project-scoped nature. However, it does not explicitly name alternatives or state when not to use this tool (e.g., versus set_vector_graphic), so the exclusion context is only implicit.

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.