Skip to main content
Glama

load_intent

Destructive

Makes source-intent data available to get_intent after a SystemVerilog or VHDL load that did not retain intent, re-elaborating from files or flist when needed.

Instructions

Make the warm source-intent layer available for get_intent. Use after a SystemVerilog or VHDL load that did not retain intent; do not call for gate-level Verilog, and prefer intent=True on the initial load. This is a no-op when the link is already live; otherwise it replaces the active universe by re-elaborating from explicit or captured flist/files. Returns intent_loaded; missing inputs produce a structured error.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "load_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoTop module/entity name; omit to reuse the captured or inferred top.
filesNoRTL source paths; omit to reuse captured load inputs.
flistNoSystemVerilog file-list path (not VHDL); omit to reuse captured load inputs.

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_intentOutput",
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.1.23
    • changedInput schema / properties / files / description
      Previous value: -"SystemVerilog source paths; omit to reuse captured load inputs."New value: +"RTL source paths; omit to reuse captured load inputs."
    • changedInput schema / properties / flist / description
      Previous value: -"SystemVerilog file-list path; omit to reuse captured load inputs."New value: +"SystemVerilog file-list path (not VHDL); omit to reuse captured load inputs."
    • changedInput schema / properties / top / description
      Previous value: -"Top module name; omit to reuse the captured or inferred top."New value: +"Top module/entity name; omit to reuse the captured or inferred top."
  3. Changed3 schema fields changedv0.1.9
    • addedInput schema / properties / files / description
      Added value: +"SystemVerilog source paths; omit to reuse captured load inputs."
    • addedInput schema / properties / flist / description
      Added value: +"SystemVerilog file-list path; omit to reuse captured load inputs."
    • addedInput schema / properties / top / description
      Added value: +"Top module name; omit to reuse the captured or inferred top."
  4. First observedv0.1.8

TDQS

A4.6/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description explains what is actually destroyed or replaced: the active universe is replaced by re-elaborating from explicit or captured flist/files. It also discloses the no-op condition when the link is already live, the return field `intent_loaded`, and that missing inputs yield a structured error, which goes well past the annotations.

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?

Four compact sentences, front-loaded with the purpose and the routing rule before the mechanics. The phrasing is dense with domain jargon ('warm source-intent layer', 'active universe', 'link is live'), but each sentence carries distinct information.

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?

The tool is destructive and complex, and the definition covers when to call, when to skip, what is replaced, what a no-op looks like, and what is returned. An output schema and full parameter descriptions exist, so no further return-value detail is required.

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 100%, so `top`, `files`, and `flist` are already documented, including the 'omit to reuse captured inputs' behavior. The description reinforces this by mentioning 'explicit or captured flist/files', but adds no new syntax or precedence rules. A baseline 3 is appropriate.

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?

States a specific action and target: it makes the source-intent layer available so that get_intent can use it. It also distinguishes itself from the load_* siblings by naming the exact situation it complements (a SystemVerilog/VHDL load that dropped intent).

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 gives an explicit trigger (after an SV/VHDL load that did not retain intent), an explicit exclusion (do not call for gate-level Verilog), and a preferred alternative (pass `intent=True` on the initial load). All three routing decisions are stated, not implied.

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