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

Delete schematic primitives

easyeda_schematic_delete_primitive

Delete schematic primitives by UUID, optionally with transaction-backed rollback, and verify persistence by reopening the project to confirm removal.

Instructions

Delete primitives by UUID. Single text deletion is supported only on EasyEDA Pro 4.1.105; unknown versions and mixed batches fail closed. Native success does not prove persistence: cold reopen to verify. Use projectId + transactionId for rollback-backed deletion. Without transactionId, deletion is standalone.

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": {
      "primitiveIds": "<primitiveIds>",
      "confirmWrite": "<confirmWrite>"
    },
    "name": "easyeda_schematic_delete_primitive"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdNoRequired when transactionId is supplied; must match the transaction document.
confirmWriteYesMust be the literal boolean true (not the string "true") to allow this write.
primitiveIdsYes
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. Changed6 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"
    • addedInput schema / properties / primitiveIds / items / minLength
      Added value: +1
    • addedInput schema / properties / primitiveIds / minItems
      Added value: +1
    • 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"
      +}
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changedv0.19.1
    • addedInput schema / properties / confirmWrite / description
      Added value: +"Must be the literal boolean true (not the string \"true\") to allow this write."
  4. First observedv0.19.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false and idempotentHint=false; the description adds substantial behavioral context beyond that: a version gate (single text deletion only on EasyEDA Pro 4.1.105), fail-closed behavior for unknown versions and mixed batches, the caveat that native success does not prove persistence, and the transaction-id rollback semantics.

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?

Front-loaded with the core action, then layered constraints, with no filler sentences. The style is telegraphic ('unknown versions and mixed batches fail closed'), which compresses well but slightly reduces first-read clarity.

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 six parameters and an existing output schema, the definition covers the risky parts: version limits, fail-closed conditions, persistence verification, and transaction semantics. It does not discuss the expected* guard parameters, though those are already documented in the schema.

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 high (83%), so the baseline is 3, but the description adds real meaning: it explains the coupling of projectId with transactionId and what happens when transactionId is omitted. This goes beyond the schema's per-field wording and clarifies the interaction between parameters.

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 immediately: 'Delete primitives by UUID.' That is enough for an agent to distinguish it from easyeda_schematic_modify_primitive or the add_* siblings without opening a schema, but it never names a sibling or states an explicit boundary against them.

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 a clear mode-selection rule: use projectId + transactionId when rollback-backed deletion is wanted, otherwise the deletion is standalone. It also tells the agent to cold-reopen to verify persistence. What is missing is any explicit when-not guidance, e.g. when to prefer modify_primitive or batch_write instead of deleting.

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