Skip to main content
Glama
easyeda-mcp-pro
by oaslananka

Modify schematic primitive

easyeda_schematic_modify_primitive

Modify a schematic primitive while preserving omitted fields, with optional transaction snapshots and fail-closed checks for connected or unverified component moves.

Instructions

Modify a schematic primitive while preserving omitted fields. With transactionId and projectId, snapshot and restore after failed writes/read-back. Connected or unverified component moves fail closed before mutation.

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": {
      "primitiveId": "<primitiveId>",
      "property": "<property>",
      "confirmWrite": "<confirmWrite>"
    },
    "name": "easyeda_schematic_modify_primitive"
  }
}

Input Schema

NameRequiredDescriptionDefault
propertyYes
projectIdNoRequired when transactionId is supplied; must match the transaction document.
primitiveIdYes
confirmWriteYesMust be the literal boolean true (not the string "true") to allow this write.
transactionIdNoOptional snapshot-backed project transaction ID.
expectedPcbUuidNoExpected focused PCB document UUID; reject a different focused PCB before a write.
expectedSchematicPageUuidNoExpected focused schematic page UUID; reject a different focused page before a write.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.10
    • addedInput schema / properties / expectedPcbUuid
      Added value: +{
      +  "description": "Expected focused PCB document UUID; reject a different focused PCB before a write.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / expectedSchematicPageUuid
      Added value: +{
      +  "description": "Expected focused schematic page UUID; reject a different focused page before a write.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.19.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed3 schema fields changedv0.19.1
    • addedInput schema / properties / confirmWrite / description
      Added value: +"Must be the literal boolean true (not the string \"true\") to allow this write."
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "Required when transactionId is supplied; must match the transaction document.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / transactionId
      Added value: +{
      +  "description": "Optional snapshot-backed project transaction ID.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. First observedv0.19.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and idempotentHint=false, so the description must add depth, and it does: omitted-field preservation, snapshot/restore on failed writes or read-back, and fail-closed behavior for connected/unverified component moves. It stops short of covering permissions, what "unverified" means concretely, or the confirmWrite gate, so the safety profile is only partly elaborated.

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?

Three tight sentences, front-loaded with the core patch semantics before the transaction and safety clauses. Every sentence carries information; no filler or restatement of the title.

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 7-parameter nested-schema mutation tool with annotations and an output schema, the description covers the two things an agent cannot get from structured fields: patch merge behavior and rollback/fail-closed behavior. Return values need not be explained since an output schema exists, leaving only minor gaps around confirmWrite and UUID preconditions that the schema already handles.

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 71% and the schema already documents transactionId/projectId coupling, confirmWrite, and the expected-UUID preconditions. The description reinforces the transaction semantics but adds no new detail on the opaque `property` object or primitiveId format, so it roughly matches the schema rather than extending 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?

States a specific verb and resource ("Modify a schematic primitive") and adds the key semantic that omitted fields are preserved, which is the distinguishing behavior of a patch-style update. It does not explicitly differentiate from siblings such as easyeda_schematic_delete_primitive or easyeda_schematic_batch_write, relying on the name to do that work.

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?

Implies usage context by describing when the transactionId/projectId path is used and when fail-closed applies, but never states when to choose this over batch_write or verify_write, nor when a transaction is warranted versus a plain write. Guidance is inferred rather than explicit.

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

Deploy Server

Other Tools