Skip to main content
Glama

get_stats

Read-onlyIdempotent

Summarize instance population by model and aggregate register, leaf, sequential, RAM/ROM counts for a design path or the top design; returns flat totals and optional paginated model details.

Instructions

Summarize instance population by model below path or the top design. Use this for aggregate leaf/sequential/model counts, register bits, and RAM/ROM counts and capacity; use get_hierarchy for actual child instances or get_module_card for one model's ports. This read-only query requires a loaded design. Returns root_model, flat totals, total_models, and an empty models list by default. Pass limit or the returned next_cursor to retrieve model details with pagination. Register bits count modeled flip-flop/latch states, excluding memories; unknown sequential bit counts are reported separately.

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": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoHierarchical instance path; omit to summarize the top design.
limitNoOpt into model details with this page size (maximum 200). Omit limit and cursor for summary only; cursor-only pages default to 25.
cursorNoOpaque next_cursor from the previous response; omit for the first page.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / path / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed2 schema fields changedv0.1.25
    • changedInput schema / properties / limit / description
      Previous value: -"Models per page; defaults to 25 and is capped at 200."New value: +"Opt into model details with this page size (maximum 200). Omit limit and cursor for summary only; cursor-only pages default to 25."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "get_statsOutput",
      +  "type": "object"
      +}
  3. Changed3 schema fields changedv0.1.9
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque next_cursor from the previous response; omit for the first page."
    • addedInput schema / properties / limit / description
      Added value: +"Models per page; defaults to 25 and is capped at 200."
    • addedInput schema / properties / path / description
      Added value: +"Hierarchical instance path; omit to summarize the top design."
  4. First observedv0.1.8

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered elsewhere. The description adds real behavioral context beyond that: the loaded-design prerequisite, the default empty `models` list with opt-in pagination via limit/cursor, and the semantic caveat that register bits count flip-flop/latch states excluding memories with unknown sequential bits reported separately. Those counting semantics are non-obvious and valuable, though return-field structure largely duplicates the output schema.

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?

Front-loaded purpose sentence, then sibling routing, then prerequisite, then return shape and pagination. Every sentence carries information, but the return-shape sentence overlaps with the output schema and could be trimmed.

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?

No required parameters, rich annotations, a full input schema, and an output schema are all present. The description still covers the prerequisites, the default summary-only behavior, and the pagination contract, so an agent has everything needed to call it correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage the baseline is 3, and the schema already spells out path defaulting, limit maximum 200, and cursor-only pages defaulting to 25. The description reinforces the interaction between limit and cursor ('Pass limit or the returned next_cursor to retrieve model details with pagination') and how that relates to the summary-only mode, which clarifies the default empty `models` behavior rather than merely restating field docs.

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 verb and resource: 'Summarize instance population by model below `path` or the top design.' It immediately distinguishes itself from siblings by naming get_hierarchy (actual child instances) and get_module_card (one model's ports), so an agent can tell the three apart without opening a schema.

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?

Explicit when-to-use: aggregate leaf/sequential/model counts, register bits, RAM/ROM counts and capacity. Explicit alternatives: get_hierarchy for child instances, get_module_card for a single model's ports. Also states the precondition that a design must be loaded, which is a genuine usage gate.

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