Skip to main content
Glama
markhilton
by markhilton

cja_run_report

Run a Customer Journey Analytics report to break down metrics by dimension over a specified date range.

Instructions

Run a CJA report with specified dimension and metrics over a date range.

This is the primary tool for analyzing data. It breaks down one or more metrics by a dimension over a specified time period.

IMPORTANT: Before calling this tool, check the 'cja://quick-reference' resource for common dimension and metric IDs. For daily trends, use 'variables/daterangeday'. For sessions, use 'metrics/visits'. The resources provide commonly used IDs.

Args: dimension: Dimension ID to break down (e.g., 'variables/daterangeday', 'variables/page'). metrics: List of metric IDs to measure (e.g., ['metrics/visits', 'metrics/pageviews']). start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. limit: Maximum number of dimension items to return (default: 10, max: 50000). dataview_id: Optional data view ID (uses configured default if not provided).

Returns: Dictionary with report data including dimension items and metric values.

Common patterns (check cja://quick-reference resource for more): - Daily sessions: dimension='variables/daterangeday', metrics=['metrics/visits'] - Top pages: dimension='variables/page', metrics=['metrics/pageviews'] - Device breakdown: dimension='variables/mobiledevicetype', metrics=['metrics/visits']

Example queries: - "Show me daily visits for January 2024" - "What are the top pages by pageviews last month?" - "Analyze sessions by device type for Q1"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dimensionYes
metricsYes
start_dateYes
end_dateYes
limitNo
dataview_idNo
Behavior3/5

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

No annotations exist, so description bears full burden. It explains the function and return type but omits details like caching, pagination, or rate limits. The note about limit max and default is helpful.

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?

Well-structured with sections: overview, important note, args, returns, patterns, examples. Front-loaded with purpose. Could be slightly more concise but remains clear and organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 params, no output schema, and no annotations, the description covers inputs well and explains return type. Common patterns and example queries add context. Missing details on output structure, but adequate for usage.

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

Parameters5/5

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

Schema coverage is 0%, but the description documents all 6 parameters with names, types, defaults, and examples. It adds meaning beyond the schema, especially for dimension and metrics with common ID references.

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 clearly states it runs a CJA report with dimension and metrics over a date range, explicitly calling it 'the primary tool for analyzing data.' It distinguishes from siblings like breakdown and trended reports through its general nature.

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?

It advises checking the quick-reference resource for IDs and provides common patterns and example queries. However, it does not explicitly contrast with sibling tools or specify when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/markhilton/adobe-cja-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server