Skip to main content
Glama

get_index_stats

Read-onlyIdempotent

Aggregate local-cache metrics like site, element, technology and tag frequencies plus windowed palette, jury score and motion-DNA stats to inspect design data trends without network calls.

Instructions

Aggregate metrics over the LOCAL cache only (zero network). ALL-TIME: site count, gallery element count and technology/tag frequency; elements.corpus discloses the whole locally cached element set (total, gallery, site, categorized/uncategorized, builtWithKnown, fetched date range) while elements.total stays gallery-only. WINDOWED by windowDays (default 90, 1-3650): cached details, palette colour frequency and jury score stats from at most the 500 most recently fetched detail rows, plus Motion DNA library frequency. Each metric carries coverage labelled 'locally cached subset'; windowDays/detailsCached/detailParseCap appear only on windowed metrics (sites/elements/technologies are explicitly all-time). top caps each frequency list (default 10, 1-50). Aggregates only - no site slugs or titles. Personal, non-commercial use.

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_index_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoMax rows per frequency list (technologies, colours, motion libs)
windowDaysNoWindow for detail-derived metrics only (details, colours, scores, motion DNA); sites/elements/technologies are all-time

Output Schema

NameRequiredDescriptionDefault
topYes
noteYes
sitesYes
colorsYes
scoresYes
detailsYes
elementsYes
motionLibsYes
windowDaysYes
technologiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.18.0
    • addedOutput schema / properties / elements / properties / corpus
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "builtWithKnown": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "categorized": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "fetchedAtUnit": {
      +      "const": "unix-ms",
      +      "type": "string"
      +    },
      +    "fetchedNewestAt": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "fetchedOldestAt": {
      +      "anyOf": [
      +        {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "gallery": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "note": {
      +      "const": "locally cached subset",
      +      "type": "string"
      +    },
      +    "site": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "total": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "uncategorized": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "gallery",
      +    "site",
      +    "categorized",
      +    "uncategorized",
      +    "builtWithKnown",
      +    "fetchedOldestAt",
      +    "fetchedNewestAt",
      +    "fetchedAtUnit",
      +    "note"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv1.17.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "colors": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "detailParseCap": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "detailsCached": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "windowDays": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note",
      +            "detailsCached",
      +            "windowDays",
      +            "detailParseCap"
      +          ],
      +          "type": "object"
      +        },
      +        "detailsParsed": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "hint": {
      +          "type": "string"
      +        },
      +        "insufficient": {
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "count": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "hex": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "hex",
      +              "count"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "sample": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "items",
      +        "detailsParsed",
      +        "sample",
      +        "insufficient",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "details": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "cached": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "detailParseCap": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "detailsCached": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "windowDays": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note",
      +            "detailsCached",
      +            "windowDays",
      +            "detailParseCap"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "cached",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "elements": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note"
      +          ],
      +          "type": "object"
      +        },
      +        "total": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "total",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "motionLibs": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "detailParseCap": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "detailsCached": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "windowDays": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note",
      +            "detailsCached",
      +            "windowDays",
      +            "detailParseCap"
      +          ],
      +          "type": "object"
      +        },
      +        "hint": {
      +          "type": "string"
      +        },
      +        "insufficient": {
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "count": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "lib": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "lib",
      +              "count"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "rows": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "sample": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "items",
      +        "rows",
      +        "sample",
      +        "insufficient",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "scores": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "avg": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "detailParseCap": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "detailsCached": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "windowDays": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note",
      +            "detailsCached",
      +            "windowDays",
      +            "detailParseCap"
      +          ],
      +          "type": "object"
      +        },
      +        "hint": {
      +          "type": "string"
      +        },
      +        "insufficient": {
      +          "type": "boolean"
      +        },
      +        "median": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "n": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "sample": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "n",
      +        "avg",
      +        "median",
      +        "sample",
      +        "insufficient",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "sites": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note"
      +          ],
      +          "type": "object"
      +        },
      +        "total": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "total",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "technologies": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "coverage": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "note": {
      +              "const": "locally cached subset",
      +              "type": "string"
      +            },
      +            "sitesTotal": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "sitesTotal",
      +            "note"
      +          ],
      +          "type": "object"
      +        },
      +        "distinct": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "items": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "count": {
      +                "maximum": 9007199254740991,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "tag": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tag",
      +              "count"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "items",
      +        "distinct",
      +        "coverage"
      +      ],
      +      "type": "object"
      +    },
      +    "top": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    "windowDays": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "windowDays",
      +    "top",
      +    "sites",
      +    "details",
      +    "elements",
      +    "technologies",
      +    "colors",
      +    "scores",
      +    "motionLibs",
      +    "note"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changedv1.14.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Addedv1.13.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds context the annotations cannot: zero network access, every metric labelled as a 'locally cached subset', windowed detail stats drawn from at most 500 most recently fetched rows, and explicit disclosure of which metrics are all-time versus windowed. The only gap is that data staleness is described qualitatively ('fetched date range') rather than as a concrete freshness rule.

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 most decision-relevant constraint ('LOCAL cache only (zero network)') is front-loaded, and the all-time versus windowed split is stated before the details. It is dense and slightly overpacked with field-level notes (elements.corpus versus elements.total) that could be read from the output schema, but no sentence is filler.

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 two-parameter read-only aggregation tool with a full output schema, the description covers purpose, scope, data provenance, row caps, defaults and coverage labelling. An agent can call it correctly and interpret the aggregate numbers without further documentation.

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?

Schema coverage is 100% and both parameters are documented there, so baseline is 3. The description still adds meaning beyond the schema: windowDays/detailsCached/detailParseCap appear only on windowed metrics, which clarifies that the parameters govern a distinguishable subset of the returned output, and it restates that top caps each frequency list. It could go further by noting interactions between top and the 500-row parse cap.

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 a specific verb and resource ('Aggregate metrics over the LOCAL cache') and immediately scopes what is aggregated: all-time site/gallery/technology counts versus windowed detail metrics. The line 'Aggregates only - no site slugs or titles' separates it from row-level sibling tools like get_site_elements or search_directory without either schema being opened.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'Aggregates only - no site slugs or titles' tells an agent this is not for per-site lookups, and 'LOCAL cache only (zero network)' implies it cannot warm missing data. No sibling alternative is named for the case where an agent needs listings, freshness, or uncached data, so the agent must infer routing.

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