Skip to main content
Glama
markhilton
by markhilton

cja_run_trended_report

Analyze how metrics change over time with hourly, daily, weekly, or monthly granularity. Optionally break down trends by a dimension for deeper insights.

Instructions

Run a time-series trend report.

This tool analyzes how metrics change over time at a specified granularity (hourly, daily, weekly, monthly). Optionally break down trends by a dimension.

Args: metrics: List of metric IDs to trend over time. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. granularity: Time granularity - 'hour', 'day', 'week', or 'month' (default: 'day'). dimension: Optional dimension to break down the trend (e.g., 'variables/mobiledevicetype'). dimension_limit: Maximum dimension items if dimension specified (default: 5, max: 50). segment_ids: Optional list of segment IDs to filter the report. dataview_id: Optional data view ID (uses configured default if not provided).

Returns: Dictionary with time-series trend data.

Example queries: - "Show me daily visits trend for last 30 days" - "Trend pageviews by hour for yesterday" - "Show weekly revenue trend broken down by device type" - "Monthly orders trend for Q1 2024"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricsYes
start_dateYes
end_dateYes
granularityNoday
dimensionNo
dimension_limitNo
segment_idsNo
dataview_idNo
Behavior3/5

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

No annotations are provided, so the description must cover behavioral aspects. It indicates the tool runs a report (assumed read-only) and returns a dictionary, but it does not mention side effects, auth requirements, or rate limits. For a reporting tool, this is adequate but not thorough.

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 description is well-structured: a short intro, followed by an Args list, returns note, and example queries. It is front-loaded with the core purpose. While a bit lengthy, it earns its space by providing clear guidance without unnecessary fluff.

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 8 parameters (3 required) and no output schema, the description provides sufficient context: it explains what the tool does, what each parameter does, what it returns, and example use cases. It could detail error handling or output format further, but this is adequate for a reporting tool.

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?

The input schema has 0% description coverage, so the description's 'Args' section adds significant meaning beyond the schema. It explains each parameter in plain language, including examples like 'dimension: Optional dimension to break down the trend (e.g., "variables/mobiledevicetype")', which is highly valuable.

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 'Run a time-series trend report' and explains that it analyzes how metrics change over time with specified granularity. This distinguishes it from siblings like cja_run_breakdown_report or cja_run_report, as it focuses on time-based trends.

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?

The description provides example queries that illustrate when to use the tool, such as 'Show me daily visits trend for last 30 days'. It also explains optional dimension breakdown, giving context for usage, though it does not explicitly state 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