Skip to main content
Get cache statistics for a project including total keys, keys by prefix, and sample keys

Tool details

FieldValue
Nameget_cache_stats
GroupCache

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    }
  },
  "required": [
    "project_reference"
  ],
  "additionalProperties": false,
  "description": "Input schema for the get_cache_stats tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "total_keys": {
      "type": "number",
      "description": "The total keys associated with this tool result."
    },
    "keys_by_prefix": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "description": "Additional structured values associated with this result."
      },
      "description": "Structured keys by prefix details associated with this tool result."
    },
    "sample_keys": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One sample key item associated with this tool result."
      },
      "description": "List of sample keys associated with this tool result."
    }
  },
  "required": [
    "total_keys",
    "keys_by_prefix",
    "sample_keys"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the get_cache_stats tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}