Skip to main content
Glama

lib_generate_footprint_ipc7351

Generate IPC-7351B compliant KiCad footprints for common SMD and through-hole packages, choose density levels, and save them as .kicad_mod files.

Instructions

Generate an IPC-7351B compliant KiCad footprint (.kicad_mod) and save it.

Supported packages: 0201, 0402, 0603, 0805, 1206, 1210, 2512 (chip passives), SOT-23, SOIC, SOP, SSOP, TSSOP (dual SMD), QFP, LQFP, TQFP (quad flat), QFN, DFN (no-lead), BGA (ball grid array), PinHeader (through-hole).

Args: package: Package family name (case-insensitive). density: IPC-7351B density level: A (generous), B (nominal), C (compact). pin_count: Number of leads / balls (required for multi-lead packages). pitch_mm: Lead pitch in mm. body_l_mm: Body length in mm. body_w_mm: Body width in mm (QFP only; defaults to body_l_mm). rows: BGA rows or PinHeader row count (1 or 2). exposed_pad_mm: Exposed pad size for QFN in mm. ball_diameter_mm: BGA ball diameter in mm. output_path: Optional relative path inside output_dir. Defaults to footprints/<package>.kicad_mod.

Returns: Confirmation with the saved file path, or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNo
densityNoB
packageYes
pitch_mmNo
body_l_mmNo
body_w_mmNo
pin_countNo
output_pathNo
exposed_pad_mmNo
ball_diameter_mmNo

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 of behavioral disclosure. It explicitly states the side effect of saving a file, the default output path, and the return behavior (confirmation with file path or error). However, it does not mention whether the tool overwrites existing files, creates directories, or depends on a project context, which would improve transparency.

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 description is well-structured into clear sections: purpose, supported packages, Args, and Returns. While longer than a minimal two-sentence description, each element adds necessary value and there is no redundant or fluff content. The package list is extensive but informative for selection.

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 the 10 parameters, empty annotations, and lack of schema descriptions, the description covers the essential aspects: purpose, supported package types, all parameter semantics, output location, and return value. It does not enumerate every possible failure mode or prerequisite (e.g., existence of output_dir), but it is sufficient for correct tool invocation in most scenarios.

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?

The input schema has 0% description coverage, but the description's Args section explains every parameter in detail, including units, defaults, and special cases (e.g., body_w_mm defaulting to body_l_mm for QFP). This fully compensates for the missing schema documentation and makes parameter usage clear.

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 opens with 'Generate an IPC-7351B compliant KiCad footprint (.kicad_mod) and save it', which clearly states the specific verb (generate), resource (footprint), and output format. It also lists supported package families, making it easy to distinguish from sibling tools like lib_search_footprints or lib_create_custom_symbol.

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 indicates when to use the tool by listing supported packages and providing parameter explanations, giving a clear context for generating footprints per IPC-7351B. It does not explicitly mention alternatives or exclusions, but the package list establishes a clear applicability boundary and the default behavior is well described.

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/Valxyria/kicad-mcp-pro'

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