Skip to main content
Glama

load_liberty

Register standard-cell models from local Liberty .lib files in the session before loading a gate netlist that instantiates those cells. Enables correct cell resolution during analysis.

Instructions

Register standard-cell models from local Liberty .lib files in the active session. Use this before load_verilog when a gate netlist instantiates those cells; use load_primitives instead for the built-in Xilinx or Yosys model sets. This changes session state and returns {"ok": true}.

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": {
      "files": "<files>"
    },
    "name": "load_liberty"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesOne or more local Liberty .lib file paths.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.25
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "load_libertyOutput",
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.9
    • addedInput schema / properties / files / description
      Added value: +"One or more local Liberty .lib file paths."
  3. First observedv0.1.8

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false and idempotentHint=false, and the description reinforces this with 'This changes session state', so the agent knows the call mutates the session rather than being a pure read. It also discloses the return payload shape, though it says nothing about failure modes, partial loads, or whether previously registered models are replaced or accumulated (relevant given idempotentHint=false).

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?

Three short sentences: what it does, when to use it versus alternatives, and what it does to state along with the return value. Nothing is redundant and the core action is front-loaded.

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

Completeness5/5

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

For a one-parameter, non-idempotent session-mutating loader with an output schema, the definition covers action, prerequisites, sibling routing, state impact, and return shape. An agent has everything needed to invoke it correctly without further probing.

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 description coverage is 100% on the single parameter and the schema already documents the array of .lib paths. The description only restates 'local Liberty .lib files' with no added detail on path resolution, wildcards, or ordering, so the baseline 3 applies.

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 names a concrete verb ('Register') and resource ('standard-cell models from local Liberty .lib files') and scopes it to the active session. It also explicitly distinguishes itself from two siblings, load_verilog and load_primitives, so an agent can pick the right loader without comparing schemas.

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

Usage Guidelines5/5

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

It states a precise precondition ('before load_verilog when a gate netlist instantiates those cells') and names the alternative for a different case ('use load_primitives instead for the built-in Xilinx or Yosys model sets'). Both the when and the when-not are covered.

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