Skip to main content
Glama
geniuskey

klayout-draw-mcp

by geniuskey

load_gds

Load an existing GDS or OASIS file into the active session to edit, inspect, or DRC-check the layout.

Instructions

Load an existing GDS/OASIS file into the active session for editing.

After loading, keep adding shapes (add_box / add_polygon / ...), inspect or DRC-check it, then save_gds() to write it back. top_cell selects the cell to edit (defaults to the first top cell). Replaces any current in-memory layout.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
top_cellNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that loading replaces any current in-memory layout, which is a critical destructive behavior. It also explains the default behavior of top_cell. No contradictions with annotations (none provided).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with the main action, and each sentence adds value. No unnecessary words. It efficiently conveys the purpose, workflow, and key parameter behavior.

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 simple load tool with two parameters and an output schema present, the description covers purpose, workflow, key behavior, and parameter defaults. It could mention that the layout is now in memory for subsequent edits, but the workflow hint covers that. Overall complete for the context.

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 0%, so the description must compensate. It explains that path is the file to load and top_cell selects the cell to edit with a default. This adds some value but lacks details on path format, file existence checks, or error handling. With only two parameters, minimal coverage is acceptable.

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?

The description clearly states the tool loads an existing GDS/OASIS file into the active session for editing. It uses a specific verb (load) and resource (GDS/OASIS file), and distinguishes itself from siblings like new_layout and save_gds by describing its role in the editing workflow.

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?

The description provides clear context for when to use the tool, describing the workflow of loading, editing, then saving. It implicitly distinguishes from new_layout (for creating new layouts). However, it could explicitly state that this tool should be used when editing existing files, not for creating new ones.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/geniuskey/klayout-draw-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server