Skip to main content
Glama

Style elements

style_elements

Sets fill, stroke, and label formatting on BPMN shapes and connections, changing only specified fields and returning each element's resulting style.

Instructions

Sets the colors and text formatting of shapes and connections, like the editor's Shape and Text panels. Each field is optional: only the fields given change. An empty string removes that setting. Colors are hexadecimal, for example #1E88E5. A connection only has a stroke. For a dark fill, set textColor to "auto" (or #FFFFFF) so the label stays readable. reset: true removes every color and text formatting of the element first. Returns the resulting style of each element. The user can undo it in one step.

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": {
      "elements": "<elements>"
    },
    "name": "style_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations to lean on, the description carries the full burden and does so well: it discloses partial-update semantics ('only the fields given change'), removal via empty string, reset-first ordering, connection-specific constraint ('only has a stroke'), readability handling for textColor 'auto', that resulting style is returned, and that the change is undoable in one step.

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?

Front-loads the action and resource, then proceeds in short functional sentences covering optionality, color format, connection caveat, readability tip, reset, return value, and undo. No sentence is filler.

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?

No output schema exists, yet the description states what is returned ('the resulting style of each element'), and reversibility is covered. For a single-parameter bulk mutation tool, an agent has everything needed to call it safely and 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?

Reported schema coverage is 0% at the top level, so the description must compensate, and it adds genuine cross-field meaning the nested schema does not: empty string as reset-to-default, reset applied before other fields, connections accepting stroke only, and textColor 'auto' resolving to black or white by contrast. It leaves individual flags like bold/italic/underline and the id reference to the schema.

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?

States a specific verb ('Sets') plus resource ('colors and text formatting of shapes and connections') and anchors it to familiar editor concepts ('like the editor's Shape and Text panels'). This clearly separates it from siblings such as update_elements, remove_elements, or add_shapes.

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?

Implied usage is clear from the styling semantics and the Shape/Text panel analogy, but it never states when to pick this over update_elements or when not to use it. Guidance is adequate-by-inference rather than explicit.

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