@fload-ai/mcp 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -548,7 +548,7 @@ var getMetricsSchema = z3.object({
548
548
  endDate: z3.string().optional().describe("End date (YYYY-MM-DD). Defaults to today."),
549
549
  granularity: z3.enum(["daily", "weekly", "monthly"]).default("daily").describe("Data granularity"),
550
550
  dimension: z3.string().optional().describe(
551
- 'Optional dimension to break down by (e.g., "storefront" for country, "platform" for device). Use discover_dimensions to see options.'
551
+ 'Optional dimension to break down by (e.g., "storefront" for country, "platform" for device). Use discover_dimensions to see options. Each metric then carries `breakdown`: the period value, share and change of every value, aggregated for the metric type (read its `basis`: "latest" is the last day, never a sum; "daily_average" is an average a day, never a period total). Answer per-country questions from `breakdown`, never by adding up `timeseries`, which keeps only the top values each day.'
552
552
  ),
553
553
  dimensionFilter: z3.string().optional().describe(
554
554
  'Filter to a specific dimension value (e.g., "US" when dimension is "storefront")'
@@ -762,7 +762,10 @@ async function getMetrics(input, client) {
762
762
  displayName: info[name]?.displayName || name,
763
763
  type: info[name]?.type || "count",
764
764
  summary: summaries[name],
765
- change: changes[name] || null
765
+ change: changes[name] || null,
766
+ ...input.dimension && {
767
+ breakdown: summaryResponse.breakdownTotals?.[name] ?? null
768
+ }
766
769
  })),
767
770
  timeseries: data,
768
771
  meta