Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/fix-dns-report-plan-compatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'dns-analytics': patch
---

Fix `dns_report` tool failing with 403 on Free and Pro plan zones

The tool hardcoded `responseCached` in the dimensions list, which is gated to Business plan and above. Free and Pro accounts received:

```
"Response Cached is not available for your plan.
Upgrade to the business plan to see DNS analytics by responseCached."
```

Removing `responseCached` from the default dimensions restores functionality for Free and Pro zones while keeping `responseCode` breakdown available to all plans. Business/Enterprise users who want `responseCached` analytics can query via the `cf-graphql` MCP server's `dnsAnalyticsAdaptiveGroups` dataset.
2 changes: 1 addition & 1 deletion apps/dns-analytics/src/tools/dex-analytics.tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function registerAnalyticTools(agent: DNSAnalyticsMCP) {
const params: ReportGetParams = {
zone_id: zone,
metrics: 'responseTimeAvg,queryCount,uncachedCount,staleCount',
dimensions: 'responseCode,responseCached',
dimensions: 'responseCode',
since: start_date,
}
const result = await client.dns.analytics.reports.get(params)
Expand Down