BlockWerk is an MCP server published by tech.blockwerk, hosted at blockwerk-mcp-worker.blockwerk.workers.dev. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 44 tools, including record_view_results, get_templates, load_template, describe_canvas, get_available_blocks.
Build, run and analyse block-diagram simulations: PID, Bode, FFT, optimisation and code export.
1 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Stores the result of a diagram run in the BlockWerk chat view.
| Parameter | Type | Description |
|---|---|---|
| record * | any |
{
"name": "record_view_results",
"description": "Stores the result of a diagram run in the BlockWerk chat view.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"record"
],
"properties": {
"record": {}
}
}
}Lists the built-in, verified BlockWerk diagrams: classic control systems (PID loop, cruise control, inverted pendulum), signal processing, electrical and physics models. Each entry gives an id, what the diagram does, its difficulty and the blocks it uses. Returns metadata only; load_template puts a diagram on the canvas by id.
| Parameter | Type | Description |
|---|---|---|
| category | string | Optional filter by category. |
| interactive | boolean | If true, only diagrams with live on-canvas controls (sliders, joystick, keyboard) meant to be driven while the simulation runs. |
{
"name": "get_templates",
"title": "List diagram templates",
"description": "Lists the built-in, verified BlockWerk diagrams: classic control systems (PID loop, cruise control, inverted pendulum), signal processing, electrical and physics models. Each entry gives an id, what the diagram does, its difficulty and the blocks it uses. Returns metadata only; load_template puts a diagram on the canvas by id.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"category": {
"enum": [
"Control Systems",
"Signal Processing",
"Physics",
"Electrical"
],
"type": "string",
"description": "Optional filter by category."
},
"interactive": {
"type": "boolean",
"description": "If true, only diagrams with live on-canvas controls (sliders, joystick, keyboard) meant to be driven while the simulation runs."
}
}
},
"annotations": {
"title": "List diagram templates",
"readOnlyHint": true,
"openWorldHint": false
}
}Replaces the entire canvas with one of the built-in verified diagrams, by id from get_templates. The template carries its topology, parameters and simulation settings. Returns the block and connection counts, the verified simulation settings, and the attribution when the model is based on third-party material. This is a destructive action that asks the user for approval in the BlockWerk tab.
| Parameter | Type | Description |
|---|---|---|
| templateId * | string | Template id from get_templates, e.g. "inverted_pendulum" or "pid_simple". |
{
"name": "load_template",
"title": "Load diagram template",
"description": "Replaces the entire canvas with one of the built-in verified diagrams, by id from get_templates. The template carries its topology, parameters and simulation settings. Returns the block and connection counts, the verified simulation settings, and the attribution when the model is based on third-party material. This is a destructive action that asks the user for approval in the BlockWerk tab.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"templateId"
],
"properties": {
"templateId": {
"enum": [
"interactive_pid",
"pid_live_tuning",
"step_response",
"pid_simple",
"dc_motor_speed_control",
"dc_motor_physical_limits",
"pid_tutorial",
"pid_noise_filtering",
"pid_anti_windup",
"pid_control_loop",
"verification_assertion",
"cruise_control",
"bang_bang_thermostat",
"cascade_control",
"inverted_pendulum",
"inverted_pendulum_lqr",
"constrained_mpc",
"offshore_wave_damping",
"battery_soc_estimation",
"quadcopter_attitude",
"quadcopter_phone",
"interactive_lowpass",
"low_pass_filter",
"fft_spectrum_analyzer",
"aliasing_demo",
"interactive_suspension",
"phone_spirit_level",
"table_tennis_bounce",
"projectile_motion",
"pendulum_comparison",
"active_suspension",
"dc_motor_gear_pump",
"electro_pneumatic_positioner",
"pwm_generator",
"fullwave_rectifier",
"series_rlc_step"
],
"type": "string",
"description": "Template id from get_templates, e.g. \"inverted_pendulum\" or \"pid_simple\"."
}
}
},
"annotations": {
"title": "Load diagram template",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Returns a structured description of all blocks and connections currently on the canvas. Set "compact" to true for a token-efficient summary.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| compact | boolean | If true, returns a minimal description without full parameter details. |
{
"name": "describe_canvas",
"title": "Describe canvas",
"description": "Returns a structured description of all blocks and connections currently on the canvas. Set \"compact\" to true for a token-efficient summary.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"compact": {
"type": "boolean",
"description": "If true, returns a minimal description without full parameter details."
}
}
},
"annotations": {
"title": "Describe canvas",
"readOnlyHint": true,
"openWorldHint": false
}
}Returns the block types in the library with their descriptions, configurable parameters, and exact input/output port IDs. Without a filter it returns a compact list of all types; with a list of type IDs it returns full details for those types. Example port IDs: Step out "out"; Sum in "in", out "out"; Gain in "in", out "out"; PIDController in "error","reset", out "out"; uPlotDisplay in "signal". Common aliases (e.g. "in" for PID error, "in" for uPlotDisplay signal, "+" / "-" for Subtraction) are resolved automatically.
| Parameter | Type | Description |
|---|---|---|
| filter | array | Optional: List of block type IDs to get full details for. If omitted, returns a compact list of all blocks. |
{
"name": "get_available_blocks",
"title": "List available blocks",
"description": "Returns the block types in the library with their descriptions, configurable parameters, and exact input/output port IDs. Without a filter it returns a compact list of all types; with a list of type IDs it returns full details for those types. Example port IDs: Step out \"out\"; Sum in \"in\", out \"out\"; Gain in \"in\", out \"out\"; PIDController in \"error\",\"reset\", out \"out\"; uPlotDisplay in \"signal\". Common aliases (e.g. \"in\" for PID error, \"in\" for uPlotDisplay signal, \"+\" / \"-\" for Subtraction) are resolved automatically.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional: List of block type IDs to get full details for. If omitted, returns a compact list of all blocks."
}
}
},
"annotations": {
"title": "List available blocks",
"readOnlyHint": true,
"openWorldHint": false
}
}Add a new block to the canvas. Returns the new block ID.
| Parameter | Type | Description |
|---|---|---|
| x * | number | Horizontal position in canvas pixels |
| y * | number | Vertical position in canvas pixels |
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| type * | string | Block type from the library, e.g. "PIDController", "Gain", "Integrator" |
{
"name": "add_block",
"title": "Add block",
"description": "Add a new block to the canvas. Returns the new block ID.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"type",
"x",
"y"
],
"properties": {
"x": {
"type": "number",
"description": "Horizontal position in canvas pixels"
},
"y": {
"type": "number",
"description": "Vertical position in canvas pixels"
},
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"type": {
"type": "string",
"description": "Block type from the library, e.g. \"PIDController\", \"Gain\", \"Integrator\""
}
}
},
"annotations": {
"title": "Add block",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Connect an output port of one block to an input port of another. Automatically resolves common port aliases (e.g., "in" -> "signal" for uPlotDisplay, "in" -> "error" for PIDController, "+" / "-" for Subtraction).
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| toPortId * | string | Input port ID of the destination block, e.g. "in" (aliases like "signal" or PID "error" are supported) |
| toBlockId * | string | ID of the destination block |
| fromPortId * | string | Output port ID of the source block, e.g. "out" (aliases like "signal", "y" are supported) |
| fromBlockId * | string | ID of the source block |
{
"name": "connect_blocks",
"title": "Connect blocks",
"description": "Connect an output port of one block to an input port of another. Automatically resolves common port aliases (e.g., \"in\" -> \"signal\" for uPlotDisplay, \"in\" -> \"error\" for PIDController, \"+\" / \"-\" for Subtraction).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fromBlockId",
"fromPortId",
"toBlockId",
"toPortId"
],
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"toPortId": {
"type": "string",
"description": "Input port ID of the destination block, e.g. \"in\" (aliases like \"signal\" or PID \"error\" are supported)"
},
"toBlockId": {
"type": "string",
"description": "ID of the destination block"
},
"fromPortId": {
"type": "string",
"description": "Output port ID of the source block, e.g. \"out\" (aliases like \"signal\", \"y\" are supported)"
},
"fromBlockId": {
"type": "string",
"description": "ID of the source block"
}
}
},
"annotations": {
"title": "Connect blocks",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Update one or more parameters of an existing block.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| params * | object | Key-value pairs of parameter names and their new values |
| blockId * | string | ID of the block to update |
{
"name": "update_params",
"title": "Update block parameters",
"description": "Update one or more parameters of an existing block.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId",
"params"
],
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"params": {
"type": "object",
"description": "Key-value pairs of parameter names and their new values",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"blockId": {
"type": "string",
"description": "ID of the block to update"
}
}
},
"annotations": {
"title": "Update block parameters",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Delete a block and all its connections from the canvas. This is a destructive action that asks the user for approval in the BlockWerk tab.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| blockId * | string | ID of the block to delete |
{
"name": "delete_block",
"title": "Delete block",
"description": "Delete a block and all its connections from the canvas. This is a destructive action that asks the user for approval in the BlockWerk tab.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId"
],
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"blockId": {
"type": "string",
"description": "ID of the block to delete"
}
}
},
"annotations": {
"title": "Delete block",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Atomically replaces the entire canvas with a complete diagram defined as a BlockWerk project JSON string. The JSON has a "blocks" array (each block needs a unique "id" and "type"; "x"/"y"/"params" are optional) and a "connections" array (each connection needs a unique "id" plus "fromBlockId", "fromPortId", "toBlockId", "toPortId"; a missing id fails validation of the whole load). Block types and port ids are listed by get_available_blocks. This is a destructive action that asks the user for approval in the BlockWerk tab.
| Parameter | Type | Description |
|---|---|---|
| json * | string | Full BlockWerk project JSON, e.g. {"blocks":[{"id":"b1","type":"Step","x":100,"y":100,"params":{}},{"id":"b2","type":"Integrator","x":300,"y":100,"params":{}}],"connections":[{"id":"c1","fromBlockId":"b1","fromPortId":"out","toBlockId":"b2","toPortId":"in"}]} |
{
"name": "load_diagram",
"title": "Load diagram",
"description": "Atomically replaces the entire canvas with a complete diagram defined as a BlockWerk project JSON string. The JSON has a \"blocks\" array (each block needs a unique \"id\" and \"type\"; \"x\"/\"y\"/\"params\" are optional) and a \"connections\" array (each connection needs a unique \"id\" plus \"fromBlockId\", \"fromPortId\", \"toBlockId\", \"toPortId\"; a missing id fails validation of the whole load). Block types and port ids are listed by get_available_blocks. This is a destructive action that asks the user for approval in the BlockWerk tab.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"json"
],
"properties": {
"json": {
"type": "string",
"description": "Full BlockWerk project JSON, e.g. {\"blocks\":[{\"id\":\"b1\",\"type\":\"Step\",\"x\":100,\"y\":100,\"params\":{}},{\"id\":\"b2\",\"type\":\"Integrator\",\"x\":300,\"y\":100,\"params\":{}}],\"connections\":[{\"id\":\"c1\",\"fromBlockId\":\"b1\",\"fromPortId\":\"out\",\"toBlockId\":\"b2\",\"toPortId\":\"in\"}]}"
}
}
},
"annotations": {
"title": "Load diagram",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Exports the current canvas project as a complete BlockWerk JSON string.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
{
"name": "export_diagram",
"title": "Export diagram",
"description": "Exports the current canvas project as a complete BlockWerk JSON string.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
}
}
},
"annotations": {
"title": "Export diagram",
"readOnlyHint": true,
"openWorldHint": false
}
}Returns a link that opens the current diagram on the BlockWerk canvas. The whole project travels compressed inside the URL, so it needs no account and nothing is uploaded. Opening the link in a browser shows the diagram, where the simulation can be run.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
{
"name": "get_share_link",
"title": "Get share link",
"description": "Returns a link that opens the current diagram on the BlockWerk canvas. The whole project travels compressed inside the URL, so it needs no account and nothing is uploaded. Opening the link in a browser shows the diagram, where the simulation can be run.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
}
}
},
"annotations": {
"title": "Get share link",
"readOnlyHint": true,
"openWorldHint": false
}
}Returns a one-time link that connects this conversation to a live BlockWerk browser tab. Opening it shows the current diagram and asks the user to allow the connection; after that the tools run on that tab, including simulations and their results. The link works once and expires after 10 minutes. When a tab is already connected, it says so instead.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
{
"name": "connect_browser_tab",
"title": "Connect a browser tab",
"description": "Returns a one-time link that connects this conversation to a live BlockWerk browser tab. Opening it shows the current diagram and asks the user to allow the connection; after that the tools run on that tab, including simulations and their results. The link works once and expires after 10 minutes. When a tab is already connected, it says so instead.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
}
}
},
"annotations": {
"title": "Connect a browser tab",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Remove all blocks and connections from the canvas. This is a destructive action that asks the user for approval in the BlockWerk tab.
No parameters.
{
"name": "clear_canvas",
"title": "Clear canvas",
"description": "Remove all blocks and connections from the canvas. This is a destructive action that asks the user for approval in the BlockWerk tab.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Clear canvas",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Automatically rearrange all blocks on the canvas into a clean, left-to-right flow.
No parameters.
{
"name": "tidy_layout",
"title": "Tidy layout",
"description": "Automatically rearrange all blocks on the canvas into a clean, left-to-right flow.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Tidy layout",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Executes multiple canvas manipulation and background job commands in a single round-trip. Use "handle" strings to refer to blocks added earlier in the same batch. When adding TextNote annotations, set "anchors" to the handles/IDs of the described blocks so auto-layout keeps each note next to them.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| commands * | array |
{
"name": "batch_commands",
"title": "Run command batch",
"description": "Executes multiple canvas manipulation and background job commands in a single round-trip. Use \"handle\" strings to refer to blocks added earlier in the same batch. When adding TextNote annotations, set \"anchors\" to the handles/IDs of the described blocks so auto-layout keeps each note next to them.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"commands"
],
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"commands": {
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"type": {
"enum": [
"add_block",
"move_block",
"connect_blocks",
"update_params",
"delete_block",
"tidy_layout",
"clear_canvas",
"start_optimization",
"get_job_status",
"cancel_job"
],
"type": "string"
},
"jobId": {
"type": "string"
},
"handle": {
"type": "string"
},
"params": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"anchors": {
"type": "array",
"items": {
"type": "string"
},
"description": "For add_block of a TextNote: handles/IDs of the blocks the note describes. Auto-layout and drag then keep the note beside those blocks."
},
"blockId": {
"type": "string"
},
"setpoint": {
"type": "number"
},
"toPortId": {
"type": "string"
},
"blockType": {
"type": "string"
},
"objective": {
"enum": [
"iae",
"overshoot",
"settling_time"
],
"type": "string"
},
"paramName": {
"type": "string"
},
"toBlockId": {
"type": "string"
},
"fromPortId": {
"type": "string"
},
"fromBlockId": {
"type": "string"
},
"maxIterations": {
"type": "number"
},
"measureBlockId": {
"type": "string"
}
}
}
}
}
},
"annotations": {
"title": "Run command batch",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Analyzes the block diagram structure: detects feedback loops, signal paths, and system order.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
{
"name": "analyze_topology",
"title": "Analyze topology",
"description": "Analyzes the block diagram structure: detects feedback loops, signal paths, and system order.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
}
}
},
"annotations": {
"title": "Analyze topology",
"readOnlyHint": true,
"openWorldHint": false
}
}Returns time series data from a Scope block output for analysis.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| blockId * | string | ID of the Scope block |
| channel | number | Channel index (default: 0) |
{
"name": "get_signal_data",
"title": "Get signal data",
"description": "Returns time series data from a Scope block output for analysis.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId"
],
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"blockId": {
"type": "string",
"description": "ID of the Scope block"
},
"channel": {
"type": "number",
"description": "Channel index (default: 0)"
}
}
},
"annotations": {
"title": "Get signal data",
"readOnlyHint": true,
"openWorldHint": false
}
}Calculates step response metrics from signal data: rise time, settling time, overshoot percentage, and steady-state error.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| blockId * | string | ID of the Scope block |
| channel | number | Channel index of the Scope input to measure (default: 0) |
| setpoint | number | Target setpoint value (default: 1) |
| stepTime | number | Time (s) the step is applied; settling time is counted from it (default: the stepTime of the diagram’s only Step block, else the moment the signal starts to move) |
{
"name": "calculate_metrics",
"title": "Calculate signal metrics",
"description": "Calculates step response metrics from signal data: rise time, settling time, overshoot percentage, and steady-state error.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId"
],
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"blockId": {
"type": "string",
"description": "ID of the Scope block"
},
"channel": {
"type": "number",
"description": "Channel index of the Scope input to measure (default: 0)"
},
"setpoint": {
"type": "number",
"description": "Target setpoint value (default: 1)"
},
"stepTime": {
"type": "number",
"description": "Time (s) the step is applied; settling time is counted from it (default: the stepTime of the diagram’s only Step block, else the moment the signal starts to move)"
}
}
},
"annotations": {
"title": "Calculate signal metrics",
"readOnlyHint": true,
"openWorldHint": false
}
}Retrieves the currently active pinned measurements and their computed values across plotted signals in the Analysis panel.
| Parameter | Type | Description |
|---|---|---|
| blockId | string | Optional blockId or signalId filter |
{
"name": "get_analysis_measurements",
"title": "Get analysis measurements",
"description": "Retrieves the currently active pinned measurements and their computed values across plotted signals in the Analysis panel.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"blockId": {
"type": "string",
"description": "Optional blockId or signalId filter"
}
}
},
"annotations": {
"title": "Get analysis measurements",
"readOnlyHint": true,
"openWorldHint": false
}
}Evaluates signal data against automated design specifications and tolerance corridors (rise time, settling time, overshoot %, steady-state error, min/max limits).
| Parameter | Type | Description |
|---|---|---|
| blockId * | string | ID of the Scope or signal source block |
| channel | number | Channel index of the Scope input to evaluate (default: 0) |
| setpoint | number | Target setpoint value (default: 1) |
| stepTime | number | Time (s) the step is applied; settling time is counted from it (default: the stepTime of the diagram’s only Step block, else the moment the signal starts to move) |
| lowerLimit | number | Absolute lower bound corridor |
| upperLimit | number | Absolute upper bound corridor |
| maxRiseTime | number | Maximum allowable rise time (seconds) |
| maxSettlingTime | number | Maximum allowable settling time (seconds) |
| maxOvershootPercent | number | Maximum allowable overshoot % |
| maxSteadyStateError | number |
Returns the persistent memory object of the Architect.
No parameters.
{
"name": "get_architect_memory",
"title": "Get architect memory",
"description": "Returns the persistent memory object of the Architect.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Get architect memory",
"readOnlyHint": true,
"openWorldHint": false
}
}Updates the persistent memory of the Architect. Provide a JSON object with keys to update/merge.
| Parameter | Type | Description |
|---|---|---|
| updates * | object | Keys and values to store |
{
"name": "update_architect_memory",
"title": "Update architect memory",
"description": "Updates the persistent memory of the Architect. Provide a JSON object with keys to update/merge.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"updates"
],
"properties": {
"updates": {
"type": "object",
"description": "Keys and values to store",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
},
"annotations": {
"title": "Update architect memory",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Checks the consistency of engineering units across the diagram. Detects incompatible connections and missing units.
No parameters.
{
"name": "validate_engineering_units",
"title": "Validate engineering units",
"description": "Checks the consistency of engineering units across the diagram. Detects incompatible connections and missing units.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Validate engineering units",
"readOnlyHint": true,
"openWorldHint": false
}
}Performs pre-flight topological and numerical integrity checks on the canvas. Detects unconnected required input ports, isolated blocks, parameter domain anomalies, and direct algebraic feedthrough loops.
No parameters.
{
"name": "validate_canvas",
"title": "Validate canvas",
"description": "Performs pre-flight topological and numerical integrity checks on the canvas. Detects unconnected required input ports, isolated blocks, parameter domain anomalies, and direct algebraic feedthrough loops.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Validate canvas",
"readOnlyHint": true,
"openWorldHint": false
}
}Captures a visual screenshot preview of the canvas branded with the official BlockWerk watermark badge and returns the live interactive URL to view and edit the diagram online.
| Parameter | Type | Description |
|---|---|---|
| type | string | Which visual region to capture: "canvas", "scope", or "combined" (default: "combined"). |
{
"name": "get_canvas_preview",
"title": "Get canvas preview",
"description": "Captures a visual screenshot preview of the canvas branded with the official BlockWerk watermark badge and returns the live interactive URL to view and edit the diagram online.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"type": {
"enum": [
"canvas",
"scope",
"combined"
],
"type": "string",
"description": "Which visual region to capture: \"canvas\", \"scope\", or \"combined\" (default: \"combined\")."
}
}
},
"annotations": {
"title": "Get canvas preview",
"readOnlyHint": true,
"openWorldHint": false
}
}Triggers a new simulation run with the current canvas state and settings, refreshing the signal data.
| Parameter | Type | Description |
|---|---|---|
| link | string | BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own. |
| reason | string | User-facing explanation of why settings were changed (e.g., Nyquist constraint) |
| duration | number | Duration in seconds |
| sampleTime | number | Optional custom step size (dt) for high frequency or stiff systems (e.g., 0.001) |
{
"name": "run_simulation",
"title": "Run simulation",
"description": "Triggers a new simulation run with the current canvas state and settings, refreshing the signal data.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"link": {
"type": "string",
"description": "BlockWerk share link (https://blockwerk.tech/?project=…) of the diagram, as returned by an earlier result. The connector rebuilds the diagram from it when it holds no diagram of its own."
},
"reason": {
"type": "string",
"description": "User-facing explanation of why settings were changed (e.g., Nyquist constraint)"
},
"duration": {
"type": "number",
"description": "Duration in seconds"
},
"sampleTime": {
"type": "number",
"description": "Optional custom step size (dt) for high frequency or stiff systems (e.g., 0.001)"
}
}
},
"annotations": {
"title": "Run simulation",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Runs simulations across a list of values for one parameter, returning control quality metrics (IAE, overshoot, settling_time, steady_state_error) per value. Requires measureBlockId and setpoint.
| Parameter | Type | Description |
|---|---|---|
| values * | array | List of values to test |
| blockId * | string | ID of the block to tune |
| setpoint | number | Expected final value for error calculation (default: 1) |
| paramName * | string | Parameter key to vary (e.g., "gain", "Kp") |
| measureBlockId | string | Scope or Display block ID to read the controlled signal from |
{
"name": "sweep_parameter",
"title": "Sweep parameter",
"description": "Runs simulations across a list of values for one parameter, returning control quality metrics (IAE, overshoot, settling_time, steady_state_error) per value. Requires measureBlockId and setpoint.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId",
"paramName",
"values"
],
"properties": {
"values": {
"type": "array",
"items": {
"type": "number"
},
"description": "List of values to test"
},
"blockId": {
"type": "string",
"description": "ID of the block to tune"
},
"setpoint": {
"type": "number",
"description": "Expected final value for error calculation (default: 1)"
},
"paramName": {
"type": "string",
"description": "Parameter key to vary (e.g., \"gain\", \"Kp\")"
},
"measureBlockId": {
"type": "string",
"description": "Scope or Display block ID to read the controlled signal from"
}
}
},
"annotations": {
"title": "Sweep parameter",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Finds the optimal value for a single parameter using golden-section search. Minimizes IAE (integral absolute error), overshoot, or settling_time within a [min, max] range. Converges in about 10 simulations.
| Parameter | Type | Description |
|---|---|---|
| max * | number | Upper bound of the search range |
| min * | number | Lower bound of the search range |
| blockId * | string | ID of the block containing the parameter to tune |
| setpoint | number | Target steady-state value (default: 1) |
| objective | string | Metric to minimize (default: iae) |
| paramName * | string | Parameter key to optimize (e.g., "Kp", "gain") |
| maxIterations | number | Maximum simulations to run, 3–20 (default: 10) |
| measureBlockId * | string | Scope or Display block ID to read the controlled signal from |
Optimizes 2–6 parameters simultaneously using Nelder-Mead simplex search, for example Kp, Ki and Kd of a PID controller at once.
| Parameter | Type | Description |
|---|---|---|
| targets * | array | Parameters to optimize simultaneously |
| setpoint | number | Target steady-state value (default: 1) |
| objective | string | Metric to minimize (default: iae) |
| maxIterations | number | Max simulations to run, 5–60 (default: 30) |
| measureBlockId * | string | Scope or Display block to read the controlled signal from |
{
"name": "optimize_multi_parameter",
"title": "Optimize multiple parameters",
"description": "Optimizes 2–6 parameters simultaneously using Nelder-Mead simplex search, for example Kp, Ki and Kd of a PID controller at once.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"targets",
"measureBlockId"
],
"properties": {
"targets": {
"type": "array",
"items": {
"type": "object",
"required": [
"blockId",
"paramName",
"min",
"max"
],
"properties": {
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"blockId": {
"type": "string"
},
"paramName": {
"type": "string"
}
}
},
"description": "Parameters to optimize simultaneously"
},
"setpoint": {
"type": "number",
"description": "Target steady-state value (default: 1)"
},
"objective": {
"enum": [
"iae",
"overshoot",
"settling_time"
],
"type": "string",
"description": "Metric to minimize (default: iae)"
},
"maxIterations": {
"type": "number",
"description": "Max simulations to run, 5–60 (default: 30)"
},
"measureBlockId": {
"type": "string",
"description": "Scope or Display block to read the controlled signal from"
}
}
},
"annotations": {
"title": "Optimize multiple parameters",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Automatically tunes a PID controller using the Ziegler-Nichols ultimate cycle method. Finds the ultimate gain (Ku) and oscillation period (Tu) via binary search, then applies ZN formulas. No prior knowledge of the plant required.
| Parameter | Type | Description |
|---|---|---|
| maxGain | number | Upper bound for Ku search (default: 200) |
| minGain | number | Lower bound for Ku search (default: 0.1) |
| setpoint | number | Desired setpoint value (default: 1) |
| pidBlockId * | string | ID of the PIDController block to tune |
| controlType | string | Controller type to tune for (default: PID) |
| measureBlockId * | string | Scope or Display block showing the controlled variable |
{
"name": "auto_tune_pid",
"title": "Auto-tune PID",
"description": "Automatically tunes a PID controller using the Ziegler-Nichols ultimate cycle method. Finds the ultimate gain (Ku) and oscillation period (Tu) via binary search, then applies ZN formulas. No prior knowledge of the plant required.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"pidBlockId",
"measureBlockId"
],
"properties": {
"maxGain": {
"type": "number",
"description": "Upper bound for Ku search (default: 200)"
},
"minGain": {
"type": "number",
"description": "Lower bound for Ku search (default: 0.1)"
},
"setpoint": {
"type": "number",
"description": "Desired setpoint value (default: 1)"
},
"pidBlockId": {
"type": "string",
"description": "ID of the PIDController block to tune"
},
"controlType": {
"enum": [
"P",
"PI",
"PID"
],
"type": "string",
"description": "Controller type to tune for (default: PID)"
},
"measureBlockId": {
"type": "string",
"description": "Scope or Display block showing the controlled variable"
}
}
},
"annotations": {
"title": "Auto-tune PID",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Analyzes a step response from a plant to identify its First-Order Plus Dead Time (FOPDT) parameters: Gain (K), Time Constant (tau), and Dead Time (theta). Requires a completed simulation with a step input connected to the plant. Returns the calculated parameters.
| Parameter | Type | Description |
|---|---|---|
| blockId * | string | Scope or Display block ID showing the plant output |
| stepTime | number | Time when the step input occurred (default: 0) |
| stepAmplitude | number | Amplitude of the step input (default: 1) |
{
"name": "identify_fopdt",
"title": "Identify FOPDT model",
"description": "Analyzes a step response from a plant to identify its First-Order Plus Dead Time (FOPDT) parameters: Gain (K), Time Constant (tau), and Dead Time (theta). Requires a completed simulation with a step input connected to the plant. Returns the calculated parameters.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId"
],
"properties": {
"blockId": {
"type": "string",
"description": "Scope or Display block ID showing the plant output"
},
"stepTime": {
"type": "number",
"description": "Time when the step input occurred (default: 0)"
},
"stepAmplitude": {
"type": "number",
"description": "Amplitude of the step input (default: 1)"
}
}
},
"annotations": {
"title": "Identify FOPDT model",
"readOnlyHint": true,
"openWorldHint": false
}
}Start a parameter optimization job in the background.
| Parameter | Type | Description |
|---|---|---|
| max * | number | |
| min * | number | |
| blockId * | string | |
| setpoint | number | |
| objective | string | one of ["iae","overshoot","settling_time"] |
| paramName * | string | |
| maxIterations | number | |
| measureBlockId * | string |
{
"name": "start_optimization",
"title": "Start background optimization",
"description": "Start a parameter optimization job in the background.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId",
"paramName",
"min",
"max",
"measureBlockId"
],
"properties": {
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"blockId": {
"type": "string"
},
"setpoint": {
"type": "number"
},
"objective": {
"enum": [
"iae",
"overshoot",
"settling_time"
],
"type": "string"
},
"paramName": {
"type": "string"
},
"maxIterations": {
"type": "number"
},
"measureBlockId": {
"type": "string"
}
}
},
"annotations": {
"title": "Start background optimization",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Check the status and progress of a background job.
| Parameter | Type | Description |
|---|---|---|
| jobId * | string |
{
"name": "get_job_status",
"title": "Get job status",
"description": "Check the status and progress of a background job.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"jobId"
],
"properties": {
"jobId": {
"type": "string"
}
}
},
"annotations": {
"title": "Get job status",
"readOnlyHint": true,
"openWorldHint": false
}
}Cancel a running background job.
| Parameter | Type | Description |
|---|---|---|
| jobId * | string |
{
"name": "cancel_job",
"title": "Cancel job",
"description": "Cancel a running background job.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"jobId"
],
"properties": {
"jobId": {
"type": "string"
}
}
},
"annotations": {
"title": "Cancel job",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}List all recent background jobs and their status.
No parameters.
{
"name": "list_jobs",
"title": "List jobs",
"description": "List all recent background jobs and their status.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "List jobs",
"readOnlyHint": true,
"openWorldHint": false
}
}Analyze the last completed simulation and return a structured diagnosis: signal anomalies (NaN, divergence, oscillation), solver health (rejection rate, efficiency), algebraic loops, and optional stability margins. Returns JSON with severity-tagged findings and actionable suggestions.
| Parameter | Type | Description |
|---|---|---|
| stabilityMargins | object | Optional pre-computed stability margins from a Bode sweep. If omitted, stability analysis is skipped. |
{
"name": "explain_simulation",
"title": "Explain simulation",
"description": "Analyze the last completed simulation and return a structured diagnosis: signal anomalies (NaN, divergence, oscillation), solver health (rejection rate, efficiency), algebraic loops, and optional stability margins. Returns JSON with severity-tagged findings and actionable suggestions.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"stabilityMargins": {
"type": "object",
"required": [
"gainMarginDb",
"phaseMarginDeg",
"stable"
],
"properties": {
"stable": {
"type": "boolean"
},
"gainMarginDb": {
"type": "number"
},
"phaseMarginDeg": {
"type": "number"
}
},
"description": "Optional pre-computed stability margins from a Bode sweep. If omitted, stability analysis is skipped."
}
}
},
"annotations": {
"title": "Explain simulation",
"readOnlyHint": true,
"openWorldHint": false
}
}Computes magnitude and phase frequency response (Bode data) between two blocks. Traces path backwards from outputBlockId. Returns analytic response if the path contains only linear blocks, otherwise runs numerical sweep.
| Parameter | Type | Description |
|---|---|---|
| endFreq | number | End frequency in rad/s (default: 100) |
| startFreq | number | Start frequency in rad/s (default: 0.1) |
| inputBlockId * | string | ID of the input source block |
| outputBlockId * | string | ID of the output measurement block |
| pointsPerDecade | number | Number of points per decade (default: 10) |
{
"name": "get_bode_data",
"title": "Get Bode data",
"description": "Computes magnitude and phase frequency response (Bode data) between two blocks. Traces path backwards from outputBlockId. Returns analytic response if the path contains only linear blocks, otherwise runs numerical sweep.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"inputBlockId",
"outputBlockId"
],
"properties": {
"endFreq": {
"type": "number",
"description": "End frequency in rad/s (default: 100)"
},
"startFreq": {
"type": "number",
"description": "Start frequency in rad/s (default: 0.1)"
},
"inputBlockId": {
"type": "string",
"description": "ID of the input source block"
},
"outputBlockId": {
"type": "string",
"description": "ID of the output measurement block"
},
"pointsPerDecade": {
"type": "number",
"description": "Number of points per decade (default: 10)"
}
}
},
"annotations": {
"title": "Get Bode data",
"readOnlyHint": true,
"openWorldHint": false
}
}Computes FFT (frequency spectrum) of a Scope signal. Returns frequencies and magnitudes.
| Parameter | Type | Description |
|---|---|---|
| blockId * | string | ID of the Scope block |
| channel | number | Channel index (default: 0) |
{
"name": "get_fft_data",
"title": "Get FFT data",
"description": "Computes FFT (frequency spectrum) of a Scope signal. Returns frequencies and magnitudes.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId"
],
"properties": {
"blockId": {
"type": "string",
"description": "ID of the Scope block"
},
"channel": {
"type": "number",
"description": "Channel index (default: 0)"
}
}
},
"annotations": {
"title": "Get FFT data",
"readOnlyHint": true,
"openWorldHint": false
}
}Returns the simulation engine status, including supported solvers, active background jobs, and compilation/WASM capabilities.
No parameters.
{
"name": "get_engine_status",
"title": "Get engine status",
"description": "Returns the simulation engine status, including supported solvers, active background jobs, and compilation/WASM capabilities.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Get engine status",
"readOnlyHint": true,
"openWorldHint": false
}
}Generates standalone production code (C++, Python, Rust) from the current canvas diagram. Returns structured code files, interfaces (inputs/outputs), execution order, and diagnostics.
| Parameter | Type | Description |
|---|---|---|
| target | string | Filter code generation to a specific target language (default: "all") |
| modelName | string | Name of the generated model class/module (e.g., "MotorController", default: "BlockWerkModel") |
| sampleTime | number | Optional custom step size in seconds (default: current canvas sampleTime) |
| encapsulateSubsystems | boolean | Whether to generate encapsulated subsystem classes (default: false) |
{
"name": "generate_code",
"title": "Generate code",
"description": "Generates standalone production code (C++, Python, Rust) from the current canvas diagram. Returns structured code files, interfaces (inputs/outputs), execution order, and diagnostics.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"target": {
"enum": [
"all",
"cpp",
"python",
"rust"
],
"type": "string",
"description": "Filter code generation to a specific target language (default: \"all\")"
},
"modelName": {
"type": "string",
"description": "Name of the generated model class/module (e.g., \"MotorController\", default: \"BlockWerkModel\")"
},
"sampleTime": {
"type": "number",
"description": "Optional custom step size in seconds (default: current canvas sampleTime)"
},
"encapsulateSubsystems": {
"type": "boolean",
"description": "Whether to generate encapsulated subsystem classes (default: false)"
}
}
},
"annotations": {
"title": "Generate code",
"readOnlyHint": true,
"openWorldHint": false
}
}Undoes the last canvas modification made by the AI (add block, connect, delete, update parameter).
No parameters.
{
"name": "undo_last_ai_action",
"title": "Undo last AI action",
"description": "Undoes the last canvas modification made by the AI (add block, connect, delete, update parameter).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Undo last AI action",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Redoes the last undone canvas modification.
No parameters.
{
"name": "redo_last_ai_action",
"title": "Redo last AI action",
"description": "Redoes the last undone canvas modification.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Redo last AI action",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Returns the list of recent canvas operations performed by the AI, showing what can be undone.
No parameters.
{
"name": "get_ai_history",
"title": "Get AI action history",
"description": "Returns the list of recent canvas operations performed by the AI, showing what can be undone.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Get AI action history",
"readOnlyHint": true,
"openWorldHint": false
}
}BlockWerk is a visual block-diagram simulation canvas. These tools drive a live blockwerk.tech browser tab over a relay. START: building needs no pairing and no status check first. - Classic system (PID loop, cruise control, inverted pendulum, DC motor, a filter, a rectifier): call load_template directly; its templateId lists every verified diagram. get_templates gives their descriptions. - Anything else: one load_diagram call, after get_available_blocks for exact block types and port ids. PAIRING: when a blockwerk.tech tab is paired, every tool drives that live canvas. When none is paired, the remote server still answers on its own: you can browse the block library, build and edit a diagram, inspect it, export it, and call get_share_link. Tools that need the browser (optimisation, sweeps, frequency analysis and jobs) require a pairing. To pair, call connect_browser_tab and give the user its link: once they open it and allow the connection, every tool runs on that tab. A share link alone does not pair a tab. SHARING: get_share_link works either way and carries the whole project inside the URL. Offer it whenever the user wants to see, keep or hand off what you built. BUILD A DIAGRAM: - Templates are verified and already run, so load_template removes the guessing about block types, port ids and gains entirely. It works with or without a paired tab. - For a whole diagram in one shot, use load_diagram. It is the fastest and most reliable. Each connection MUST include a unique "id" field; omitting it fails. - For incremental edits, use: get_available_blocks (discover types + port ids) -> add_block -> connect_blocks -> run_simulation. - Parameter keys are normalized automatically: standard mathematical notation (Kp/Ki/Kd/N, frequency, lower/upper, duty_cycle) works for both add_block inline params and update_params. - Never guess block types or port ids — read get_available_blocks first. READING RESULTS (ground truth): - After run_simulation, read get_signal_data for actual values. Scope and Sink blocks automatically trace connected upstream source signals. - Inspect canvas state with describe_canvas / analyze_topology rather than assuming. CODE GENERATION: - To export standalone production code (C++/Arduino, Python, Safe Rust) from any canvas diagram, use generate_code. Use InPort and OutPort blocks to define explicit external hardware I/O interfaces. APPROVALS: clear_canvas, delete_block, load_diagram and load_template ask the user for an in-tab approval click. Use them deliberately; prefer one load_diagram over many destructive calls.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| Maximum allowable steady-state error |
{
"name": "evaluate_spec_mask",
"title": "Evaluate spec mask",
"description": "Evaluates signal data against automated design specifications and tolerance corridors (rise time, settling time, overshoot %, steady-state error, min/max limits).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId"
],
"properties": {
"blockId": {
"type": "string",
"description": "ID of the Scope or signal source block"
},
"channel": {
"type": "number",
"description": "Channel index of the Scope input to evaluate (default: 0)"
},
"setpoint": {
"type": "number",
"description": "Target setpoint value (default: 1)"
},
"stepTime": {
"type": "number",
"description": "Time (s) the step is applied; settling time is counted from it (default: the stepTime of the diagram’s only Step block, else the moment the signal starts to move)"
},
"lowerLimit": {
"type": "number",
"description": "Absolute lower bound corridor"
},
"upperLimit": {
"type": "number",
"description": "Absolute upper bound corridor"
},
"maxRiseTime": {
"type": "number",
"description": "Maximum allowable rise time (seconds)"
},
"maxSettlingTime": {
"type": "number",
"description": "Maximum allowable settling time (seconds)"
},
"maxOvershootPercent": {
"type": "number",
"description": "Maximum allowable overshoot %"
},
"maxSteadyStateError": {
"type": "number",
"description": "Maximum allowable steady-state error"
}
}
},
"annotations": {
"title": "Evaluate spec mask",
"readOnlyHint": true,
"openWorldHint": false
}
}{
"name": "optimize_parameters",
"title": "Optimize parameter",
"description": "Finds the optimal value for a single parameter using golden-section search. Minimizes IAE (integral absolute error), overshoot, or settling_time within a [min, max] range. Converges in about 10 simulations.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"blockId",
"paramName",
"min",
"max",
"measureBlockId"
],
"properties": {
"max": {
"type": "number",
"description": "Upper bound of the search range"
},
"min": {
"type": "number",
"description": "Lower bound of the search range"
},
"blockId": {
"type": "string",
"description": "ID of the block containing the parameter to tune"
},
"setpoint": {
"type": "number",
"description": "Target steady-state value (default: 1)"
},
"objective": {
"enum": [
"iae",
"overshoot",
"settling_time"
],
"type": "string",
"description": "Metric to minimize (default: iae)"
},
"paramName": {
"type": "string",
"description": "Parameter key to optimize (e.g., \"Kp\", \"gain\")"
},
"maxIterations": {
"type": "number",
"description": "Maximum simulations to run, 3–20 (default: 10)"
},
"measureBlockId": {
"type": "string",
"description": "Scope or Display block ID to read the controlled signal from"
}
}
},
"annotations": {
"title": "Optimize parameter",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}