Skip to main content
Glama

pcb_set_layer_visibility

Show or hide a specific PCB layer in the EasyEDA Pro editor by specifying the layer name and visibility state.

Instructions

Show or hide a specific PCB layer.

Args: layer: Layer name string, e.g.: Copper: "TopLayer", "BottomLayer", "MidLayer1"-"MidLayer30" Overlay: "TopOverlay", "BottomOverlay" Mask: "TopPaste", "BottomPaste", "TopSolder", "BottomSolder" Plane: "InternalPlane1"-"InternalPlane16" Other: "DrillGuide", "DrillDrawing", "MultiLayer", "KeepOutLayer", "Mechanical1"-"Mechanical16" visible: True to show, False to hide

Returns: Dictionary with layer name and visibility state

Input Schema

NameRequiredDescriptionDefault
layerYes
visibleNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden, and it omits key traits: whether the change is session-only or persisted to the file, whether it affects plots/exports/DRC, and what happens on an invalid layer name. It does at least disclose the return shape (layer name plus visibility state), which is the one behavioral detail provided.

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?

The purpose is front-loaded in a single sentence, followed by Args and Returns blocks. The layer-name list is long but every entry is actionable given the missing schema enum; only minor trimming is possible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with an output schema, the parameter documentation is complete, but with zero annotation coverage the description leaves persistence scope and error/failure behavior unspecified. Adequate to call correctly, not complete for a mutation tool.

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

Parameters5/5

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

Schema coverage is 0% and the schema has no enums, yet the description enumerates the accepted layer names by category (copper, overlay, mask, plane, mechanical, keep-out, drill) and explains that visible=True shows and False hides. This adds substantial meaning the schema does not provide.

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?

"Show or hide a specific PCB layer" names a concrete verb pair and a concrete resource, so the agent knows exactly what state changes. It does not explicitly distinguish itself from nearby siblings such as pcb_set_layer_color or pcb_get_layer_display, but the visibility focus is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus pcb_set_layer_color, pcb_get_layer_display, or pcb_set_text_visibility, and no prerequisites such as needing an open PCB document. Usage is only inferable from the purpose line.

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