Skip to main content
Glama
U-C4N
by U-C4N

Styles: Create Multileader Style

mleaderstyle_create

Creates an AutoCAD multileader style from a preset, applying optional overrides for arrow size, landing gap, text style, and height. Validates inputs before writing.

Instructions

Create a multileader style: preset values first, then overrides.

Headless it lands on doc.mleader_styles; live it is added through the ACAD_MLEADERSTYLE dictionary (AddObject(name, "AcDbMLeaderStyle")) and the object's properties are written. Refuses, before any write: an unknown preset; an override key outside the four; arrow_size / text_height <= 0, landing_gap < 0; a name that exists; a text_style that is neither present nor a bundled preset (ISOCP, ISOCPEUR, ARIAL, ROMANS — those are created on both engines, textstyle_created; live, a preset whose font file the seat lacks is refused, nothing written).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNew multileader style name
presetYesiso (2.5 mm arrow, 1.0 landing, ISOCP 2.5) | ansi (3.0, 1.5, ROMANS 3.0)
overridesNoarrow_size | landing_gap | text_style | text_height on top of the preset

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.1/5.0
Behavior5/5

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

With only readOnlyHint=false provided, the description carries the full behavioral burden and does so thoroughly: it explains headless versus live storage, the ACAD_MLEADERSTYLE dictionary interaction, property writing, and the complete set of refusal conditions. It also notes that bundled text styles are created and that live font-file failures leave nothing written, which is unusually rich mutation transparency.

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 front-loaded with the core purpose and then moves to engine behavior and validation. It is dense but largely free of filler; implementation details like AddObject(name, "AcDbMLeaderStyle") are more technical than an agent strictly needs, but they support the behavioral explanation.

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?

Given a 3-parameter mutation tool with full schema coverage and an output schema, the description supplies the missing behavioral context: write mode, persistence path, side effects on text styles, and detailed rejection rules. Nothing essential for correct invocation appears to be missing.

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 100%, so the baseline is 3, but the description adds meaningful semantic constraints beyond the schema: the four allowed override keys, positive-value requirements for arrow_size, text_height, and landing_gap, name-existence refusal, and valid text_style sources including bundled presets. It does not document each parameter exhaustively, but it substantially augments the schema.

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 opens with a specific verb and resource: 'Create a multileader style', and clarifies the order of preset values versus overrides. It does not explicitly distinguish itself from siblings such as mleaderstyle_list or leader_create_mleader, so it falls short of the 5-level sibling differentiation.

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 by the create-style wording and the preset-then-overrides workflow, but the description never says when to choose this tool over alternatives like mleaderstyle_list or when creating an mleader entity. The refusal conditions add operational context but are not usage guidance.

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