Skip to main content
Glama

Memoria — Deterministic AI Memory & Code Intelligence MCP

Get Namespace Statistics

stats
Read-onlyIdempotent

Retrieve the stored memory count for a single logical namespace alongside rolling 30-day organization quota metrics (read-only, idempotent; consumes 1 Read API call) and return { namespace, memory_count, used_calls_30d, api_call_limit }. Rejects reserved "org:" prefixes on namespace. Use when inspecting how many memories exist inside one specific project or wing namespace; use health instead for an organization-wide connectivity and total-memory check, or list_agent_wings for per-wing counts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "namespace": "<namespace>"
    },
    "name": "stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYesLogical workspace namespace to inspect (for example "my-project" or "wing:qa").

Output Schema

NameRequiredDescriptionDefault
namespaceYesInspected logical namespace.
memory_countYesNumber of memories stored in this namespace.
api_call_limitNoRolling 30-day API call quota, or null for unlimited.
used_calls_30dNoRolling 30-day API calls used by the organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / namespace / description
      Previous value: -"Workspace namespace to inspect."New value: +"Logical workspace namespace to inspect (for example \"my-project\" or \"wing:qa\")."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "api_call_limit": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Rolling 30-day API call quota, or null for unlimited."
      +    },
      +    "memory_count": {
      +      "description": "Number of memories stored in this namespace.",
      +      "type": "integer"
      +    },
      +    "namespace": {
      +      "description": "Inspected logical namespace.",
      +      "type": "string"
      +    },
      +    "used_calls_30d": {
      +      "description": "Rolling 30-day API calls used by the organization.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "namespace",
      +    "memory_count"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint, so the bar is low, but the description still adds genuinely new behavior: it costs '1 Read API call,' and it 'Rejects reserved "org:" prefixes on namespace.' The cost accounting and the input-rejection rule are not derivable from annotations or 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?

Two dense sentences, front-loaded with the operation and scope, followed by usage routing. Minor redundancy: the literal '{ namespace, memory_count, used_calls_30d, api_call_limit }' return listing duplicates what the existing output schema already declares, so that fragment does not fully earn its space.

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 one-parameter read-only tool with full schema coverage, full annotation coverage and an output schema, the description supplies everything an agent needs: purpose, cost, input constraint, return fields and sibling routing. Nothing material is left to inference.

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 there is a single required parameter, so the baseline is 3. The description earns an extra point by adding a validation rule the schema does not express — reserved 'org:' prefixes are rejected — which helps the agent avoid a predictable failure when constructing the namespace value.

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+resource+scope: 'Retrieve the stored memory count for a single logical namespace alongside rolling 30-day organization quota metrics.' It also enumerates the returned fields, so an agent knows exactly what this tool produces versus the sibling health/list_agent_wings tools.

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 routing is given: 'Use when inspecting how many memories exist inside one specific project or wing namespace,' with named alternatives — 'use health instead for an organization-wide connectivity and total-memory check, or list_agent_wings for per-wing counts.' Both the positive condition and the exclusion conditions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.