Skip to main content
Glama
Geoffrey-Fang

Draw.io MCP Server

layer_management

Organize diagrams by managing layers and groups: create, delete, move, list, toggle visibility, and reorder.

Instructions

管理图表的图层和分组

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes图层操作类型
layer_idNo图层ID
diagram_idYes图表ID
layer_nameNo图层名称
element_idsNo要操作的元素ID列表
layer_orderNo图层顺序列表(用于reorder_layers)
layer_propertiesNo图层属性
Behavior1/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits. It merely says 'manage' without mentioning side effects like deletion, visibility changes, or reordering impact. It doesn't state whether actions are destructive, require permissions, or what the return values look like. This is a severe gap for a tool with actions like delete_layer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single vague sentence that underspecifies the tool. For a tool with 7 parameters and 6 distinct actions, it should offer more structured detail. It's not concise; it's just incomplete.

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

Completeness1/5

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

Given the tool's complexity (multiple action types, nested layer_properties, no output schema), the description is far from complete. It doesn't enumerate actions, explain what each action does, or describe any output or error behavior. The description fails to provide a complete picture even with a rich schema.

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?

The schema has 100% description coverage for all parameters, so the baseline is 3. The description adds no additional parameter meaning beyond what the schema already provides. It doesn't explain the relationship between action and required parameters, but the schema's per-field descriptions are sufficient.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says 'manage chart layers and groups,' which is vague and does not specify the actual operations (create, delete, move, reorder, visibility). It also mentions 'groups' but the schema has no group-related parameters or actions, making the purpose somewhat misleading. Sibling tools don't cover layers, so some differentiation exists, but the verb 'manage' is too generic.

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?

No guidance is provided on when to use this tool vs alternatives. There are no usage scenarios, prerequisites, or exclusions. The sibling tools include similar management operations, but the description doesn't distinguish when layer_management should be preferred.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Geoffrey-Fang/drawio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server