Skip to main content
Glama

Query CTA performance

query_cta_performance
Read-onlyIdempotent

CTA-level click analytics with daily time series.

Each row has date, CTA text, link, type (explicit for data-cta elements, link, or button), clicks, and unique clickers. Use when the user asks which buttons or links people click, or whether a CTA change worked; get_page_structure shows where each CTA sits on the page. Read-only: it changes no page, setting, or analytics data. The data it scans counts toward the workspace's monthly analytics reads, as the dashboard's analytics do, and nothing is billed for it. Dates must be valid calendar dates in YYYY-MM-DD format, and startDate must be on or before endDate. Dates are days in the workspace's time zone, UTC when the workspace has none set, and startDate and endDate are whole days in the zone used. Pass timeZone, an IANA name such as America/New_York, for days in another zone; it changes only this response, never the workspace's time zone. The result's timeZone field names the zone used, and timeZoneSource says where it came from (argument, workspace, or default). A row for today's date in that zone counts only the hours so far. When timeZonePending is set, the workspace is switching to that zone once its history is recomputed. Optionally filter by exact CTA text or by a regular expression for the CTA href.

Combine with query_timeseries for traffic context (clicks ÷ visitors = CTR).

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": {
      "siteId": "<siteId>",
      "startDate": "<startDate>",
      "endDate": "<endDate>"
    },
    "name": "query_cta_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return. Defaults to 100, max 500.
siteIdYesThe ID of the page
ctaTextNoFilter by exact CTA button text
endDateYesEnd date (YYYY-MM-DD)
timeZoneNoIANA time zone name for the days in this response, such as America/New_York, Europe/Berlin, or Asia/Tokyo. Leave it out for the workspace's time zone (UTC when none is set). It affects only this response: the workspace's time zone stays as it is, and only the workspace's owner changes it, in the dashboard's Settings. Abbreviations such as EST and offsets such as +09:00 aren't accepted.
startDateYesStart date (YYYY-MM-DD)
ctaHrefPatternNoFilter by CTA link pattern as a valid regular expression (e.g. 'https://shop\\.example\\.com/.*')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The site ID"New value: +"The ID of the page"
  3. Changed1 schema field changed
    • addedInput schema / properties / timeZone
      Added value: +{
      +  "description": "IANA time zone name for the days in this response, such as America/New_York, Europe/Berlin, or Asia/Tokyo. Leave it out for the workspace's time zone (UTC when none is set). It affects only this response: the workspace's time zone stays as it is, and only the workspace's owner changes it, in the dashboard's Settings. Abbreviations such as EST and offsets such as +09:00 aren't accepted.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

While annotations already cover read-only, non-destructive, closed-world, and idempotent behavior, the description adds material context: analytics reads count toward the workspace's monthly quota, nothing is billed, dates are interpreted in the workspace time zone, timeZone only affects this response, and today's row is partial. It also explains timeZoneSource and timeZonePending, which are not in the annotations.

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 front-loaded with purpose, row shape, and usage guidance, and most sentences earn their place. The time-zone paragraph is dense and slightly long, but it carries important behavioral detail rather than repetition.

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?

There is no output schema, so the description appropriately explains the returned row fields and response-level timeZone/timeZoneSource. Given the tool's filters, date constraints, quota implications, and sibling relationships, an agent has enough information to invoke it correctly.

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 description coverage is 100%, so the baseline is 3, but the description adds useful meaning for dates and timeZone beyond the schema, including calendar-date validation, startDate <= endDate, workspace/default time zone behavior, and that timeZone affects only this response. It also explains exact-text and regex filtering for CTAs, though it does not add much for limit or siteId.

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 states a specific resource and verb: CTA-level click analytics with daily time series, and names the row fields (date, CTA text, link, type, clicks, unique clickers). It distinguishes this tool from siblings by explaining that get_page_structure shows placement, while query_timeseries supplies traffic context for CTR.

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?

It gives explicit use cases: when the user asks which buttons or links people click, or whether a CTA change worked. It also names relevant alternatives: get_page_structure for placement and query_timeseries for traffic context.

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.