ToolmarkCheck a package

Behaviour report · published

version 0.4.15 | run 2026-11-20

@next-ai-drawio/mcp-server

Recorded by Toolmark on 2026-11-20. Version 0.4.15. Run 2026-11-20. A behaviour report, not a rating or an endorsement.

Tools declared
16
Called
16
Not called
0
Checks passed
6
Checks failed
0
To review
0

Not a rating; there is no score. Not tested is never counted against a tool.

Nothing to review

Declared and observed

What each tool says about itself, next to what happened when we called it.

Declared
Observed
get_drawing_guide
Return the drawing guide: XML format, layout, edge routing, style and editing rules. start_session already returns it; call this only if the guide is no longer in your context. With topic, returns a short XML reference for tables, layers or groups, or the drawing guide of a diagram type (sequence, swimlane, swimlane-horizontal, usecase): call that before drawing a diagram of the type. openWorldHint: False, readOnlyHint: True
responded without an error flag to synthetic input (observation, not a verified claim)
called; this run recorded no output check
not tested
get_shape_library
Get the style syntax and shape names of a draw.io icon library. Call this BEFORE drawing with cloud, network or other icon shapes, and use the exact names it returns; never guess them. Libraries: - Cloud: aws4, azure2, gcp2, alibaba_cloud, openstack, salesforce - Networking: cisco19, network, kubernetes, vvd, rack - Business: bpmn, lean_mapping - General: flowchart, basic, arrows2, infographic, sitemap - UI/Mockups: android, material_design - Enterprise: citrix, sap, mscae, atlassian - Engineering: fluidpower, electrical, pid, cabinets, floorplan - Icons: webicons openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: Library "toolmark-synthetic-test" not found. Available: aws4, azure2, gcp2, alibaba_cloud, openstack, salesforce, cisco19, network, kubernetes, vvd, rack, bpmn, lean_mapping, flowchart, basic,
called; returned an error for our synthetic input
not tested
start_session
Start a new diagram session, or continue a saved one with session_id, and open the browser for real-time preview. Call it once per conversation: later requests keep using the same session. Starts an embedded server and opens a browser window with draw.io. The browser will show diagram updates as they happen. The result includes the drawing guide; follow it when drawing. destructiveHint: False, openWorldHint: False
responded without an error flag to synthetic input (observation, not a verified claim)
called; this run recorded no output check
not tested
list_saved_diagrams
List the diagrams saved by earlier sessions (auto-save files), newest first, with their pages. Continue one with start_session session_id=[REDACTED]; the file path also works with load_diagram. openWorldHint: False, readOnlyHint: True
responded without an error flag to synthetic input (observation, not a verified claim)
called; this run recorded no output check
not tested
create_new_diagram
Create a NEW diagram, REPLACING the whole document: every page and any unsaved user changes (the previous state stays in History). To add a tab use add_page; to change cells use edit_diagram. Before using icon shapes (AWS, Azure, GCP, Kubernetes, Cisco...), call get_shape_library first. Follow the drawing guide returned by start_session (call get_drawing_guide if it is no longer in your context). Pass screenshot: true on the last call of a complex diagram to check the result. Accepted xml: 1) Only the mxCell elements of one page (recommended). The server adds <mxfile>, <mxGraphModel>, <root> and the root cells "0" and "1": <mxCell id="2" value="Shape" style="rounded=1;" x="40" y="40" w="120" h="60"/> 2) A bare <mxGraphModel> with <root> (one page). 3) A full <mxfile> with one or more <diagram> pages. Every page's <root> must start with <mxCell id="0"/><mxCell id="1" parent="0"/>. Rules: cells are siblings (never nested), ids are unique per page and start from "2", parent only for sh openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: XML validation failed - Invalid XML: syntax error at 1:23: text data outside of root node. Escape special characters in attribute values (&lt; for <, &amp; for &, &quot; for "), quote every att
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
load_diagram
Load a .drawio diagram into the current session, REPLACING the entire diagram (all pages). To change an existing file, load it here, edit with edit_diagram, then export_diagram to the same path; never rewrite the file by hand. Provide ONE of two mutually exclusive sources: 'path' (the server reads the file from disk — you do NOT need to read the file yourself or pass its XML through create_new_diagram) or 'xml' (the raw file content you already have — from another tool, a repository read, or an API response — so no temporary file needs to be written first). Both accept plain XML and draw.io's compressed save format. .drawio.svg (Editable SVG, the format export_diagram writes) is accepted too; .png files (also draw.io's editable PNG) and plain .svg files cannot be loaded. After loading from 'path' (or from compressed 'xml'), call get_diagram before edit_diagram — you haven't seen the file's cell IDs yet. Plain-XML 'xml' content you supplied yourself is already known and can be edited i openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: Provide either 'path' (a .drawio file to read) or 'xml' (the file's content).
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
edit_diagram
Edit a specific page in the current diagram by ID-based operations (update/add/delete cells). All-or-nothing: if any operation fails, nothing is applied and every failure is listed. Freshness: the server remembers the last diagram state you have seen, and rejects this call only if the user edited the diagram in the browser since then. You do NOT need to call get_diagram before every edit: a rejected call changes nothing and includes the current XML of the page, so you can rebuild your operations and retry. Call get_diagram first only when you don't know the current diagram content (cell IDs, structure) — e.g. the diagram wasn't created in this conversation, or you're unsure your memory of it is accurate. Multi-page targeting: - page_id / page_name / page_index are optional; when all omitted, the FIRST page is targeted - Use list_pages to discover what pages exist Operations: - add: Add a new cell. Provide cell_id (new unique id within the page) and new_xml. One cell per operation. openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No diagram to edit. Please create a diagram first with create_new_diagram.
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
get_diagram
Get the current diagram XML (fetches latest from browser, including user's manual edits). Call this when you don't know the current diagram content (cell IDs, pages, structure) — e.g. before editing a diagram you didn't create in this conversation, or after edit_diagram was rejected because the user changed the diagram in the browser. Returns the full <mxfile> by default. If a page selector is provided, returns just that page's <mxGraphModel> embedded in a one-page <mxfile> wrapper. openWorldHint: False, readOnlyHint: True
responded without an error flag to synthetic input (observation, not a verified claim)
called; this run recorded no output check
not tested
get_selection
Return the cells the user has selected in the preview: their ids and labels, for edges the source and target ids, for shapes the position and size, and the page they are on. Call this when the user refers to what they selected ("this box", "these arrows", "the selected shapes"), then act on the ids with edit_diagram. Says when nothing is selected. Needs the preview tab to be open. openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: The preview tab is not open, or has not connected yet. Give the user the preview link http://localhost:6002/shell/?mcp=mcp-mwopn3zy-meqlfz in your reply and ask them to open it; screenshots and
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
screenshot_diagram
Render the diagram in the preview and return it as a PNG image, so you can see your own result. Call this once after drawing or heavily editing a complex diagram, then fix overlaps and edges that cross shapes. Without a page selector it shows the page on screen; with one it renders that page without changing what the user sees. Needs the preview tab to be open. openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: The preview tab is not open, or has not connected yet. Give the user the preview link http://localhost:6002/shell/?mcp=mcp-mwopn3zy-meqlfz in your reply and ask them to open it; screenshots and
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
export_diagram
Export the current diagram to a file. Supports .drawio (XML), .png, .svg, and .drawio.svg (an SVG with the diagram embedded, which draw.io and load_diagram can open again). The format is auto-detected from the file extension, or can be specified explicitly. Images get a 20 px margin and a white background (or the page's own background color) unless transparent is true; an SVG keeps its light colors in a viewer's dark mode. Multi-page behaviour: - .drawio with NO page selector: writes the full <mxfile> (all pages). - .drawio with a page selector: writes a single-page <mxfile> containing only that page. - .png / .svg with NO page selector: exports the currently active page in the browser. - .png with a page selector: renders that page without changing what the user sees. - .svg / .drawio.svg with a page selector: temporarily loads that page into the browser, captures it, then restores the full document (the user sees a brief flicker). openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No active session. Call start_session first. To continue an earlier diagram, pass its session_id (the Session ID of the earlier start_session result, or one from list_saved_diagrams).
called; returned an error for our synthetic input
not tested
list_pages
List every page (tab) in the current diagram. Returns each page's id, name, 0-based index, and cell count. Use this to discover what pages exist before targeting one with edit_diagram, get_diagram, export_diagram, rename_page, or delete_page. openWorldHint: False, readOnlyHint: True
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No active session. Call start_session first. To continue an earlier diagram, pass its session_id (the Session ID of the earlier start_session result, or one from list_saved_diagrams).
called; returned an error for our synthetic input
not tested
add_page
Append a new page (tab) to the current diagram WITHOUT touching existing pages or unsaved user changes. Use this when the user wants "another diagram alongside" — e.g. "add a CNN page" — instead of create_new_diagram which wipes everything. Inputs: - name: optional display name for the tab (defaults to Page-N where N = existing-page-count + 1) - id: optional explicit page id; if omitted the server generates a short alphanumeric id - xml: optional starting content: the mxCell elements of the page (root cells "0" and "1" are added), or a bare <mxGraphModel>. If omitted, the page starts blank. Returns the new page's id, name, and index so the caller can immediately target it with edit_diagram. destructiveHint: False, openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No diagram exists yet. Use create_new_diagram first, then page tools.
passed: reports a failure when it cannot reach its service
reports a failure when it cannot reach its service · verified
rename_page
Rename an existing page (tab). At least one of page_id / page_name / page_index is required to identify which page to rename. The new_name becomes the visible tab label in the editor. destructiveHint: False, openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No active session. Call start_session first. To continue an earlier diagram, pass its session_id (the Session ID of the earlier start_session result, or one from list_saved_diagrams).
called; returned an error for our synthetic input
not tested
delete_page
Delete a page (tab) from the current diagram. At least one of page_id / page_name / page_index is required. Refuses to delete the last remaining page — the editor needs at least one tab. openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No active session. Call start_session first. To continue an earlier diagram, pass its session_id (the Session ID of the earlier start_session result, or one from list_saved_diagrams).
called; returned an error for our synthetic input
not tested
restore_version
Undo: put an earlier version of the diagram from History back on the canvas (the current canvas is kept in History, so this can be undone too). Use it when the user asks to undo, revert or go back. destructiveHint: False, openWorldHint: False
tool returned an error for synthetic input (input may be invalid for the domain) · error text (untrusted): Error: No active session. Call start_session first. To continue an earlier diagram, pass its session_id (the Session ID of the earlier start_session result, or one from list_saved_diagrams).
called; returned an error for our synthetic input
not tested

What the server did in the sandbox

0Programs it started or tried to startnone seen
0Network connections it tried, with the answer it gotnone seen
0Names it looked upnone seen
0Key and secret files it tried to opennone seen
0Files it opened for writing outside the usual placesnone seen

Recorded with strace during this run, for the server and every process it started. The recorder runs inside the same sandbox as the tool, so a tool that targets it could hide from it; it covers the whole run, not each tool call.

Package facts
  • tool list size: 19063 bytes as JSON (names, descriptions and input schemas of 16 tools)
How this was tested
  • network check: DNS and TCP (IPv4 and IPv6) to the outside all failed before any call
  • Toolmark's synthetic fixture (files) was created in the data folder /fixture
  • Dependencies (131)@hono/node-server@2.1.9, @modelcontextprotocol/sdk@1.32.2, @next-ai-drawio/mcp-server@0.4.15, accepts@2.0.0, ajv-formats@3.0.1, ajv@8.20.0, body-parser@2.4.0, boolbase@2.0.0, bundle-name@4.1.1, bytes@3.1.2, call-bind-apply-helpers@1.0.2, call-bound@1.0.4, content-disposition@2.0.1, content-type@1.0.5, content-type@2.1.0, content-type@2.1.0, content-type@2.1.0, content-type@2.1.0, cookie-signature@1.2.2, cookie@0.7.2, cors@2.8.6, cross-spawn@7.0.6, css-select@7.0.0, css-what@8.0.0, cssomnom@0.1.12, debug@4.4.3, default-browser-id@5.0.1, default-browser@5.5.1, define-lazy-prop@3.0.0, depd@2.0.0, dom-serializer@2.0.0, dom-serializer@3.1.1, domelementtype@2.3.0, domelementtype@3.0.0, domhandler@5.0.3, domhandler@6.0.1, domutils@3.2.2, domutils@4.0.2, dunder-proto@1.0.1, ee-first@1.1.1, encodeurl@2.0.3, entities@4.5.0, entities@7.0.1, entities@8.1.0, es-define-property@1.0.1, es-errors@1.3.0, es-object-atoms@1.1.2, escape-html@1.0.3, etag@1.8.1, eventsource-parser@3.1.1, eventsource@3.0.7,
    as claimed by the package metadata

Only the published package was run, at this exact version, in Toolmark's sandbox with no network and no secrets, with synthetic input; the provider's hosted service, if any, was not tested. base_image node:22-bookworm-slim@sha256:e9f565d32859f0cbfb52125eafe8be39390f24dac302dc3cdf566e8ba3ab21ee, commit 5380e141b8da0eb1a9cb6bc9e40acffe1ce3fc4d, modal_sdk 1.6.4, python 3.12.16, rules cd1495ba013401ce, toolmark not installed