naja-scope
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| open_schematicA | Serve an interactive browser schematic of the current design. Returns a local URL to open on the MCP server's machine; requires the schematic extra. Uses the loaded design and supports anonymous #id instances. |
| show_schematic_netA | Draw a pin's net or fan-in cone in the browser schematic. Returns a local viewer URL. Uses the current design; supports anonymous #id paths. |
| export_schematicA | Export a fresh schematic from the loaded design without a browser. Supply 1–200 total targets. Returns file, format and byte size, without embedding image data. Browser annotations and traces are independent. |
| annotate_schematicA | Replace schematic annotations on instances or pins/ports. Returns the local viewer URL and count. Annotations clear when the design changes. |
| get_schematic_selectionA | Return the last browser-selected instance as a naja-scope path, or null. Use the returned path with module-card, source, or hierarchy tools. |
| statusA | Inspect the current in-memory session without changing it. Use this
before design queries to confirm a design is loaded and whether get_intent
is live ( |
| load_systemverilogA | Elaborate local SystemVerilog sources into the active design session.
Use this for SystemVerilog RTL; use load_vhdl for VHDL (beta), or
load_verilog with load_liberty/load_primitives for a
structural gate netlist. Requires at least |
| load_verilogA | Load local gate-level or structural Verilog into the active session.
First call load_liberty for Liberty cells or load_primitives for built-ins;
use load_systemverilog instead for RTL elaboration. Unknown modules fail
unless |
| load_vhdlA | Load VHDL into the active session (beta, restricted two-state RTL subset). Prefer passing every file of the design as one list (any order; units are resolved across files). Single-file calls still work: load package files first, then the top. Package-only files or entities awaiting generics may return top=null. Use hierarchy, cards and connectivity queries on the elaborated design. Use get_source for entity, port, signal, instance and process source references. intent=True enables get_intent for enum literals, record fields, generics and symbolic ranges. Unsupported constructs may fail during beta development. Returns the top summary when elaborated, language and beta status. |
| load_libertyA | Register standard-cell models from local Liberty |
| load_primitivesA | Register primitive models in the active session from either a built-in
|
| save_snapshotA | Write the active design and source metadata to a local directory for fast reload. Use after loading a design; load_snapshot reads the result. Existing snapshot files in the directory may be overwritten. Snapshots are tied to their producing najaeda version, and returns include the saved path. |
| load_snapshotA | Load a compatible save_snapshot directory into the active session in seconds instead of re-elaborating. Use load_systemverilog/load_verilog/load_vhdl when no compatible snapshot exists. The directory must match this najaeda version. intent=True also re-elaborates the warm intent layer from the flist saved in the snapshot (for get_intent). |
| reset_universeA | Discard the active design and all in-memory session state. Use before
starting an unrelated design; do not use merely to inspect status. This is
destructive to the current session but does not delete source or snapshots.
Repeating it is safe and returns |
| resolveA | Resolve a known hierarchical object path to instance, term, or net descriptors with source references. Every list element is literal. Example: path=["top", "u_uart", "tx_o"], bit=0. Use find when the path is unknown; use get_hierarchy to browse children. This read-only query requires a loaded design and returns did-you-mean suggestions on failure. |
| findA | Search case-sensitive object names across the loaded design with a glob.
Use this when an exact path is unknown; use resolve once a path is known or
get_hierarchy to browse structure. Use ["**", "state"] to search
names at any depth. Each glob matches exactly one name; ** matches zero or more levels.
Parameters and package members are source intent: use get_intent.
Returns typed descriptors in |
| get_hierarchyA | Browse the instance tree below |
| get_driversA | List the immediate upstream endpoints that drive a term or net across
hierarchy. Use this for direct sources; use get_loads for downstream readers
or trace_cone for the transitive combinational fanin. Returns leaf drivers
(FF/gate instances with pin, model, source ref) and top-level ports.
Lowered assign glue is traversed rather than reported as an endpoint.
Literal assign drivers include |
| get_loadsA | List the immediate downstream endpoints that consume a term or net
across hierarchy. Use this for direct readers; use get_drivers for upstream
sources or trace_cone for the transitive combinational fanout. Returns leaf
readers
(instances with pin, model, source ref) and top-level ports. Lowered assign
glue is traversed rather than reported as an endpoint.
Capped at limit (default 20, max 200) with a |
| trace_coneA | Trace the combinational fanin/fanout cone of a term/net via naja's
LogicCone. Use this for transitive logic reachability; use get_drivers or
get_loads for only immediate endpoints. direction: fanin|fanout. The cone
crosses hierarchy and
combinatorial arcs and always stops at flops, top ports, and opaque
black-box cells. Returns node_count, counts_by_kind, counts_by_model, and a
|
| get_sourceA | Read the bounded source excerpt that produced an object (for example,
an SV FF instance maps to its |
| get_module_cardA | Deterministic module summary: ports, instance counts by model, sequential cell and register-bit counts, bounded RAM/ROM details (width, depth, ports, initialization preview), and source ref. Clock/reset candidates are name-based guesses; verify before relying on them. Use this for one model's interface; use get_stats for counts below an instance. |
| get_content_hashA | Versioned SHA-256 of a model and its descendants, computed on demand. Compare elaborated content across snapshots using the same format_version. Names and IDs participate; source metadata and primitive definitions are excluded. Track naja_git_hash separately for engine changes. This is not functional equivalence. Large hierarchies can take time to hash. |
| get_statsA | Summarize instance population by model below |
| get_intentA | Retrieve source-level intent that netlist lowering erases (warm-only). Use when the answer is in the SystemVerilog or VHDL type/declaration, not the flattened gates: enum/typedef state names + encodings (incl. PACKAGE typedefs whose members live in another file), and symbolic PARAMETER or generic expressions (the formula behind a baked-in width). ref: an exact-name list (["cva6", "csr_regfile_i", "priv_lvl_q"]), a package member (["riscv::PLEN"]), a parameter (["top", "inst", "PARAM"]), an instance list for its parameters, or ["pkg"] to list package parameters. want: auto | type | fsm_states | parameters. If the intent layer is not loaded, returns a note and you should fall back to get_source. |
| load_intentA | 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 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 26 tools
Nearly every description explicitly delineates its scope against neighbors (get_drivers vs get_loads vs trace_cone; find vs resolve vs get_hierarchy; get_stats vs get_module_card; get_intent vs get_source vs load_intent). Even the notorious near-duplicates (open_schematic, show_schematic_net, export_schematic, annotate_schematic, get_schematic_selection) occupy distinct roles: render, focus, export, mutate, read-back. An agent can select a tool with confidence in virtually every case.
Strong family conventions: get_* for queries, load_* for sources/snapshots, *_schematic for the viewer tools. Minor deviations exist—bare verbs (status, resolve, find, reset_universe) break the verb_noun shape, and the viewer set mixes open_/show_/export_/annotate_ with get_schematic_selection. Still highly predictable and readable.
26 tools is at the heavy end, but the domain (multi-language elaboration, netlist loading, connectivity queries, schematic viewer, snapshots) genuinely justifies breadth and almost nothing looks redundant. It sits only slightly above the comfortable range; a few schematic tools could arguably be merged.
Covers the full lifecycle: session reset, four loader paths plus Liberty/primitive models, snapshot save/load, intent layer, hierarchy/connectivity/source/stats queries, content hashing, and a schematic viewer with selection read-back. Gaps are minor—no explicit close/unload of individual sources, no cone or report export beyond schematics, and no clock/domain or timing-level analysis.