Skip to main content
Glama

MCP-BPMN 服务器

一个用于经过测试的 BPMN 2.0 创作子集的模型上下文协议(MCP)服务器,包括 Mermaid 转换、本地持久化、布局、验证以及 XML 或 SVG 导出。

🎯 概述

MCP-BPMN 为 AI 助手提供有状态接口,使其能够一次处理一个业务流程图表。它为下列构造创作格式良好的 BPMN 2.0 XML;它不是完整的 BPMN 2.0 编辑器、执行引擎或部署客户端。可移植的 BPMN 核心是默认的创作契约,并带有可选的类型化 Camunda 7 配置文件,详见 ADR 0001。

主要特性

  • 聚焦的 BPMN 创作:支持的事件、活动、网关、数据对象、注释、泳道、顶层泳道、顺序流和关联

  • Mermaid 转换:从文档化的流程图子集引导图表

  • 水平自动布局:确定性的流程和协作放置

  • 本地持久化:在配置的目录中原子保存并重新打开图表

  • XML 和 SVG 导出:XML 在进程内生成;SVG 通过 Puppeteer 和 bpmn-js 渲染

  • 可移植和 Camunda 7 配置文件:默认输出无供应商依赖,显式选择时提供三个类型化的 Camunda 7 用户任务字段

Related MCP server: MCP-BPMN Server

🚀 快速开始

要求

  • Node.js 22.12.0 或更高版本

  • 支持 lockfile 的 npm

  • 用于 export({ format: "svg" }) 的 Chrome 或 Chromium;正常的 Puppeteer 安装会下载兼容的浏览器

XML 创作、验证、布局、持久化和 XML 导出不会启动浏览器。SVG 导出会。如果故意跳过 Puppeteer 浏览器下载,请在启动服务器前将 PUPPETEER_EXECUTABLE_PATH 设置为兼容的 Chrome 或 Chromium 可执行文件。SVG 渲染是无头的,每个服务器实例限制为一次并发渲染,并有二十秒的渲染超时。

从源代码检出运行

git clone https://github.com/oisee/mcp-bpmn.git
cd mcp-bpmn
npm ci
npm run build
npm start

npm run build 在 dist/server/index.js 生成规范的 ESM 可执行文件。服务器使用 stdio,因此在终端中启动时通常看起来空闲,并旨在由 MCP 客户端启动。

配置

对于 Claude Desktop

添加到您的 Claude Desktop 配置文件:

macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mcp-bpmn": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-bpmn/dist/server/index.js"]
    }
  }
}

对于其他 MCP 客户端

使用相同的 ESM 入口点,并带有绝对路径:

node /absolute/path/to/mcp-bpmn/dist/server/index.js

安装打包的发布工件

此仓库目前记录 npm tarball 安装,而不是假设 mcp-bpmn-server 可从公共 npm 注册表获得。发布生产者可以从源代码检出构建规范的仅 CLI 工件:

artifact_dir=$(mktemp -d)
npm pack --pack-destination "$artifact_dir"

将该 tarball 安装到专用的消费者目录中,并运行其打包的可执行文件:

consumer_dir=$(mktemp -d)
npm install --prefix "$consumer_dir" "$artifact_dir"/mcp-bpmn-server-*.tgz
"$consumer_dir/node_modules/.bin/mcp-bpmn-server"

对于 MCP 客户端,使用 $consumer_dir/node_modules/.bin/mcp-bpmn-server 的绝对值作为 command,并使用空的 args 数组。该包是 CLI,不是可导入的 JavaScript 库。

为 Claude Code 和 Codex 安装

从源代码检出,安装程序将当前版本打包到稳定的用户拥有的位置,注册其 MCP 服务器,并为 PATH 上找到的每个受支持客户端安装 bpmn-modeler 技能:

make install
make doctor

默认程序位置是 ~/.local/share/mcp-bpmn,而图表保留在安装目录之外的 ~/mcp-bpmn 中。技能被复制到 Codex 的 ~/.codex/skills/bpmn-modeler 和 Claude Code 的 ~/.claude/skills/bpmn-modeler。安装后重启客户端,以便它们发现新技能和 MCP 服务器。

安装是幂等的:再次运行 make install 仅替换此安装程序拥有的文件和注册。除非显式请求替换(使用 FORCE=1),否则保留现有的第三方注册或技能目录。使用以下命令定位一个客户端、更新现有安装或卸载同时保留图表:

make install-codex
make install-claude
make update
make uninstall

设置 PREFIX 以更改程序位置,设置 MCP_BPMN_DIAGRAMS_PATH 以使用不同的绝对图表目录。通过同时设置 MCP_BPMN_PACKAGE_TARBALL 及其必需的 MCP_BPMN_PACKAGE_SHA256,可以可重复地安装预构建的发布 tarball。运行 ./scripts/install-agent-integrations.sh --help 获取完整接口。安装程序支持 macOS 和 Linux,包括带有 Linux 原生 Node.js 和客户端 CLI 的 WSL。

本地开发 Codex 插件

发布工件也是 Codex 插件。其清单发现规范的 skills/bpmn-modeler 技能,并通过复制到插件缓存中的启动器启动一个 mcp-bpmn stdio 服务器。启动器使用 make install-codex 安装的稳定私有版本;安装后不执行 TypeScript 或依赖检出。

构建发布工件,将此检出添加为临时仓库市场,并安装插件:

npm ci
npm run build
make install-codex
codex plugin marketplace add .
codex plugin list --available
codex plugin add mcp-bpmn@mcp-bpmn-local

安装后启动新的 Codex 对话,以便加载技能和 MCP 工具。捆绑的服务器默认为 writes 批准模式:标记为只读的工具可以自动运行,而图表变更保持可见以供批准。使用以下命令移除开发安装:

codex plugin remove mcp-bpmn@mcp-bpmn-local
codex plugin marketplace remove mcp-bpmn-local

运行隔离的市场、缓存、发现、MCP 启动和移除冒烟测试,而不更改真实的 Codex 配置:

npm run test:codex-plugin

本地开发 Claude Code 插件

发布工件也是 Claude Code 插件。Claude 将规范的 skills/bpmn-modeler/SKILL.md 发现为命名空间的 /mcp-bpmn:bpmn-modeler 技能,并从插件缓存启动内联的 mcp-bpmn 服务器。插件使用 skills/;它不携带旧的 commands/ 副本。

从源代码检出,安装依赖、构建、验证并加载插件以进行一个开发会话:

npm ci
npm run build
claude plugin validate .
claude --plugin-dir .

在 Claude Code 内部,使用 /mcp 确认插件提供的服务器,调用 /mcp-bpmn:bpmn-modeler 检查技能,并在更改清单或 MCP 配置后运行 /reload-plugins。检出包含根 CLAUDE.md 供仓库贡献者使用,因此源验证报告它不是插件上下文;命令仍然成功。打包的插件排除该仅仓库文件,并通过严格验证。

使用以下命令运行完整的本地市场冒烟测试:

npm run test:claude-plugin

该检查使用临时的 Claude 主目录和市场。它安装复制的发布工件,检查 Claude 的组件清单,启动缓存的 MCP 服务器,执行重新加载,然后禁用、启用和移除插件。它不会更改开发者的真实 Claude 配置。

图表永远不会写入 ${CLAUDE_PLUGIN_ROOT}。它们保留在 MCP_BPMN_DIAGRAMS_PATH(如果设置)或默认的 ~/mcp-bpmn 中,因此插件重新加载、更新、禁用和移除不会删除它们。在从手动 Claude MCP 注册切换到插件之前,检查 claude mcp list,如果旧 mcp-bpmn 注册的命令与插件端点不同,则移除它;Claude 仅对解析为相同命令的插件和用户服务器进行去重。

评估代理工作流

规范的机器可读语料库是 evals/bpmn-modeler/cases.json。两个客户端适配器都使用这些确切的提示和语义期望。确定性检查对于正常开发和 CI 是安全的:它验证激活边界、技能元数据、工具名称、客户端对等性以及创建/变更/验证/布局/验证/导出序列,而不调用模型:

npm run test:evaluations

经过身份验证的模型运行是选择加入的。先构建,然后在迭代时选择一个有界案例:

npm run build
npm run eval:codex -- --case direct-process-svg
npm run eval:claude -- --case direct-process-svg

Codex 适配器在临时项目中运行 codex exec,该项目包含规范技能和项目范围的 stdio MCP 配置。Claude 适配器将相同的案例物化为临时插件副本中的原生 claude plugin eval 案例。两者都将 MCP_BPMN_DIAGRAMS_PATH 设置为临时目录,仅将声明的设置夹具复制到那里,并在之后移除目录;它们从不读取、覆盖或删除用户真实存储中的图表。省略 --case 以运行完整语料库。这些命令可能消耗模型配额,并有意从 npm run check 和 CI 中排除。

可选的 CommonJS 捆绑包

CommonJS 捆绑包是单独的源代码检出构建,不由 npm run build 生成,也不包含在规范的 npm tarball 中:

npm run build:bundle
npm run start:bundle

📚 API 参考

有状态上下文管理

MCP-BPMN 使用有状态 API 设计,您一次处理一个图表。所有操作都应用于当前图表上下文,无需 processId 参数。

广告工具矩阵

此 API 参考中的标题枚举了 tools/list 返回的每个工具。可执行文件对等基线是 tests/contracts/engine-contract.test.ts,单元、集成和端到端套件中具有聚焦行为。

每个广告工具还包括标准的 MCP readOnlyHint、destructiveHint、idempotentHint 和 openWorldHint 注解。这些注解描述可观察的服务器行为:创作调用自动保存,替换和删除调用可能销毁现有状态,所有操作都保持在配置的本地图表存储中。MCP 注解是建议性提示,不是授权边界;客户端仍必须应用自己的信任和批准策略。

区域

广告工具

测试范围和边界

上下文创建/导入

new_bpmn、new_from_mermaid、open_bpmn、open_mermaid_file

流程或协作根;文档化的 Mermaid 子集;导入必须适合服务器的规范模型

上下文生命周期

save、save_as、close、current

一个活动图表和文件名;本地原子持久化

创作

add_event、add_activity、add_gateway、add_data_object、add_text_annotation、add_pool、add_lane

下面的显式模式枚举和类型化属性,而不是任意 BPMN 元素或扩展属性

关系

connect、add_association

直接 connect 创作顺序流;Mermaid 子图也可以产生消息流;关联是工件关系

查询/变更

list_elements、get_element、update_element、delete_element

分页查询和文档化的类型化变更字段

导出/质量

export、validate、auto_layout

XML 或浏览器支持的 SVG;分层结构验证;仅水平布局

存储文件

list_diagrams、delete_diagram_file、get_diagrams_path

配置的图表目录内的沙盒访问

创建工具

new_bpmn

创建新的 BPMN 流程或协作图表,并将其设置为当前上下文。

{
  name: "Order Processing",
  type: "process" // or "collaboration" (optional, defaults to "process")
}

new_from_mermaid

Create a new BPMN diagram from Mermaid code and set it as the current context.

{
  name: "My Process",
  mermaidCode: "graph TD\n  A[Start] --> B[Task] --> C[End]"
}

Mermaid 转换有意支持一个聚焦的流程图子集:

Mermaid 构造

BPMN 映射

[Task]

任务(精确标签 Start/Begin 和 End/Stop/Finish 变为事件)

((Event))

当拓扑识别为开始/结束事件时;否则为中间抛出事件

{Decision}

排他网关

[/Subprocess/]

子流程

[[Data]]

独立数据对象引用,链接到底层数据对象

`-->

标签

`

顺序流/消息流显示名称;标签不是条件表达式

subgraph id[Name]

拥有自己流程的参与者;跨子图边变为消息流

当存在任何子图时,每个节点必须恰好属于一个顶级子图。嵌套子图和到数据节点的顺序流连接在 BPMN 导出前被拒绝。样式、点击处理程序、CSS 类和虚线边外观不在 BPMN 中表示;接受的损失性语法会返回转换警告。文本标签和子图名称经过 XML 转义,并通过 BPMN 往返保持不变。

文件操作

open_bpmn

打开现有的 BPMN 文件并将其设置为当前上下文。

{
  filename: "my-process.bpmn"
}

open_mermaid_file

打开并转换 Mermaid 文件为 BPMN,将其设置为当前上下文。

{
  filename: "my-flowchart.mmd"
}

save

将当前图表原子化保存到其活动文件。新建和打开的图表已有活动文件名,成功的变更会自动保存到同一文件。

{}

save_as

使用新文件名原子化保存当前图表,并将该文件名设为活动。后续变更仅更新新文件;原文件保持不变的快照。

{
  filename: "my-process.bpmn"
}

close

关闭当前图表并清除上下文。

{}

current

获取当前图表的信息。

{}

元素操作工具

add_event

向当前图表添加事件(开始、结束、中间、边界)。

{
  eventType: "start", // start, end, intermediate-throw, intermediate-catch, boundary
  name: "Order Received",
  eventDefinition: "message", // optional; only BPMN-legal event kind/definition pairs are accepted
  eventDefinitionPayload: {
    reference: { name: "Order received" } // root ID is generated when omitted
  },
  position: { x: 100, y: 200 } // optional
}

定时器定义需要 timer: { type: "timeDate" | "timeDuration" | "timeCycle", expression, language? };条件定义需要 condition: { expression, language? }。错误和升级引用还可以包含 code。补偿抛出可以包含 activityRef 和 waitForCompletion;补偿边界事件是非中断的。

add_activity

向当前图表添加活动(任务、子流程)。

{
  activityType: "userTask", // task, userTask, serviceTask, scriptTask, etc.
  name: "Review Order",
  position: { x: 250, y: 200 }, // optional
  properties: { // optional; Camunda 7 profile only on userTask
    assignee: "reviewer",
    candidateGroups: ["operations", "approvers"],
    dueDate: "${dueDate}"
  }
}

新建的 BPMN 和 Mermaid 文档接受 extensionProfile: "portable" | "camunda7";默认为 portable。Portable 模式拒绝三个供应商字段,且不输出供应商命名空间。Camunda 更新对其中任一字段接受 null 以移除相应的 XML 属性。候选组条目不能包含逗号。导入的 BPMN 会检测实际的 Camunda 命名空间使用情况,并透明地保留其他无警告的扩展。

调用活动序列化为 bpmn:callActivity。其可选的 properties.calledElement 是标识可调用元素的词法 BPMN QName;它不需要与当前图表中的流程 ID 匹配。

活动可以使用标准 BPMN 多实例循环特性。将 isSequential 设为 false 表示并行实例,设为 true 表示顺序实例:

{
  activityType: "serviceTask",
  name: "Process Batch",
  properties: {
    multiInstance: {
      isSequential: false,
      loopCardinality: {
        body: "requestedInstanceCount",
        language: "urn:example:expression-language"
      },
      completionCondition: {
        body: "completedInstanceCount >= requiredInstanceCount",
        language: "urn:example:expression-language"
      },
      loopDataInputRef: "DataObjectReference_Input",  // optional ItemAwareElement ID
      loopDataOutputRef: "DataObjectReference_Output" // optional ItemAwareElement ID
    }
  }
}

服务器原样保留表达式体,并将其序列化为 BPMN FormalExpression 值。它不解析或求值这些表达式,因此请选择将执行导出图表的 BPMN 引擎所支持的语言/配置文件。循环数据引用必须标识现有的 BPMN ItemAwareElement 实例;portable 模式不会输出供应商特定的 collection 属性。portable BPMN 方言不会输出供应商特定的绑定或版本属性。

{
  activityType: "callActivity",
  name: "Invoke fulfillment",
  properties: { calledElement: "FulfillmentProcess" }
}

add_gateway

向当前图表添加用于分支逻辑的网关。

{
  gatewayType: "exclusive", // exclusive, parallel, inclusive, eventBased, complex
  name: "Payment Check",
  position: { x: 400, y: 200 } // optional
}

add_data_object

添加可见的 bpmn:dataObjectReference 及其关联的、不渲染的 bpmn:dataObject。集合状态属于底层对象。可选的 itemSubjectRef 必须标识现有的 bpmn:itemDefinition,例如从导入图表中加载的项。

{
  name: "Order records",
  position: { x: 400, y: 320 }, // optional reference position
  isCollection: true, // optional, defaults to false
  itemSubjectRef: "ItemDefinition_Order" // optional existing definition ID
}

数据输入/输出关联是活动拥有的 BPMN 构造,不由 add_association 创建,后者仍是通用工件关联。

add_text_annotation

添加 BPMN 文本注释。文本被原样保留,包括换行符和 XML 元字符。textFormat 默认为 BPMN 的 text/plain;位置和大小默认为引擎的注释几何。提供 associatedElementId 还会创建一条从注释到该元素的独立、无向 BPMN 关联。

{
  text: "Review the exception path\nbefore approval",
  textFormat: "text/markdown", // optional
  position: { x: 400, y: 320 }, // optional
  size: { width: 220, height: 80 }, // optional
  associatedElementId: "UserTask_1" // optional
}

connect

在当前图表中用顺序流连接两个元素。

{
  sourceId: "ExclusiveGateway_1",
  targetId: "UserTask_1",
  label: "Start Flow", // optional
  condition: "amount > 1000", // optional, for conditional sequence flows
  conditionLanguage: "FEEL", // optional
  conditionType: "bpmn:FormalExpression", // optional
  isDefault: false // optional; default flows cannot have conditions
}

活动和排他、包含或复杂网关支持条件和默认流。默认流不能同时具有条件。

add_association

在兼容的流程或协作范围内,在两个 BaseElement 之间添加 BPMN 关联工件。这与顺序流和消息流不同。associationDirection 默认为 BPMN 的 None 值。

{
  sourceId: "TextAnnotation_1",
  targetId: "UserTask_1",
  associationDirection: "One" // None, One, or Both
}

add_pool

向协作图表添加泳池(参与者)。

{
  name: "Customer",
  position: { x: 100, y: 100 }, // optional
  size: { width: 600, height: 250 }, // optional
  blackBox: false // optional; true creates a participant without an owned process
}

add_lane

向白盒泳池添加泳道,并将直接流程节点分配给它。已分配给其他泳道的节点将移动到新泳道。

{
  poolId: "Participant_1",
  name: "Sales Department",
  flowNodeIds: ["StartEvent_1", "UserTask_1"],
  position: "bottom" // optional
}

查询与操作工具

list_elements

列出当前图表中按 ID 排序的稳定元素和关联工件页面。使用 elementType: "bpmn:Association" 过滤,仅列出关联。

{
  elementType: "bpmn:Task", // optional filter
  limit: 100, // optional, defaults to 100; maximum 500
  offset: 0 // optional, defaults to 0
}

响应为 { count, returnedCount, offset, limit, hasMore, elements }。兼容性说明:分页封装取代了早期的裸数组响应;针对该契约编写的客户端现在必须读取 elements。现有元素字段保留其含义;可能还会出现额外的元数据字段和泳道条目。

get_element

获取特定元素或关联的详细信息。

{
  elementId: "UserTask_1"
}

update_element

更新元素属性。

{
  elementId: "UserTask_1",
  name: "Updated Task Name",
  properties: { assignee: "john.doe", candidateGroups: ["reviewers"] },
  defaultFlow: "Flow_2" // outgoing flow ID, or null to clear
}

delete_element

删除元素及其关联连接。传入关联 ID 仅删除该关联,其端点保持不变;删除端点(包括文本注释)会级联删除其关联。

{
  elementId: "Task_1"
}

实用工具

export

将当前图表导出为 BPMN 2.0 XML 或渲染的 SVG。

{
  format: "xml", // "xml" or "svg"; defaults to "xml"
  formatted: true // optional; applies to XML and defaults to true
}

XML 导出返回文本,不启动浏览器。SVG 导出通过 Puppeteer 启动无头浏览器,使用 bpmn-js 渲染,清理结果,并返回嵌入的 image/svg+xml 资源。它需要可用的 Chrome/Chromium 可执行文件,并保留 License 中所述的可见 bpmn.io 署名。

validate

验证当前图表结构。

{
  level: "full" // "syntax", "semantic", or "full"; defaults to "full"
}

验证级别是累积的。syntax 解析 XML 并解析引用;semantic 添加感知所有者的事件、流、子流程、泳道和协作规则;full 还添加可执行配置文件的开始/结束/连通性指导。

auto_layout

应用自动布局以定位当前图表中的元素。

{
  algorithm: "horizontal" // currently only horizontal is supported
}

布局在可终止的子进程中运行,默认预算为五秒。基于基准的预检最多接受 2,000 个元素、2,000 条连接和每个元素 10 条连接;超过任何限制的输入在布局前被拒绝。对于协作,每个参与者流程独立排序,因此消息流不会改变其顺序流顺序。自动布局会替换手动节点和容器坐标,但请求/导入的参与者和泳道尺寸仍为下限。泳池随后无重叠堆叠;泳道和所属节点保持包含关系,消息流仅在最终泳池放置后路由。断开连接的节点在其所属流程中确定性打包,嵌套子流程保留语义包含关系,黑盒参与者保持其请求的最小尺寸,不生成虚构的流程内容。

文件管理工具

list_diagrams

列出按文件名排序的已保存 BPMN 图表的稳定页面。

{
  limit: 100, // optional, defaults to 100; maximum 500
  offset: 0 // optional, defaults to 0
}

现有的 { count, diagrams, path } 响应字段仍然可用;returnedCount、offset、limit 和 hasMore 描述所选页面。仅读取所选页面上的文件以获取嵌入的 BPMN 元数据,默认情况下聚合元数据读取上限为 5 MiB。

delete_diagram_file

删除已保存的图表文件。

{
  filename: "old-process.bpmn"
}

get_diagrams_path

获取图表的存储路径。

{}

🔄 上下文管理

MCP-BPMN 服务器采用有状态设计,一次处理一个图表:

  1. 创建或打开:先创建新图表(new_bpmn、new_from_mermaid)或打开现有图表(open_bpmn、open_mermaid_file)

  2. 操作:所有操作(add_event、connect 等)都应用于当前图表

  3. 保存:使用 save 或 save_as 保存工作

  4. 关闭:使用 close 关闭当前图表

如果尝试在没有当前上下文的情况下执行操作,将收到有用的错误消息:

No current context. Please create a diagram first with:
  - new_bpmn(name) to create a new BPMN diagram
  - new_from_mermaid(name, mermaidCode) to convert from Mermaid
  - open_bpmn(filename) to open an existing BPMN file
  - open_mermaid_file(filename) to convert a Mermaid file

💡 示例

示例 1:从头创建审批流程

// Step 1: Create a new process (sets it as current context)
await new_bpmn({ name: "Approval Workflow" });

// Step 2: Add elements (all operations apply to current diagram)
await add_event({ eventType: "start", name: "Request Received" });
await add_activity({ activityType: "userTask", name: "Review Request" });
await add_gateway({ gatewayType: "exclusive", name: "Approved?" });
await add_activity({ activityType: "serviceTask", name: "Process Approval" });
await add_activity({ activityType: "userTask", name: "Handle Rejection" });
await add_event({ eventType: "end", name: "Complete" });

// Step 3: Connect elements
await connect({ sourceId: "StartEvent_1", targetId: "UserTask_1" });
await connect({ sourceId: "UserTask_1", targetId: "ExclusiveGateway_1" });
await connect({ sourceId: "ExclusiveGateway_1", targetId: "ServiceTask_1", label: "Yes" });
await connect({ sourceId: "ExclusiveGateway_1", targetId: "UserTask_2", label: "No" });
await connect({ sourceId: "ServiceTask_1", targetId: "EndEvent_1" });
await connect({ sourceId: "UserTask_2", targetId: "EndEvent_1" });

// Step 4: Apply auto-layout for proper positioning
await auto_layout();

// Step 5: Save and export the diagram
await save_as({ filename: "approval-workflow.bpmn" });
const xml = await export();

示例 2:从 Mermaid 引导(推荐以降低 Token 使用量)

// Step 1: Create from Mermaid syntax (much more concise!)
await new_from_mermaid({ 
  name: "Approval Workflow",
  extensionProfile: "camunda7",
  mermaidCode: `
    graph TD
      A((Request Received)) --> B[Review Request]
      B --> C{Approved?}
      C -->|Yes| D[Process Approval]
      C -->|No| E[Handle Rejection]
      D --> F((Complete))
      E --> F
  `
});

// Step 2: Apply auto-layout (Mermaid conversion includes basic layout)
await auto_layout();

// Step 3: Make additional edits if needed
await update_element({ 
  elementId: "UserTask_1", 
  properties: { assignee: "reviewer" }
});

// Step 4: Save and export
await save_as({ filename: "approval-workflow.bpmn" });
const xml = await export();

示例 3:处理多个图表

// Create first diagram
await new_bpmn({ name: "Process A" });
await add_event({ eventType: "start" });
await add_activity({ activityType: "task", name: "Task A" });
await save_as({ filename: "process-a.bpmn" });

// Create second diagram (automatically closes the first)
await new_bpmn({ name: "Process B" });
await add_event({ eventType: "start" });
await add_activity({ activityType: "task", name: "Task B" });
await save_as({ filename: "process-b.bpmn" });

// Go back to first diagram
await open_bpmn({ filename: "process-a.bpmn" });
await add_event({ eventType: "end" });
await save();

// Check current diagram info
const info = await current();
console.log(info); // Shows: { name: "Process A", filename: "process-a.bpmn", ... }

🗂️ 文件存储

BPMN 图表自动保存到本地文件系统:

  • Unix/Linux/Mac:~/mcp-bpmn/

  • Windows:%USERPROFILE%\mcp-bpmn\

通过环境变量自定义路径:

export MCP_BPMN_DIAGRAMS_PATH=/custom/path

资源限制可通过 MCP_BPMN_MAX_IMPORT_BYTES、MCP_BPMN_MAX_MERMAID_BYTES、MCP_BPMN_MAX_LAYOUT_ELEMENTS、MCP_BPMN_MAX_LAYOUT_CONNECTIONS、MCP_BPMN_MAX_LAYOUT_DENSITY、MCP_BPMN_MAX_LAYOUT_BYTES、MCP_BPMN_MAX_CONCURRENT_LAYOUTS、MCP_BPMN_MAX_LISTING_ITEMS、MCP_BPMN_MAX_LISTING_METADATA_BYTES 和 MCP_BPMN_LAYOUT_TIMEOUT_MS 调整。优雅关闭截止时间可通过 MCP_BPMN_SHUTDOWN_TIMEOUT_MS 覆盖。默认值为每个导入/布局输入和每个列表元数据页面 5 MiB、2,000 个布局元素/连接、密度 10、两个并发布局子进程、10,000 个列表候选和 5,000 毫秒。布局默认值来自本地稀疏/密集基准:2,000/1,999 约 1.4 秒完成,25/300 约 4.8 秒,26/325 超过五秒。

在 SIGINT、SIGTERM 或 stdin EOF 时,服务器停止接受工具调用,并允许已接受的操作及其原子持久化完成,然后关闭渲染器/布局子进程和 stdio 传输。优雅关闭有 15 秒的硬性截止时间;超过该时间将强制以非零状态退出。

新图表的文件名以 {ProcessId}_{ProcessName}.bpmn 开头。每个图表只有一个活动文件名:打开操作会采用打开的文件名,save_as 会在新文件成功写入后切换文件名。添加、更新、删除、连接和布局操作会序列化并原子化自动保存活动文件;序列化或写入失败时,内存和磁盘都会保持在最后一次成功状态。

🏗️ 架构

技术栈

  • TypeScript - 类型安全的开发

  • Node.js - 运行时环境

  • MCP SDK - Model Context Protocol 实现

  • Jest - 测试框架

核心组件

  • SimpleBpmnEngine - 规范的 BPMN 文档变更、持久化和 XML 导出

  • BpmnSvgRenderer - 隔离的、基于浏览器的 bpmn-js SVG 渲染

  • DiagramContext - 当前图表的有状态上下文管理

  • BpmnAutoLayoutV2Adapter - BPMN 自动布局集成

  • BpmnRequestHandler - MCP 请求处理

  • MermaidConverter - Mermaid 到 BPMN 的转换

  • TypeMappings - BPMN 元素类型转换

  • IdGenerator - 一致的 ID 生成

项目结构

mcp-bpmn/
├── src/
│   ├── core/           # Core BPMN engine
│   ├── server/         # MCP server implementation
│   ├── utils/          # Utilities (layout, ID generation)
│   ├── types/          # TypeScript type definitions
│   └── config/         # Configuration
├── tests/
│   ├── unit/          # Unit tests
│   ├── integration/   # Integration tests
│   └── e2e/           # End-to-end tests
├── dist/              # Compiled output
└── docs/              # Documentation

🧪 开发

可用脚本

npm run build        # Build TypeScript
npm run build:bundle # Build CommonJS bundle
npm run build:watch  # Build with watch mode
npm run check        # Complete clean contributor/CI quality gate
npm test            # Run source-level tests (no build output required)
npm run test:all    # Clean, build, and run every test including e2e
npm run test:unit   # Run unit tests only
npm run test:integration # Run integration tests only
npm run test:e2e    # Run end-to-end tests
npm run lint        # Run ESLint
npm run dev         # Development mode with hot reload
npm start           # Start the MCP server

测试

项目包含全面的测试覆盖。源码级命令不读取 dist/,因此旧构建不会影响其结果:

  • 单元测试:核心功能测试

  • 集成测试:处理器和工具测试

  • 端到端测试:完整的 MCP 协议测试

使用以下命令运行测试:

npm test                    # Source-level tests
npm run test:all            # Clean build plus all tests
npm run check               # Complete clean contributor/CI quality gate
npm run test:coverage       # Source-level tests with coverage
npm run test:watch          # Source-level tests in watch mode

📈 性能

规范发布产物于 2026-08-22 使用 Node 25.9.0 和 npm 11.12.1 测量,使用:

npm pack --dry-run --json

该命令报告压缩后约为 195 kB,解压后为 1104270 字节。这些数字描述的是 npm 压缩包,而非已安装的服务器:该压缩包不捆绑任何生产依赖,而安装时会解析 package.json 中九个直接运行时依赖及其传递依赖。Puppeteer 管理的 Chrome 下载也不在压缩包测量范围内。请对当前产物重新运行该命令,而不是将此过时快照视为永久的大小保证。

可选的 CommonJS 捆绑包不是发布产物,不承担任何大小声明。布局输入限制以及用于选择其默认值的过时基准观测记录在文件存储下。

🐛 已知限制

  • 创作 API 是聚焦的 BPMN 2.0 子集,而非完整的 BPMN 2.0 覆盖。不支持的导入结构可能被拒绝,而非无损编辑。

  • connect 不提供直接的消息流创作。Mermaid 协作子集可以在子图之间创建消息流。

  • add_lane 在白盒泳道池中创作顶层泳道;它无法扩展导入的嵌套泳道层级。

  • 自动布局仅支持水平布局。垂直和径向算法不提供。

  • 验证提供文档所述的语法、语义和完整指导级别;它不是 BPMN XSD 认证,也不是针对部署引擎的验证。

  • Camunda 7 创作配置文件仅限于用户任务上的 assignee、candidateGroups 和 dueDate。它不是通用的 Camunda 建模器覆盖。

  • SVG 导出需要通过 Puppeteer 使用 Chrome/Chromium,并且每个服务器实例只允许一个并发渲染。XML 工作流保持无浏览器。

  • 服务器不执行、模拟或部署 BPMN 流程。

🚧 路线图

计划的工作和已知的缺口作为 Beads 问题跟踪,而非在本发布文档中承诺为已实现的功能。

🤝 贡献

欢迎贡献!请:

  1. Fork 仓库

  2. 创建功能分支(git checkout -b feature/amazing-feature)

  3. 运行完整的质量门禁(npm run check)

  4. 提交更改(git commit -m 'Add amazing feature')

  5. 推送到分支(git push origin feature/amazing-feature)

  6. 打开 Pull Request

代码风格

  • 严格模式的 TypeScript

  • 提供 ESLint 配置

  • 使用 Jest 进行测试

  • 常规提交

📝 许可证

MIT 许可证 - 详情请参阅 LICENSE 文件。

SVG 导出使用 bpmn-js@17.11.1。每个导出的 SVG 都包含一个可见的、链接到 https://bpmn.io 的"Powered by bpmn.io"徽标;客户端不应裁剪、覆盖或移除该署名。有关该依赖的许可条款,请参阅 THIRD_PARTY_NOTICES.md,有关发布决策,请参阅 ADR 0002。

📞 支持

  • 问题:GitHub Issues

  • 文档:详细指南请参阅 /docs 文件夹

🙏 致谢

Available Tools

27 tools
add_activityC

Add an activity to the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesName of the activity
ownerIdNoOwning process ID (required when adding to a collaboration)
scopeIdNoContaining process or subprocess ID (defaults to ownerId)
positionNoPosition of the activity (optional)
propertiesNoTyped activity properties. multiInstance is portable BPMN and its expression bodies are opaque text; assignee, candidateGroups, and dueDate are Camunda 7 user-task fields and require extensionProfile camunda7. Arbitrary qualified names and raw XML are rejected.
activityTypeYesType of activity

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
elementIdYesStable generated or existing BPMN ID
elementTypeYes

TDQS

C2.2/5.0
Behavior1/5

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

Annotations provide no substantive behavior (readOnlyHint=false, destructiveHint=false, etc.). The description does not disclose side effects, return values, or whether the diagram must be open. For a tool that mutates state, this is a major gap.

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 one short phrase, but it adds little beyond the tool name. For a tool with six parameters and nested objects, this is under-specification rather than appropriate conciseness. Important context is missing.

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 complex schema (activityType enum, properties, multiInstance, position), the description is woefully incomplete. It explains nothing about activity types, property usage, or how this fits into the diagram editing workflow. An agent gets no contextual help beyond the 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?

Schema coverage is 100%—every parameter has a description in the input schema. The tool description adds nothing about parameters, so the baseline of 3 applies. No additional semantic value is provided beyond 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 states a clear verb-resource pair: 'Add an activity to the current diagram'. It is specific enough to distinguish from siblings like add_event or add_gateway, though it relies partly on the tool name. It is not a tautology.

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

Usage Guidelines1/5

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

No guidance is given on when to use this tool instead of alternatives such as add_event or add_gateway. There are no prerequisites, exclusions, or context clues beyond the bare action. An agent must infer usage solely from the name and schema.

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

add_associationC

Add a BPMN association artifact between two compatible BaseElements

ParametersJSON Schema
NameRequiredDescriptionDefault
sourceIdYesID of the source BaseElement
targetIdYesID of the target BaseElement
associationDirectionNoArrow direction for the association; BPMN defaults to NoneNone

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
sourceIdYesStable generated or existing BPMN ID
targetIdYesStable generated or existing BPMN ID
associationIdYesStable generated or existing BPMN ID
associationDirectionYes

TDQS

C2.9/5.0
Behavior2/5

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

Annotations provide no hints (all false), so the description carries the full burden. It states the action ('Add') but does not disclose side effects, such as whether both elements must exist, what happens if they are incompatible, or whether the association is reversible. The description mentions 'compatible' but never explains what that entails, leaving the agent to guess.

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?

A single, front-loaded sentence with no redundancy. 'Add a BPMN association artifact' immediately conveys the purpose, and the scope is appended succinctly. Every word earns its place.

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

Completeness2/5

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

Given the tool's mutation nature (readOnlyHint=false) and lack of annotation support, the description is too sparse. The critical notion of 'compatible' is undefined, and there is no mention of where associations fit in the BPMN model or how they differ from other connections. An agent without deep BPMN domain knowledge would struggle to use this tool correctly.

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?

Schema coverage is 100%, so the baseline is 3. The description adds no additional parameter context beyond what the schema already provides ('ID of the source BaseElement', etc.). The direction parameter is documented in the schema with its default, so the description does not need to repeat it.

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 clearly states a specific verb ('Add') and resource ('BPMN association artifact') with a scope ('between two compatible BaseElements'). It distinguishes itself from other add_* tools by naming the association artifact. However, the term 'compatible' is ambiguous and does not specify what types of elements are compatible, slightly diminishing clarity.

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 given on when to use this tool versus alternatives like 'connect' (which likely handles sequence/message flows) or other add_* tools. The description does not mention exclusions, prerequisites, or when an association is appropriate. An agent must infer context from the sibling names, which is insufficient.

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

add_data_objectB

Add a BPMN data object reference and its non-rendered backing data object

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesName of the data object and its visible reference
ownerIdNoOwning process ID (required when adding to a collaboration with multiple pools)
scopeIdNoContaining process or subprocess ID (defaults to ownerId)
positionNoPosition of the visible data object reference
isCollectionNoWhether the backing bpmn:DataObject represents a collection
itemSubjectRefNoID of an existing bpmn:ItemDefinition referenced by the backing data object

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
referenceIdYesStable generated or existing BPMN ID
dataObjectIdYesStable generated or existing BPMN ID

TDQS

B3.4/5.0
Behavior3/5

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

Annotations are all false (not read-only, not idempotent, not destructive) but provide no positive behavioral signals. The description adds the key fact that it creates both a visible reference and a non-rendered backing object, which is useful. However, it does not disclose side effects, whether it can overwrite, or any other behavioral traits beyond that.

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, compact sentence that front-loads the core action and the dual-artifact nature. It is appropriately sized with no wasted words, though it could add a brief usage note without becoming verbose.

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

Completeness3/5

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

Given the tool has 6 parameters, a nested object, and an output schema, the description is adequate but not rich. It explains the core purpose but omits guidance on collaboration edge cases (e.g., when ownerId is needed) or any preconditions. The schema and output schema compensate partly, but the description could do more.

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?

Schema description coverage is 100%, so the baseline is 3. The description does not add parameter-level meaning beyond the schema, but the dual-artifact framing helps understand how name/position relate. Since the schema already documents every parameter, no further compensation is needed.

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 states a specific verb ('Add') and a specific resource ('BPMN data object reference and its non-rendered backing data object'), clearly identifying what the tool does. It distinguishes this from other add_* tools by focusing on data objects, though it does not explicitly name alternatives.

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?

The description implies usage for adding data objects but does not provide explicit when-to-use or when-not-to-use guidance relative to sibling tools like add_event, add_activity, or add_gateway. The schema hint about ownerId being required in collaborations is useful but lives in the schema, not the description.

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

add_eventC

Add an event to the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
nameNoName of the event
ownerIdNoOwning process ID (required when adding to a collaboration)
scopeIdNoContaining process or subprocess ID (defaults to ownerId)
attachToNoRequired activity ID for boundary events; invalid on other events. Cancel boundaries require a transaction.
positionNoPosition of the event (optional)
eventTypeYesType of event to add
cancelActivityNoWhether a boundary event interrupts its attached activity; compensation boundaries must be false
eventDefinitionNoEvent definition type. The event kind/type combination must be BPMN-legal.
eventDefinitionPayloadNoDefinition details. Timer requires timer; conditional requires condition. Message/signal/error/escalation roots are generated and may be named or assigned a stable ID here.

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
elementIdYesStable generated or existing BPMN ID
elementTypeYes

TDQS

C2.9/5.0
Behavior2/5

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

All annotations are false, providing no safety or mutation hints, so the description carries the full burden of behavioral disclosure. The description only says 'Add', implying a mutation, but does not disclose side effects, required permissions, or failure modes (e.g., invalid eventType or BPMN constraints). This is inadequate for a complex modeling tool.

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, concise sentence with zero wasted words. It is front-loaded and efficiently states the core purpose. However, given the tool's 9 complex parameters and nested objects, the description could arguably be slightly more informative, but it remains appropriately brief for a schema that is self-documenting.

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

Completeness2/5

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

Despite the presence of an output schema and detailed parameter descriptions, the tool description provides no high-level context about event types (start, end, boundary, etc.), parameter interrelations, or common usage patterns. It fails to synthesize the schema's information into a usable mental model, leaving an agent without guidance on selecting appropriate configurations.

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?

Schema coverage is 100%, with detailed descriptions for each parameter (e.g., `eventType` enum, `attachTo` conditions, `cancelActivity` rules). The description adds no parameter-level information, so it relies entirely on the schema, which is the baseline when coverage is high. No extra value is provided.

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 clearly states the tool adds an event to the current diagram, specifying the verb (add), resource (event), and context (current diagram). This is distinct from sibling add_* tools because 'event' is a specific BPMN element type, though the description does not explicitly contrast with `add_activity` or `add_gateway`.

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?

There is no guidance on when to use this tool versus alternatives like `add_activity`, `add_gateway`, or `add_pool`. The description simply states the action without mentioning exclusions, contexts, or alternative tools, leaving the agent to infer usage from the name and context.

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

add_gatewayC

Add a gateway to the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
nameNoName of the gateway (optional)
ownerIdNoOwning process ID (required when adding to a collaboration)
scopeIdNoContaining process or subprocess ID (defaults to ownerId)
positionNoPosition of the gateway (optional)
gatewayTypeYesType of gateway

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
elementIdYesStable generated or existing BPMN ID
elementTypeYes

TDQS

C2.8/5.0
Behavior2/5

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

Annotations indicate this is a mutating operation (readOnlyHint=false) with no idempotency or open-world implications. The description adds minimal behavioral context by specifying it adds to the current diagram, but does not disclose potential side effects, required context (e.g., existing diagram), or behavior when called without a current diagram. Since annotations don't carry detailed behavioral information, the description should have done more.

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

Conciseness3/5

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

The description is a single, concise sentence with no wasted words, which is good. However, it is extremely short for a tool with five parameters and a nested object, leaving out any useful structural information. It is appropriately compact but borderline under-specified, so it earns a middle score.

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

Completeness2/5

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

Given the tool's complexity (5 parameters, enum gatewayType, nested position object, and no output schema explanation), the description is far too minimal. It doesn't explain the gatewayType choices, the meaning of ownerId and scopeId, or how positioning works. An agent would have to rely entirely on the schema, and even then some context (e.g., relationship to current diagram) is missing.

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?

Schema description coverage is 100%, so all parameters are documented in the schema. The description itself adds no parameter semantics; it doesn't mention gatewayType, name, ownerId, scopeId, or position. With high schema coverage, the baseline is 3, and the description provides no extra value beyond 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 clearly states the action (add) and the resource (gateway) and specifies the target (current diagram). It distinguishes from sibling add_* tools by resource type, though it doesn't mention the gatewayType parameter that differentiates gateway kinds. It is specific enough to identify the tool's purpose but lacks a mention of the required type parameter.

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 instead of alternatives like add_event, add_activity, or add_pool. There is no mention of prerequisites, context, or conditions for use. The description simply states the action without any usage context or exclusions.

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

add_laneA
Destructive

Add a lane to a white-box pool and assign flow nodes to it. Existing assignments are moved from their previous lane.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesName of the lane
poolIdYesID of the pool to add lane to
positionNoPosition relative to existing lanesbottom
flowNodeIdsYesIDs of direct flow nodes in the pool process to assign to this lane

Output Schema

ParametersJSON Schema
NameRequiredDescription
laneIdYesStable generated or existing BPMN ID
poolIdYesStable generated or existing BPMN ID
filenameYesActive BPMN filename
assignedFlowNodeCountYes

TDQS

A4/5.0
Behavior4/5

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

The description discloses a key behavioral trait beyond annotations: 'Existing assignments are moved from their previous lane.' This adds specific context about mutation and potential data relocation, complementing the destructiveHint annotation without contradicting it.

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?

Two sentences with no fluff. The first sentence front-loads the core action, and the second delivers a critical side-effect. Every word earns its place, making it highly efficient for quick comprehension.

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?

Beyond the schema and annotations, the description covers the essential purpose and the move-behavior. It doesn't mention prerequisites (e.g., pool existence) or error conditions, but with an output schema present and a well-covered input schema, this is adequate for correct invocation in most cases.

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 input schema already provides full descriptions for all parameters (coverage 100%). The description does not add new meaning about params like position or flowNodeIds beyond what the schema states, so the baseline 3 is appropriate.

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 states a specific verb and resource: 'Add a lane to a white-box pool and assign flow nodes to it.' It also notes the side-effect of moving existing assignments, which distinguishes it from simple add operations like add_pool. This makes the tool's purpose unambiguous.

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?

The description implies usage context (adding lanes to a white-box pool) but does not explicitly contrast with siblings like add_pool or add_activity. There is no 'use this when' or 'instead of' guidance, leaving the agent to infer from the resource type.

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

add_poolB

Add a pool to the current collaboration diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesName of the participant/pool
sizeNoSize of the pool (optional)
blackBoxNoCreate a black-box participant without an owned process
positionNoPosition of the pool (optional)

Output Schema

ParametersJSON Schema
NameRequiredDescription
blackBoxYes
filenameYesActive BPMN filename
elementIdYesStable generated or existing BPMN ID
processIdNoStable generated or existing BPMN ID

TDQS

B3.1/5.0
Behavior2/5

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

Annotations are all false (readOnlyHint: false, idempotentHint: false, etc.), so the description carries the full burden of behavioral disclosure. 'Add' implies a state mutation, but the description does not explain side effects, whether the current diagram must be open, or what happens to existing elements. It offers no additional behavioral context beyond the bare action.

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?

The description is a single, concise sentence with no filler or redundancy. It is front-loaded with the main action and delivers exactly the necessary information. No unnecessary details or repetition, making it a model of conciseness.

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

Completeness3/5

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

The tool has an output schema and full parameter documentation, so return values and parameter details are covered. However, the description does not provide usage context such as whether a diagram must be active, or how this relates to 'add_lane' (a common alternative). Given its simplicity and the availability of structural information, a 3 reflects a minimally adequate description with a notable gap in contextual guidance.

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% parameter coverage, so each parameter is documented in the schema itself. The description adds no extra meaning to parameters like 'name', 'size', 'blackBox', or 'position'. Given high schema coverage, the baseline is 3, and the description does not raise it.

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 clearly states the verb 'add', the object 'pool', and the context 'current collaboration diagram'. It distinguishes the tool from siblings like add_association, add_event, and add_lane by naming a specific BPMN element and its scope. A 4 rather than 5 because it lacks any elaboration on what a 'pool' means in this domain, though the sibling set implies a BPMN context.

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?

There is no guidance on when to use this tool versus alternatives such as add_lane or add_participant (if any exist). The description does not mention prerequisites, constraints, or situations where one would choose this over a sibling. Completely absent, earning a 2.

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

add_text_annotationA

Add a BPMN text annotation, optionally associated with an existing element

ParametersJSON Schema
NameRequiredDescriptionDefault
sizeNoSize of the annotation
textYesAnnotation text preserved exactly, including whitespace, line breaks, and metacharacters
positionNoPosition of the annotation
textFormatNoOptional text media type; BPMN defaults to text/plain
associatedElementIdNoExisting element to link from the annotation with a separate undirected BPMN association

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
annotationIdYesStable generated or existing BPMN ID
associationIdNoStable generated or existing BPMN ID

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, indicating mutation. The description adds the behavioral fact that an association may be created, which is beyond the annotation's binary mutation flag. However, it does not disclose side effects on the existing element (e.g., whether it modifies the element) or any failure modes. Given annotations carry the core mutation trait, this is adequate but not rich.

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?

The description is a single sentence with no filler. It is front-loaded with the core action and resource, and the optional clause adds value without bloat. Every word earns its place.

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

Completeness3/5

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

The tool has 5 parameters (including nested objects) and an output schema. The description covers the fundamental action but omits any mention of context, such as that the annotation is added to the current diagram or any error conditions. However, given the schema fully documents parameters and the output schema exists, the description is minimally sufficient but not comprehensive.

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?

Schema description coverage is 100%, meaning all parameters have descriptive text. The tool description adds no parameter-specific details beyond highlighting the optional association, which is already captured in the associatedElementId description. Thus the description does not meaningfully augment the schema, warranting the baseline score of 3.

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 the verb 'Add' and the specific resource 'BPMN text annotation', and notes the optional association. This distinguishes it from sibling tools like add_event or add_activity, which target different element types. The purpose is unambiguous.

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?

The description gives no explicit guidance on when to use this tool versus alternatives. It mentions 'optionally associated' but does not explain when linking is appropriate or when to use add_association instead. There are no stated prerequisites, exclusions, or conditions for choosing this over other add-* tools.

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

auto_layoutA
DestructiveIdempotent

Apply deterministic automatic layout. Collaboration processes are ranked independently; requested pool/lane sizes are lower bounds, manual coordinates are replaced, disconnected nodes stay in their owner, and message flows route after non-overlapping pool placement.

ParametersJSON Schema
NameRequiredDescriptionDefault
algorithmNoLayout algorithm to usehorizontal

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
warningsYes
algorithmYes
elementCountYes
connectionCountYes

TDQS

A3.8/5.0
Behavior4/5

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

The description discloses specific behavioral traits beyond annotations: it explains that pool/lane sizes act as lower bounds, manual coordinates are replaced, disconnected nodes stay with their owner, and message flows route after pool placement. These details align with the destructiveHint and idempotentHint annotations, adding value by clarifying exact effects. No contradiction exists.

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, information-dense sentence that front-loads the core action ('Apply deterministic automatic layout') before listing behaviors. It is concise, with no filler, though the list of clauses is a bit packed but still readable.

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 layout tool with one optional parameter and an output schema, the description thoroughly covers the essential behaviors and constraints. It explains deterministic behavior, rank ordering, size bounds, coordinate replacement, and routing logic, leaving no ambiguity about what the operation does. The output schema handles return values, so nothing critical is missing.

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 fully documents the single parameter 'algorithm' with an enum and default, achieving 100% coverage. The description adds no additional meaning about the parameter or its values. Since the schema already covers it, a baseline of 3 is appropriate.

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 the action 'Apply deterministic automatic layout' with a specific verb and resource. It goes beyond a simple statement to enumerate key behavioral rules (e.g., collaboration processes ranked independently, manual coordinates replaced), making its purpose precise and unambiguous. It is easily distinguishable from siblings, none of which perform layout operations.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention any conditions, prerequisites, or exclusions. While it implies use for automatic layout, it fails to explicitly state the scenario or contrast with manual layout or other tools.

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

closeB
Idempotent

Close the current diagram and clear the context

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
filenameYesActive BPMN filename
processIdYesStable generated or existing BPMN ID

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the description doesn't need to restate those. It adds the side effect of clearing the context, which is beyond the annotations, but does not clarify whether changes are saved or discarded, or if the action is reversible. Given the annotations, a 3 is appropriate; more detail would be better for a state-changing operation.

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?

The description is a single, concise sentence that front-loads the primary action and includes the secondary effect. No unnecessary words or repetition. It is appropriately concise for a simple tool.

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

Completeness3/5

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

With no parameters and an output schema present, the description covers the essential behavior. However, given the large set of sibling tools, it lacks context about when to use 'close' versus alternatives like 'save' or 'delete'. The description is functional but not rich enough for an agent to confidently choose it in all relevant scenarios.

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?

The tool has zero parameters and the input schema is empty with 100% coverage. As per the baseline for 0-parameter tools, the description does not need to elaborate on parameters, and it doesn't. This is fully adequate.

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 clearly states the action ('Close the current diagram and clear the context'), which is specific and unambiguous. It identifies the resource (diagram) and the extra behavior (clearing context). However, it does not explicitly differentiate from sibling tools like 'save' or 'delete', though the action is distinct enough that the purpose is clear.

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?

There is no guidance on when to use this tool versus alternatives such as 'save', 'new_bpmn', or 'delete_diagram_file'. The description only states what it does, not the context in which it should be chosen. With many sibling tools, an agent is left to infer when closing is appropriate.

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

connectC

Connect two elements in the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
labelNoLabel for the connection (optional)
sourceIdYesID of the source element
targetIdYesID of the target element
conditionNoFormal condition expression for a sequence flow; cannot be combined with isDefault
isDefaultNoMake this the source activity/gateway default flow; default flows cannot have conditions
conditionTypeNoBPMN expression type; only valid when condition is supplied (defaults to bpmn:FormalExpression)
conditionLanguageNoLanguage URI or identifier; only valid when condition is supplied

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
sourceIdYesStable generated or existing BPMN ID
targetIdYesStable generated or existing BPMN ID
connectionIdYesStable generated or existing BPMN ID
connectionTypeYes

TDQS

C2.3/5.0
Behavior1/5

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

Annotations provide no positive hints (all false), so the description carries the full burden of behavioral disclosure. It fails to mention that this modifies the diagram, whether it validates element existence or compatibility, or any side effects. The agent has no idea what the operation actually does beyond a generic 'connect'.

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

Conciseness3/5

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

The description is extremely concise (one sentence), but it lacks the substance needed to be useful. It doesn't front-load key constraints or provide any structure that helps an agent parse intent quickly. While brevity is good, this is under-specification rather than efficient framing.

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?

With 7 parameters including condition, isDefault, and language options, the description is grossly incomplete. An agent has no high-level understanding of how to use these together (e.g., when to supply a condition vs setting a default flow), or what the operation returns (despite an output schema, the description doesn't set context). The tool needs far more narrative to be safely invoked.

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?

Schema description coverage is 100%, so all parameters are documented in the schema. The description itself adds no extra meaning beyond the generic notion of connecting, which is the baseline expectation for high coverage. It does not explain relationships between parameters (e.g., condition vs isDefault) outside what the schema already states.

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 states a clear verb+resource ('Connect two elements in the current diagram') that conveys the basic action. It does not differentiate from sibling tools like add_association, which might represent a similar connection operation, so it lacks explicit distinguishing context.

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

Usage Guidelines1/5

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

There is no guidance on when to use this tool versus alternatives such as add_association, or on the prerequisites (e.g., elements must exist). With many sibling tools and complex connection semantics, the complete absence of routing information leaves an agent unable to choose correctly.

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

currentB
Read-onlyIdempotent

Get information about the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
currentYes
diagramNo

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. The description adds nothing beyond the name about behavior—it doesn't mention output format, scope, or any side effects. With strong annotations, a 3 is appropriate because it adds minimal context beyond structured data.

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?

A single, concise sentence with no wasted words. The core action and target are front-loaded. Perfectly sized for a zero-parameter read tool.

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

Completeness3/5

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

The tool has an output schema that presumably defines the return structure, so that gap is covered. However, the description doesn't clarify what 'information' means in practice—whether it returns the full diagram model, just properties, or a summary. Given the broad sibling set of read-like tools (list_elements, get_element, export), a slightly more explicit scope would make it self-contained. It's minimally complete but leaves ambiguity.

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?

The schema has zero parameters, so schema description coverage is trivially 100%. With no parameters to explain, the baseline is 4. The description doesn't need to elaborate on parameters; it correctly avoids redundant parameter details.

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

Purpose3/5

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

The description states a clear verb ('Get') and a resource ('current diagram'), but 'information' is vague—it doesn't specify whether this returns metadata, elements, or both. It's distinguishable from get_element (which targets a specific element) but not precisely from list_elements or export. The purpose is understandable but under-specified.

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 given on when to use this tool versus alternatives like list_elements, get_element, or export. It does not state what kind of 'information' it returns or when a caller should prefer this over sibling read operations. The usage context must be inferred entirely from the tool name.

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

delete_diagram_fileB
DestructiveIdempotent

Delete a saved BPMN diagram file

ParametersJSON Schema
NameRequiredDescriptionDefault
filenameYesFilename of the diagram to delete

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYes
closedCurrentYes

TDQS

B3.1/5.0
Behavior2/5

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

The description simply says 'delete', which is consistent with the destructiveHint annotation, but adds no extra behavioral context such as irreversibility, error handling for missing files, or side effects. Given the annotations already declare destructiveHint=true and idempotentHint=true, the description contributes no new information about the tool's behavior.

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?

The description is a single, efficient sentence that states the action and object without extraneous details. It is front-loaded with the verb, and every word earns its place. There is no redundancy or filler.

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

Completeness3/5

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

For a simple, one-parameter delete operation, the description is mostly sufficient, and the presence of an output schema means return values need not be explained. However, it lacks usage context (when to use vs. alternatives) and practical constraints (e.g., availability of the file), which an agent would benefit from. Given the sibling tool delete_element exists, the absence of any differentiation weakens completeness.

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 parameter 'filename' is fully described in the schema ('Filename of the diagram to delete'), and schema coverage is 100%. The description adds no further meaning beyond the schema; it only reiterates that the file is a BPMN diagram, which is already implicit. This meets the baseline but does not enhance understanding.

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 clearly states the verb 'delete' and the resource 'a saved BPMN diagram file', which distinguishes it from sibling tools like delete_element that target elements rather than files. It is specific and unambiguous, though it does not elaborate on what 'saved' means in context.

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?

The description provides no guidance on when to use this tool versus alternatives such as delete_element or close. It does not mention prerequisites (e.g., the file must exist) or situations where deletion is not appropriate, leaving the agent to infer usage solely from the name and description.

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

delete_elementA
DestructiveIdempotent

Delete an element (cascading incident connections) or a connection while preserving its endpoints

ParametersJSON Schema
NameRequiredDescriptionDefault
elementIdYesID of the element to delete

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
elementIdYesStable generated or existing BPMN ID
deletedKindYes
removedConnectionCountYes

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the agent knows it is a destructive, repeatable operation. The description adds value beyond these by specifying that element deletion cascades incident connections while connection deletion preserves endpoints. This is crucial context not present in annotations. No contradiction with annotations.

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?

The description is a single, compact sentence that front-loads the primary action and packs the two modes and their effects efficiently. Every word earns its place, with no redundancy or filler. It is optimally sized for the complexity of the tool.

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?

For a one-parameter destructive tool with annotations covering safety and an output schema present, the description is largely complete. It explains the two deletion modes and their different implications. Minor omission: it does not explicitly state what happens to the endpoints of incident connections when deleting an element (beyond implying they are cascaded), which could be clarified. Overall, adequate for an agent to call 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?

The schema describes elementId as 'ID of the element to delete' with 100% coverage, but the tool description reveals that elementId can also refer to a connection, adding meaning beyond the schema. It clarifies that the ID serves double duty. However, it does not specify how an agent can distinguish an element ID from a connection ID, which is a minor gap.

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 states a specific verb ('Delete') and resource ('an element or a connection'), and concisely differentiates the two modes with their distinct effects. It is clear what the tool does overall, though it does not explain how it determines which mode applies (which is left to the parameter value).

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?

The description provides implicit usage guidance by explaining that it can delete either an element (cascading incident connections) or a connection (preserving endpoints), which helps an agent choose the appropriate action. However, it does not explicitly state when to prefer this tool over alternatives (no other element-deletion tool exists among siblings) or provide conditions for exclusion. The guidance is functional but not explicit about scenarios where deletion should not be used.

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

exportA
Read-onlyIdempotent

Export the current diagram as BPMN XML text or an embedded image/svg+xml resource rendered by bpmn-js

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNoExport formatxml
formattedNoWhether to format the output (for XML)

Output Schema

ParametersJSON Schema
NameRequiredDescription
uriNo
formatYes
filenameYesActive BPMN filename
mimeTypeYes
processIdYesStable generated or existing BPMN ID
byteLengthYes

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds that the output is 'rendered by bpmn-js', which is a behavioral detail beyond the annotations. It does not contradict any annotation; it is consistent. The description doesn't need to repeat safety hints since annotations carry that, and it adds value with the rendering detail.

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?

A single sentence that is front-loaded with the action ('Export') and resource ('current diagram'), followed by the output formats and rendering detail. There is zero filler or repetition. Every word contributes to clarity.

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 that the output schema exists (as indicated by context signals), the description does not need to explain return values. The tool has two optional parameters that are fully documented in the schema, and the description covers purpose and output formats. Annotations cover safety. Nothing needed for an agent to call this tool successfully is missing.

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 input schema describes both parameters: 'format' with enum values and a default, and 'formatted' with a description. Schema description coverage is 100%, so the schema already documents parameters thoroughly. The description does not add any extra meaning about parameter syntax, alternatives, or nuances beyond what the schema provides. Baseline 3 is appropriate.

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 the specific verb 'export' and the resource 'current diagram', and specifies the two possible output formats (BPMN XML or svg+xml). This distinguishes it from sibling tools like save and save_as, which persist files, while export produces a serialized representation. No ambiguity about what the tool does.

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?

The description gives clear context that this tool is for exporting the current diagram in a specific format, which is implicitly distinct from saving or opening. It does not explicitly mention when not to use it or name alternatives, but the purpose is self-evident given the format and the 'current diagram' scope. A slight gap is the lack of explicit routing to save_as for persistence, but the context is adequate.

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

get_diagrams_pathA
Read-onlyIdempotent

Get the path where BPMN diagrams are saved

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYes

TDQS

A3.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. However, the description adds no additional behavioral context, such as what the returned path looks like or any side effects, which is minimal over the annotations.

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?

One concise sentence with no filler. The purpose is stated directly and front-loaded.

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?

For a trivial getter with no parameters and an existing output schema, the description is adequate. It doesn't provide context on typical use cases, but that's not necessary given its simplicity.

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?

The tool has zero parameters, so the description adds no parameter meaning. According to the rubric, 0 params has a baseline of 4, which is appropriate since there is nothing to explain.

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 the tool retrieves the path where BPMN diagrams are saved. It is specific and distinguishes from siblings like open_bpmn or list_diagrams, as it returns the location rather than contents or list.

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?

The description gives no guidance on when to use this tool versus alternatives, such as list_diagrams or current. It only states what it does, leaving the agent to infer usage from the name.

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

get_elementB
Read-onlyIdempotent

Get details of a specific element or association in the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
elementIdYesID of the element

Output Schema

ParametersJSON Schema
NameRequiredDescription
idYesStable generated or existing BPMN ID
kindNo
nameNo
sizeNo
typeYes
ownerIdNoStable generated or existing BPMN ID
scopeIdNoStable generated or existing BPMN ID
incomingNo
outgoingNo
positionNo
sourceIdNoStable generated or existing BPMN ID
targetIdNoStable generated or existing BPMN ID
waypointsNo
processRefNoStable generated or existing BPMN ID
propertiesNo
defaultFlowNoStable generated or existing BPMN ID
associationDirectionNo

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering the safety profile. The description adds the useful context that it operates on 'specific' elements and associations within the 'current diagram', which is not in the annotations. However, it does not disclose behavior on missing IDs or error conditions; the output schema likely covers return format.

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?

The description is a single, front-loaded sentence with zero redundancy. It states the action, scope, and resource type efficiently, making it easy to parse.

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?

The description covers the essential scope ('current diagram', 'element or association') and safety is fully provided by annotations. The presence of an output schema means return values are documented elsewhere. It omits potential error behavior for nonexistent IDs, but that is a minor gap for such a simple retrieval tool.

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 input schema already provides a description for elementId ('ID of the element'), and the description ('Get details of a specific element or association') implies it is the target identifier. No additional semantic detail is added beyond the schema, and with 100% schema coverage the baseline is 3.

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 clearly states the verb 'Get' and the resource 'details of a specific element or association', and scopes it to 'the current diagram'. It distinguishes from list_elements (which lists) and update_element (which updates) by emphasizing specificity, though it does not explicitly name alternatives.

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 versus its siblings, such as list_elements for enumeration or update_element for modification. The word 'specific' implies single-element retrieval, but no explicit selection criteria or alternative routing is given.

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

list_diagramsA
Read-onlyIdempotent

List diagrams in stable filename order as { count, returnedCount, offset, limit, hasMore, diagrams, path }; request the next page with offset + returnedCount

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results to return (default 100, max 500)
offsetNoZero-based offset in the stable result order

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYes
countYes
limitYes
offsetYes
hasMoreYes
diagramsYes
returnedCountYes

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, and non-destructive behavior, so the description's job is lighter. It adds valuable context about stable ordering and pagination mechanics, going beyond what annotations provide. Does not contradict annotations.

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?

A single sentence that starts with the core purpose, then compactly provides return structure and pagination instruction. No wasted words; everything is essential and immediately useful.

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 read-only list operation, the description covers the result format, pagination logic, and ordering guarantee. The output schema (if present) is not shown, but the description explicitly lists the response fields, making it self-contained. No missing information that an agent would need to call this tool 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 100% for both parameters (limit, offset), but the description enhances understanding by explaining offset in the context of 'stable filename order' and pagination, which is not fully captured by the schema. This adds functional meaning beyond parameter names and defaults.

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 states a clear verb ('List') and resource ('diagrams') with the specific ordering definition ('stable filename order'). It also specifies the return shape, making it unambiguous what the tool does and how it differs from other diagram operations like open, save, or export.

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?

Provides explicit pagination usage ('request the next page with offset + returnedCount') which is key to correct invocation. It doesn't explicitly mention when not to use this tool, but no direct alternative exists among siblings for listing diagrams, so the guidance is sufficient for the use case.

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

list_elementsA
Read-onlyIdempotent

List elements and association artifacts in stable ID order as { count, returnedCount, offset, limit, hasMore, elements }; request the next page with offset + returnedCount

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results to return (default 100, max 500)
offsetNoZero-based offset in the stable result order
elementTypeNoFilter by element type (optional)

Output Schema

ParametersJSON Schema
NameRequiredDescription
countYes
limitYes
offsetYes
hasMoreYes
elementsYes
returnedCountYes

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral traits beyond annotations: it specifies the response envelope, the stable sort order, and the pagination mechanism (offset + returnedCount). This gives the agent expectations about ordering and data volume that structured metadata alone cannot convey.

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?

The description is a single compact sentence that front-loads the core purpose, then specifies the response format, and closes with pagination guidance. Every clause earns its place; there is no fluff or redundancy. It respects the token budget while delivering high-value details.

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 that an output schema exists (covering return values), the annotations cover read-only/idempotent safety, and the input schema fully documents all three parameters, the description is complete for an agent to call this tool correctly. It adds the crucial non-obvious detail of stable ordering and pagination, making it self-sufficient for both initial listing and subsequent page requests.

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% and every parameter (limit, offset, elementType) has a description, so the baseline is 3. The description adds contextual semantics for offset by tying it to the stable ID order and the pagination rule (offset + returnedCount), which clarifies how offset behaves beyond the schema's 'Zero-based offset' note. This elevates it above baseline.

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 opens with a specific verb and resource: 'List elements and association artifacts'. It further specifies the ordering ('stable ID order') and the exact response shape. This clearly distinguishes list_elements from sibling tools like get_element (targeted retrieval) and delete_element (mutation), so an agent can select it without needing to inspect the schema.

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?

The description does not name alternative tools or give explicit when-not-to-use guidance, but it provides actionable usage context: it explains the pagination contract ('request the next page with offset + returnedCount'), which is the core operational detail. This is clear context, though it stops short of contrasting with siblings like get_element or export.

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

new_bpmnA

Create a new BPMN diagram and set it as current context

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesName of the diagram
typeNoType of diagram to createprocess
extensionProfileNoBPMN extension profile; portable emits no vendor attributesportable

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
typeYes
filenameYesActive BPMN filename
processIdYesStable generated or existing BPMN ID
extensionProfileYes

TDQS

A3.5/5.0
Behavior3/5

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

The description discloses that it creates a diagram and sets it as the current context, which is a side effect. Annotations are minimal (all false), so the description carries the burden. However, it doesn't mention whether the diagram is persisted, what happens to the previous current diagram, or any error conditions. This is adequate but lacks depth.

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?

The description is a single concise sentence that front-loads the primary action and key side effect. No filler or redundant content. It efficiently conveys the essence.

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

Completeness3/5

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

For a simple creation tool with fully documented parameters and an output schema, the description is mostly adequate but lacks usage guidance and detailed behavioral context (e.g., where the diagram is stored, effect on existing state). It covers the minimum but leaves some gaps that an agent might need.

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?

Schema coverage is 100% for all three parameters (name, type, extensionProfile), each with clear descriptions and enums. The description adds no extra meaning beyond what the schema provides. Baseline 3 applies since the schema does the heavy lifting.

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 the action (create) and resource (BPMN diagram) and an additional effect (set as current context). It distinguishes from siblings like open_bpmn (open existing) and new_from_mermaid (create from mermaid), making the tool's purpose unambiguous.

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?

The description gives no explicit guidance on when to use this tool versus alternatives. It doesn't mention conditions, exclusions, or when to prefer other tools like new_from_mermaid for mermaid-derived diagrams. Usage context is only implied by the tool's name and sibling list.

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

new_from_mermaidA

Create a new BPMN diagram from Mermaid code and set it as current context

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesName for the new diagram
mermaidCodeYesMermaid flowchart code to convert
extensionProfileNoBPMN extension profile for the authored documentportable

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
typeYes
filenameYesActive BPMN filename
warningsYes
flowCountYes
nodeCountYes
processIdYesStable generated or existing BPMN ID
extensionProfileYes

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so safety is covered. The description adds the behavioral trait of setting the new diagram as the current context, which is not in annotations. This is useful context beyond the structured data, though it does not disclose error handling or prerequisites.

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?

The description is a single, front-loaded sentence that states the action, the input, and the side effect without any redundancy. Every word contributes to the meaning, making it highly concise and structured.

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?

The tool is a straightforward creation operation with a side effect. The description states the core purpose and the current-context behavior. An output schema exists (as indicated), so return values are presumably covered elsewhere. The description is sufficient for an agent to understand how to invoke it correctly, though it does not mention potential failure modes or prerequisites.

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 descriptions fully cover all three parameters (name, mermaidCode, extensionProfile) with 100% coverage. The tool description does not add any further meaning beyond what the schema already provides, so the baseline score of 3 applies.

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 a specific verb ('Create'), a resource ('a new BPMN diagram from Mermaid code'), and a distinct side effect ('set it as current context'). It differentiates from siblings like new_bpmn (likely empty diagram) and open_mermaid_file (opens existing file) by emphasizing the conversion and context-setting behavior.

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?

The description implies usage when you have Mermaid code and want to convert it to BPMN, but it does not explicitly state when to use this tool versus alternatives such as new_bpmn or open_mermaid_file. There is no 'use this when' or 'prefer this over' guidance, leaving the agent to infer context from the purpose.

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

open_bpmnA
Idempotent

Open an existing BPMN file and set it as current context

ParametersJSON Schema
NameRequiredDescriptionDefault
filenameYesFilename of the BPMN diagram to open

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
typeYes
filenameYesActive BPMN filename
processIdYesStable generated or existing BPMN ID
elementCountYes
connectionCountYes
extensionProfileYes

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already disclose idempotency (idempotentHint: true) and non-destructiveness (destructiveHint: false). The description adds the key behavioural trait of switching the current context, which is not captured by annotations. It does not discuss failure modes, but given the annotations and the simple nature of the tool, this is sufficient.

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?

A single, front-loaded sentence states the action and effect with zero filler. Every word adds value, and the structure is optimally compact for a tool with one parameter.

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 simple tool with one parameter, an output schema, and annotations that cover safety, this description is complete. It explains what the tool does (opens and sets context), and nothing else is needed for an agent to invoke it correctly. The existence of the output schema relieves the description from explaining return values.

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 input schema fully describes the single parameter ('filename': 'Filename of the BPMN diagram to open') with 100% coverage. The description does not add any extra meaning about the parameter (e.g., path patterns, extensions, or constraints), so it merely echoes the schema. A baseline of 3 is appropriate when the schema carries the semantic load.

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 uses a specific verb ('Open'), a clear resource ('existing BPMN file'), and an explicit effect ('set it as current context'). This distinguishes it from siblings like new_bpmn (create), open_mermaid_file (different format), and save (persist), making the purpose unambiguous.

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?

The description clearly implies usage: open an existing BPMN diagram to make it the working context. It does not explicitly name alternatives or conditions for when not to use it, but the resource type ('existing BPMN') implicitly rules out new files or other formats. A named alternative would be stronger, but the core context is clear.

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

open_mermaid_fileA

Open a Mermaid file, convert it to BPMN, and set as current context

ParametersJSON Schema
NameRequiredDescriptionDefault
filenameYesFilename of the Mermaid file to open and convert
extensionProfileNoBPMN extension profile for the authored documentportable

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
typeYes
filenameYesActive BPMN filename
warningsYes
flowCountYes
nodeCountYes
processIdYesStable generated or existing BPMN ID
sourceFilenameYes
extensionProfileYes

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark the tool as non-read-only and non-destructive, and the description adds the key side effect of setting current context. It does not disclose potential impacts on unsaved work or file modifications, but given the annotation coverage, the provided behavioral details are adequate and non-contradictory.

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?

The description is a single, efficient sentence that front-loads the primary action (open, convert, set context). Every word adds value with no redundancy.

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?

The description covers the core purpose and the side effect of setting current context, while an output schema exists and all parameters are fully described. It does not explicitly mention the extensionProfile's role, but that is a minor omission given the schema's clarity.

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?

Both parameters (filename and extensionProfile) have full descriptions in the schema, including the enum for extensionProfile. The tool description itself adds no extra parameter context, which is acceptable because schema coverage is 100%.

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 states a clear verb-resource-action: open a Mermaid file, convert it to BPMN, and set it as current context. This distinguishes it from siblings like open_bpmn (which opens BPMN files) and new_from_mermaid (which creates new BPMN from Mermaid).

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?

The context where this tool should be used is implied: when an existing Mermaid file needs to be converted and made the active diagram. However, it does not explicitly mention alternatives or conditions for selection, leaving the agent to infer from tool names and sibling descriptions.

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

saveA
DestructiveIdempotent

Save the current diagram to its file (error if no filename set)

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
filenameYesActive BPMN filename
processIdYesStable generated or existing BPMN ID

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, covering the safety profile. The description adds the error condition (error if no filename set), which is useful behavioral context, but little else about side effects. It does not contradict annotations.

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?

The description is a single concise sentence that front-loads the primary action and immediately notes the key error condition. Every word earns its place, with no filler or repetition of schema information.

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 the tool has no parameters and an output schema exists, the description adequately covers what the tool does and a critical edge case (missing filename). It does not discuss permissions or asynchronous behavior, but these are minor for a save operation with existing annotations.

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?

This tool has zero parameters, so the description does not need to explain parameter semantics. The baseline of 4 applies because there is nothing to elaborate on; the description correctly avoids adding irrelevant details.

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 states the exact action (save), the resource (current diagram), and the destination (its file), which immediately distinguishes it from save_as. The error condition adds precision. This is a clear, unambiguous purpose for an agent.

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?

The description implies that a filename must already be set to avoid an error, which indirectly suggests using save_as when no filename is set, but it does not explicitly name save_as or other alternatives. This leaves usage guidance implicit rather than explicit.

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

save_asA
Idempotent

Save the current diagram with a new filename

ParametersJSON Schema
NameRequiredDescriptionDefault
filenameYesNew filename for the diagram

Output Schema

ParametersJSON Schema
NameRequiredDescription
nameYes
filenameYesActive BPMN filename
processIdYesStable generated or existing BPMN ID

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false (write operation) and destructiveHint=false. The description adds the key 'new filename' behavior but does not disclose side effects such as whether the current diagram's internal file reference changes to the new filename, or what happens if a file with the same name already exists (overwrite vs. error). The description adds minimal behavioral context beyond the annotations.

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?

The description is a single, succinct sentence with no extraneous words. It front-loads the verb and directly conveys the essential action and differentiator. There is zero waste.

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

Completeness3/5

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

The tool is simple (one parameter) and has an output schema, so return values are likely covered. However, the description omits important behavioral nuances: what happens to the current diagram's file association after save_as, and whether existing files are overwritten. Given the presence of a sibling 'save' tool, an explicit clarification of when to use save_as versus save would improve completeness.

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?

Schema description coverage is 100% (the 'filename' parameter has a clear description: 'New filename for the diagram'). The tool description essentially repeats this information without adding further meaning. The baseline of 3 applies since the schema fully documents the parameter.

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 'Save the current diagram with a new filename' clearly states the action (save), the resource (current diagram), and the key differentiator (with a new filename) that distinguishes it from the sibling 'save' tool. An agent can immediately understand what this tool does and how it differs from the alternative.

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?

The description implies usage context (use when you want to save under a different name) but does not explicitly state when to prefer this over 'save' or mention any exclusions. The differentiation is implicit via the phrase 'with a new filename' rather than an explicit 'use this when you want to keep the original file intact'.

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

update_elementA
DestructiveIdempotent

Update properties of an element in the current diagram

ParametersJSON Schema
NameRequiredDescriptionDefault
nameNoNew name for the element
elementIdYesID of the element to update
propertiesNoTyped properties to update. isCollection and itemSubjectRef apply only to data object references; null clears itemSubjectRef, assignee, candidateGroups, or dueDate. Unknown and namespace-qualified fields are rejected.
defaultFlowNoOutgoing sequence-flow ID to make the element default, or null to clear its default flow

Output Schema

ParametersJSON Schema
NameRequiredDescription
filenameYesActive BPMN filename
elementIdYesStable generated or existing BPMN ID

TDQS

A3.5/5.0
Behavior2/5

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

Annotations already indicate destructiveHint=true and idempotentHint=true, so the description does not need to restate that it mutates. However, the description adds no additional behavioral context, such as whether updating is partial (only provided properties change), whether null clears fields, or what happens if the element does not exist. Given the sparse description, the agent must rely on the schema for these nuances. The description is consistent with annotations but adds minimal value.

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?

The description is a single, front-loaded sentence with no wasted words. It clearly communicates the action and target. This is exemplary conciseness.

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

Completeness3/5

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

The tool has a complex schema with nested properties and an output schema, and the description is very brief. While the schema carries detailed parameter semantics and annotations indicate destructive behavior, the description does not explain the partial-update semantics (unchanged properties remain) or that certain fields apply only to specific element types. An agent would need to read the schema carefully. For a mutation tool with this complexity, the description could provide more context, making it adequate but not complete.

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?

Schema description coverage is 100% – each parameter (elementId, name, defaultFlow, and the properties object) already has a detailed description in the schema, including notes on clearing fields and restrictions. The tool description itself adds no semantic information about parameters, so it does not compensate beyond what the schema provides. Baseline of 3 is appropriate.

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 states a clear verb ('Update') and a specific resource ('properties of an element in the current diagram'). This distinguishes it from sibling tools like get_element, delete_element, and add_* tools. The mention of 'current diagram' adds context. It is specific and unambiguous.

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?

The description gives no explicit guidance on when to use this tool versus alternatives, such as save (which persists the whole diagram) or get_element (to read). Usage is implied by the name and description, but there is no directing of the agent to consider alternatives or exclusions. It is acceptable but not explicit.

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

validateA
Read-onlyIdempotent

Validate the current diagram using cumulative BPMN checks: syntax parses XML and resolves references; semantic adds owner-aware event, flow, subprocess, lane, and collaboration rules; full also adds executable-profile start/end/connectivity guidance

ParametersJSON Schema
NameRequiredDescriptionDefault
levelNoCumulative validation level: syntax; syntax + semantic; or syntax + semantic + executable-profile guidancefull

Output Schema

ParametersJSON Schema
NameRequiredDescription
levelYes
validYes
errorsYes
issuesYes
summaryYes
filenameYesActive BPMN filename
warningsYes

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, establishing the safety profile. The description adds valuable behavioral context by detailing what each validation level actually does—syntax parsing and reference resolution, semantic rules for events/flows/subprocesses/lanes/collaborations, and executable-profile guidance for full. This goes beyond the annotations and helps the agent understand what the validation entails, without contradicting the annotations.

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 sentence, but it is well-structured with semicolons to separate the levels, and it front-loads the primary action ('Validate the current diagram'). It avoids unnecessary words while conveying all key information. The length is appropriate for the complexity of the tool's levels, and it doesn't repeat what the schema already states.

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 the tool's simplicity (one optional parameter, no required params), the description adequately covers the validation levels and what they involve. An output schema exists, so the return value is documented elsewhere. The description is complete for an agent to understand how to invoke the tool and what to expect from each level, with no missing critical details.

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?

The schema covers the 'level' parameter with enum values and a description, but the tool description provides much richer semantics by explaining exactly what each level checks. For example, 'syntax parses XML and resolves references' adds meaning beyond the schema's simple cumulative statement. Since schema coverage is 100%, a baseline of 3 is appropriate, but the elaboration justifies a 4.

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 the verb 'Validate' and the resource 'current diagram', making the tool's purpose unambiguous. It also distinguishes itself by explaining the cumulative levels, which is specific and not redundant with the name. Since sibling tools are all editing/IO operations, this is clearly the validation tool, and the description highlights its unique functionality.

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?

The description provides clear context on when to use the tool (to validate the current diagram) and explains the different validation levels, implicitly guiding the agent on choosing the appropriate level. It doesn't mention alternatives because there are none among the siblings that serve a similar purpose, so the absence of explicit exclusion is acceptable. The trigger condition is well-defined.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 27 tool updatesv0.2.0
    • First observedadd_activity
    • First observedadd_association
    • First observedadd_data_object
    • First observedadd_event
    • First observedadd_gateway
    • First observedadd_lane
    • First observedadd_pool
    • First observedadd_text_annotation
    • First observedauto_layout
    • First observedclose
    • First observedconnect
    • First observedcurrent
    • First observeddelete_diagram_file
    • First observeddelete_element
    • First observedexport
    • First observedget_diagrams_path
    • First observedget_element
    • First observedlist_diagrams
    • First observedlist_elements
    • First observednew_bpmn
    • First observednew_from_mermaid
    • First observedopen_bpmn
    • First observedopen_mermaid_file
    • First observedsave
    • First observedsave_as
    • First observedupdate_element
    • First observedvalidate

TDQS

B3.4/5.0

Scored across 27 tools

Disambiguation5/5

Each tool targets a clearly distinct action or resource. Element creation tools are separated by type (event, activity, gateway, data object, annotation, pool, lane), and file operations are distinct (new, open, save, save_as, close, list, delete). No two tools appear to overlap in purpose.

Naming Consistency4/5

The naming pattern is mostly consistent with verb-first, underscore-separated names (e.g., add_event, list_elements, delete_diagram_file). Minor deviations exist, such as 'new_from_mermaid' and 'open_mermaid_file' vs. 'open_bpmn', and the noun 'current' as a standalone tool, but overall the convention is coherent.

Tool Count4/5

27 tools is above the typical 3-15 range, but the complexity of a BPMN editor justifies the breadth. The tools cover file management, element operations, validation, layout, and export without excess overlap, so the count feels justified rather than bloated.

Completeness5/5

The tool surface is remarkably complete for a BPMN diagramming server. It covers full CRUD for elements and files, connections, associations, validation at multiple levels, layout, and export. There are no glaring gaps that would hinder common workflows, including lifecycle operations for diagrams and elements.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that enables AI assistants to programmatically create, modify, and export BPMN 2.0 workflow diagrams. It supports managing various process elements and sequence flows while providing export capabilities to standard XML and SVG formats.
    7
    14
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Enables AI agents to create, manipulate, and manage BPMN 2.0 diagrams programmatically, with support for Mermaid conversion, auto-layout, and file persistence.
    24
    12
    -
  • F
    license
    Not graded
    quality
    F
    maintenance
    Enables AI-driven graphical diagram creation and manipulation using natural language, with support for BPMN workflows, analysis, and manual editing via the Model Context Protocol.
    1
    -
  • F
    license
    C
    quality
    B
    maintenance
    Enables generating BPMN 2.0 process models from natural language descriptions, YAML, or images via OCR, with templates, validation, and compatibility with tools like Bizagi Modeler and Camunda Modeler.
    41
    -