@fload-ai/mcp 0.12.3 → 0.12.4

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
@@ -556,7 +556,8 @@ async function translateReview(input, client) {
556
556
  import { z as z3 } from "zod";
557
557
  function unavailableReasonValue(reason) {
558
558
  if (reason.cause === "not_reported") return "not_reported";
559
- if (reason.reason === "source_filter" || reason.cause === "filtered_out") {
559
+ const hiddenByCause = reason.cause === "filtered_out" || reason.cause === "not_by_dimension";
560
+ if (reason.reason === "source_filter" || hiddenByCause) {
560
561
  return "source_filter";
561
562
  }
562
563
  return "no_data";
@@ -2235,7 +2236,7 @@ function registerTools(server, client, options = {}) {
2235
2236
  tool(
2236
2237
  "get_metrics",
2237
2238
  "Get metrics",
2238
- "Query metric timeseries data for an app. Supports 30+ metrics (proceeds, totalDownloads, activeSubs, sessions, crashes, adSpend, adAvgCPA, etc.). Can query multiple metrics at once. Supports dimensional breakdowns (by country, platform, campaign). Each metric's summary.value is its value over the period, aggregated the right way for that metric: summed for flows like downloads, the latest value for levels like active subscriptions, and total over total for ratios like CPA. It covers summary.effectiveFromDate to summary.effectiveToDate: the requested days, less recent days whose data is not complete yet. Quote summary.value with that range rather than adding up the points. On total reads (no dimension), a requested metric the API could not report is listed with summary null and unavailable {reason, message}: reason not_reported means none of the app's connected sources has ever sent it (say it is not reported); no_data means nothing in this window; source_filter means a source or dimension filter hides it. Never quote it as 0. Use discover_metrics first to see available metrics.",
2239
+ "Query metric timeseries data for an app. Supports 30+ metrics (proceeds, totalDownloads, activeSubs, sessions, crashes, adSpend, adAvgCPA, etc.). Can query multiple metrics at once. Supports dimensional breakdowns (by country, platform, campaign). Each metric's summary.value is its value over the period, aggregated the right way for that metric: summed for flows like downloads, the latest value for levels like active subscriptions, and total over total for ratios like CPA. It covers summary.effectiveFromDate to summary.effectiveToDate: the requested days, less recent days whose data is not complete yet. Quote summary.value with that range rather than adding up the points. A requested metric the API could not report, on a total or a breakdown read, is listed with summary null and unavailable {reason, message}: reason not_reported means none of the app's connected sources has ever sent it (say it is not reported); no_data means nothing in this window; source_filter means a source filter, a dimension filter or the breakdown's dimension hides it (the metric has no rows split that way). Never quote it as 0. Use discover_metrics first to see available metrics.",
2239
2240
  getMetricsSchema,
2240
2241
  getMetrics,
2241
2242
  { readOnlyHint: true, openWorldHint: false }
@@ -2461,7 +2462,7 @@ function registerTools(server, client, options = {}) {
2461
2462
  }
2462
2463
 
2463
2464
  // src/version.ts
2464
- var FLOAD_MCP_VERSION = "0.12.3";
2465
+ var FLOAD_MCP_VERSION = "0.12.4";
2465
2466
 
2466
2467
  // src/server.ts
2467
2468
  async function createMcpServer(_config, client) {