Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Catalog

catalog
Read-onlyIdempotent

Use catalog before writing a query or SQL when event names, property keys, types, or example values are unknown (GET /catalog). Returns those fields. Pro and metered. Free accounts get 403 PRO_REQUIRED. Examples are email-redacted as [redacted-email]. Bad windows are 400 INVALID_WINDOW. Bad cursors or limits are 400 VALIDATION_ERROR. Unknown project is 404 PROJECT_NOT_FOUND. Rate limits are 429.

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": {
      "project": "<project>"
    },
    "name": "catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays, 1 to 90. Default 7. Do not combine with dates.
limitNoEvents per page, integer from 1 to 18. Defaults to 10.
cursorNoCursor from next_cursor. Not with properties_cursor.
date_toNoEnd date YYYY-MM-DD, at most 90 days after date_from.
projectYesProject name or id
date_fromNoStart date YYYY-MM-DD. Send with date_to.
property_limitNoProperty keys per event, integer from 1 to 40. Defaults to 25.
properties_cursorNoCursor from properties_next_cursor. Not with cursor.

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing plan gating (Pro/metered, free accounts get 403 PRO_REQUIRED), data transformation (emails redacted as [redacted-email]), and the full error taxonomy with codes for invalid windows, cursors/limits, unknown projects, and rate limiting. These are non-obvious operational facts an agent needs before calling.

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-loads the when-to-use rule and the return payload before listing error codes. The error-code run is dense but each entry conveys a distinct recovery signal; slightly more structure (grouping 4xx families) would improve scannability.

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?

Covers purpose, trigger, return fields, auth/plan requirements, redaction behavior, and error handling, while an output schema handles the response shape. For an 8-parameter read tool with a rich schema this is sufficient to call it correctly.

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

Parameters3/5

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

Schema description coverage is 100% — days, limit, cursor, date_from/date_to, property_limit, and properties_cursor are all documented in the schema with ranges, defaults, and mutual-exclusion notes. The description adds no parameter-level meaning beyond that, so baseline 3 applies.

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 concrete action (fetch event names, property keys, types, example values via GET /catalog) and its purpose in the workflow — before writing a query or SQL. An agent can distinguish it from 'query' and from the plain 'properties' sibling because it is explicitly the pre-query discovery step.

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

Usage Guidelines4/5

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

Gives a clear trigger condition: use before writing a query or SQL when event names, property keys, types, or example values are unknown. It does not name an alternative tool for the case where those fields are already known, so it stops short of full when/when-not routing.

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.

Resources