Skip to main content
Glama

Electronics Architect

Replace a cloud design

update_design
DestructiveIdempotent

Replace a cloud design with a new version. The state being replaced is kept in the design's revision history, attributed to this API key by its label, so a person can see exactly what the agent changed and roll it back. Send the whole document — there is no partial update — and include a short message saying what changed, because that is what the history shows. Returns editorUrl: hand it back, and the person lands on the changed design with the change flagged as this key's and the previous state one click away. A design you send without circuits keeps the schematics already stored with it; send "circuits": {} only to delete them. Pass expectedUpdatedAt (the updatedAt get_design returned) so the update is refused (DESIGN_CHANGED) instead of replacing a change someone saved after you read the design; then read it again and apply your change to that copy.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "designId": "<designId>",
      "design": "<design>"
    },
    "name": "update_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional new name.
designYesThe complete new design document (schema v1).
messageNoA one-line note describing the design you are SENDING, e.g. "swapped U2 for a buck to cut 1.8 W". It is stored with this state and follows it into the history when a later save replaces it.
designIdYes
expectedUpdatedAtNoOptional: the updatedAt from get_design. If the design was saved after that (by the engineer in the editor, or another agent), nothing is written and the reply says DESIGN_CHANGED.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / expectedUpdatedAt
      Added value: +{
      +  "description": "Optional: the updatedAt from get_design. If the design was saved after that (by the engineer in the editor, or another agent), nothing is written and the reply says DESIGN_CHANGED.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds the context an agent needs on top: the prior state is preserved in revision history, attributed to the calling key's label, and one click from rollback. It also discloses the optimistic-concurrency refusal path (DESIGN_CHANGED writes nothing) and the return value editorUrl.

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?

Dense but front-loaded: replacement scope first, then retention/attribution, then the circuits edge case, then the concurrency guard. Every sentence carries a distinct operational fact, though the paragraph is long enough that an agent must read it all to catch the circuits rule.

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 destructive, nested-object mutation with no output schema, the description covers what is destroyed, what is retained, how to guard against races, and what the response field is for. Nothing an agent needs in order to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so message and expectedUpdatedAt are already documented in the schema; the description reinforces rather than duplicates them. Its real addition is the circuits omission rule — omitting circuits preserves stored schematics, while "circuits": {} deletes them — which is not expressible from the schema alone.

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?

States a specific verb (Replace) and resource (a cloud design) and immediately qualifies it as a whole-document replacement with no partial update. That scoping distinguishes it cleanly from create_design and from any read path such as get_design.

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?

Gives concrete when-to-use conditions: use it to swap an entire document, pass expectedUpdatedAt from get_design when you want the write refused rather than clobbering a newer save, and re-read before retrying. It does not name create_design as the alternative for new designs, but the guidance present is actionable and specific.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources