Public Beta
Not set

Experience

Changes how pages explain things, never what you can do.

More

Experience

Changes how pages explain things, never what you can do.

Sign inGet started

Marketing Analytics v0.2.1 · generic

Archive SHA-256 8e33c2b8ecf72e82b9edc3bf24453b7c7f30311d425df18c285750c66a34b408 · 48.8 KB · built Nov 27, 2026

agent.json

{
  "id": "agentrove.marketing-analytics",
  "name": "Marketing Analytics",
  "version": "0.2.1",
  "license": "MIT",
  "summary": "Analyses CSV exports you provide: funnel conversion, first/last-touch UTM attribution, weekly cohort retention and campaign comparison from session/event exports, plus spend efficiency (CTR, CPC, CPA, ROAS) from aggregated ad or channel reports. Flags small samples; never invents numbers.",
  "description": "Every figure is computed from the rows in your files; rows that cannot be read are counted and reported, never guessed. Rates carry 95% Wilson intervals, campaign differences get a two-proportion z-test, and small samples are flagged. channel_performance reads aggregated spend exports (currency symbols, thousands separators and decimal commas, Total rows skipped, mixed currencies refused). Outputs JSON plus Markdown. Works fully offline.",
  "sdk_import": "../../../sdk/index.js",
  "entry": {
    "module": "src/index.js",
    "cli": "bin/cli.js",
    "mcp": "bin/mcp.js"
  },
  "tools": [
    {
      "name": "funnel",
      "description": "Ordered funnel conversion over distinct users: each step must happen at or after the previous one (optionally within window_days of step 1). Returns users per step, step-to-step and overall conversion with 95% intervals.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "steps"
        ],
        "properties": {
          "data": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "CSV exports you provide (sessions, events, signups, downloads). Header row required; comma, semicolon or tab delimited.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "csv"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "csv": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000000
                },
                "default_event": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Event name for every row when the file has no event column (e.g. signup for a signups export, session for a sessions export)."
                }
              }
            }
          },
          "columns": {
            "type": "object",
            "additionalProperties": false,
            "description": "Header names to use. Defaults try common names (user_id/client_id/anonymous_id, timestamp/date/created_at, event/event_name, utm_source, utm_medium, utm_campaign, session_id).",
            "properties": {
              "user_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "event": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "session_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            }
          },
          "touch_events": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": "Only rows with these events count as marketing touches. Default: any row with a UTM value."
          },
          "case_sensitive_utm": {
            "type": "boolean",
            "description": "Default false: UTM values are trimmed and lowercased before grouping."
          },
          "steps": {
            "type": "array",
            "minItems": 2,
            "maxItems": 10,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "window_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "steps",
          "overall",
          "definition",
          "data_quality",
          "notes",
          "warnings"
        ],
        "properties": {
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "step",
                "event",
                "users",
                "conversion_from_previous",
                "conversion_from_first"
              ],
              "properties": {
                "step": {
                  "type": "integer"
                },
                "event": {
                  "type": "string"
                },
                "users": {
                  "type": "integer"
                },
                "conversion_from_previous": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "conversion_from_first": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "drop_off_from_previous": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "ci95_from_first": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "overall": {
            "type": "object",
            "required": [
              "entered",
              "completed",
              "conversion"
            ],
            "properties": {
              "entered": {
                "type": "integer"
              },
              "completed": {
                "type": "integer"
              },
              "conversion": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "ci95": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "number"
                }
              }
            }
          },
          "definition": {
            "type": "string"
          },
          "data_quality": {
            "type": "object",
            "required": [
              "datasets",
              "rows_used",
              "users"
            ],
            "properties": {
              "datasets": {
                "type": "array"
              },
              "rows_used": {
                "type": "integer"
              },
              "users": {
                "type": "integer"
              },
              "date_range": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "attribution",
      "description": "First-touch and last-touch UTM attribution of conversion events (e.g. signup, download) to the user's touches within lookback_days before each conversion. Conversions with no touch are reported as unattributed, never assigned.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "conversion_events"
        ],
        "properties": {
          "data": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "CSV exports you provide (sessions, events, signups, downloads). Header row required; comma, semicolon or tab delimited.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "csv"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "csv": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000000
                },
                "default_event": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Event name for every row when the file has no event column (e.g. signup for a signups export, session for a sessions export)."
                }
              }
            }
          },
          "columns": {
            "type": "object",
            "additionalProperties": false,
            "description": "Header names to use. Defaults try common names (user_id/client_id/anonymous_id, timestamp/date/created_at, event/event_name, utm_source, utm_medium, utm_campaign, session_id).",
            "properties": {
              "user_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "event": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "session_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            }
          },
          "touch_events": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": "Only rows with these events count as marketing touches. Default: any row with a UTM value."
          },
          "case_sensitive_utm": {
            "type": "boolean",
            "description": "Default false: UTM values are trimmed and lowercased before grouping."
          },
          "conversion_events": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "lookback_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365,
            "description": "Default 30."
          },
          "group_by": {
            "enum": [
              "source",
              "source_medium",
              "campaign",
              "source_medium_campaign"
            ],
            "description": "Default source_medium_campaign."
          },
          "count": {
            "enum": [
              "first_per_user",
              "all"
            ],
            "description": "Default first_per_user: one conversion per user per event."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "rows",
          "conversions",
          "attributed",
          "unattributed",
          "lookback_days",
          "definition",
          "data_quality",
          "notes",
          "warnings"
        ],
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "channel",
                "first_touch",
                "last_touch"
              ],
              "properties": {
                "channel": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "medium": {
                  "type": "string"
                },
                "campaign": {
                  "type": "string"
                },
                "first_touch": {
                  "type": "integer"
                },
                "last_touch": {
                  "type": "integer"
                },
                "first_touch_share": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "last_touch_share": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "by_event": {
                  "type": "object"
                }
              }
            }
          },
          "conversions": {
            "type": "integer"
          },
          "attributed": {
            "type": "integer"
          },
          "unattributed": {
            "type": "integer"
          },
          "lookback_days": {
            "type": "integer"
          },
          "definition": {
            "type": "string"
          },
          "data_quality": {
            "type": "object",
            "required": [
              "datasets",
              "rows_used",
              "users"
            ],
            "properties": {
              "datasets": {
                "type": "array"
              },
              "rows_used": {
                "type": "integer"
              },
              "users": {
                "type": "integer"
              },
              "date_range": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "cohort_retention",
      "description": "Weekly cohorts (ISO weeks starting Monday, UTC) by each user's first event (or cohort_event), with the share active in each following week. Weeks after the end of your data are marked not observed instead of 0%.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "CSV exports you provide (sessions, events, signups, downloads). Header row required; comma, semicolon or tab delimited.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "csv"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "csv": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000000
                },
                "default_event": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Event name for every row when the file has no event column (e.g. signup for a signups export, session for a sessions export)."
                }
              }
            }
          },
          "columns": {
            "type": "object",
            "additionalProperties": false,
            "description": "Header names to use. Defaults try common names (user_id/client_id/anonymous_id, timestamp/date/created_at, event/event_name, utm_source, utm_medium, utm_campaign, session_id).",
            "properties": {
              "user_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "event": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "session_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            }
          },
          "touch_events": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": "Only rows with these events count as marketing touches. Default: any row with a UTM value."
          },
          "case_sensitive_utm": {
            "type": "boolean",
            "description": "Default false: UTM values are trimmed and lowercased before grouping."
          },
          "cohort_event": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "activity_events": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "weeks": {
            "type": "integer",
            "minimum": 1,
            "maximum": 52,
            "description": "Week offsets after week 0. Default 8."
          },
          "small_cohort_size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "Cohorts smaller than this get a note. Default 20."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "cohorts",
          "weeks",
          "data_end",
          "definition",
          "data_quality",
          "notes",
          "warnings"
        ],
        "properties": {
          "cohorts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "cohort_week",
                "week_start_date",
                "size",
                "retention"
              ],
              "properties": {
                "cohort_week": {
                  "type": "string"
                },
                "week_start_date": {
                  "type": "string"
                },
                "size": {
                  "type": "integer"
                },
                "retention": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "week",
                      "observed"
                    ],
                    "properties": {
                      "week": {
                        "type": "integer"
                      },
                      "active": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "rate": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "observed": {
                        "type": "boolean"
                      },
                      "partial": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              }
            }
          },
          "weeks": {
            "type": "integer"
          },
          "data_end": {
            "type": [
              "string",
              "null"
            ]
          },
          "definition": {
            "type": "string"
          },
          "data_quality": {
            "type": "object",
            "required": [
              "datasets",
              "rows_used",
              "users"
            ],
            "properties": {
              "datasets": {
                "type": "array"
              },
              "rows_used": {
                "type": "integer"
              },
              "users": {
                "type": "integer"
              },
              "date_range": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "campaign_comparison",
      "description": "Campaign comparison table: visitors, sessions and per-event conversion rate with 95% Wilson intervals per UTM group, confidence notes for small samples, and a two-proportion z-test between the best two groups. Includes a Markdown table.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "conversion_events"
        ],
        "properties": {
          "data": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "CSV exports you provide (sessions, events, signups, downloads). Header row required; comma, semicolon or tab delimited.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "csv"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "csv": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000000
                },
                "default_event": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Event name for every row when the file has no event column (e.g. signup for a signups export, session for a sessions export)."
                }
              }
            }
          },
          "columns": {
            "type": "object",
            "additionalProperties": false,
            "description": "Header names to use. Defaults try common names (user_id/client_id/anonymous_id, timestamp/date/created_at, event/event_name, utm_source, utm_medium, utm_campaign, session_id).",
            "properties": {
              "user_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "event": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "session_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            }
          },
          "touch_events": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": "Only rows with these events count as marketing touches. Default: any row with a UTM value."
          },
          "case_sensitive_utm": {
            "type": "boolean",
            "description": "Default false: UTM values are trimmed and lowercased before grouping."
          },
          "conversion_events": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "group_by": {
            "enum": [
              "source",
              "source_medium",
              "campaign",
              "source_medium_campaign"
            ],
            "description": "Default campaign."
          },
          "lookback_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365,
            "description": "A conversion counts for a group when it happens within this many days after the user's first touch in that group. Default 30."
          },
          "min_sample": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "description": "Groups with fewer visitors are low confidence. Default 30."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "rows",
          "comparisons",
          "group_by",
          "definition",
          "markdown_table",
          "data_quality",
          "notes",
          "warnings"
        ],
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "group",
                "visitors",
                "sessions",
                "conversions",
                "confidence",
                "confidence_notes"
              ],
              "properties": {
                "group": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "medium": {
                  "type": "string"
                },
                "campaign": {
                  "type": "string"
                },
                "visitors": {
                  "type": "integer"
                },
                "sessions": {
                  "type": "integer"
                },
                "conversions": {
                  "type": "object"
                },
                "confidence": {
                  "enum": [
                    "low",
                    "ok"
                  ]
                },
                "confidence_notes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "comparisons": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "event",
                "note"
              ],
              "properties": {
                "event": {
                  "type": "string"
                },
                "best": {
                  "type": "string"
                },
                "runner_up": {
                  "type": "string"
                },
                "p_value": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "significant": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "group_by": {
            "type": "string"
          },
          "definition": {
            "type": "string"
          },
          "markdown_table": {
            "type": "string"
          },
          "data_quality": {
            "type": "object",
            "required": [
              "datasets",
              "rows_used",
              "users"
            ],
            "properties": {
              "datasets": {
                "type": "array"
              },
              "rows_used": {
                "type": "integer"
              },
              "users": {
                "type": "integer"
              },
              "date_range": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "build_report",
      "description": "Runs the analyses your inputs allow (funnel when funnel_steps is given; attribution and campaign comparison when conversion_events is given; weekly retention unless cohorts is false) and returns one JSON report plus a Markdown summary.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "CSV exports you provide (sessions, events, signups, downloads). Header row required; comma, semicolon or tab delimited.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "csv"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "csv": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000000
                },
                "default_event": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Event name for every row when the file has no event column (e.g. signup for a signups export, session for a sessions export)."
                }
              }
            }
          },
          "columns": {
            "type": "object",
            "additionalProperties": false,
            "description": "Header names to use. Defaults try common names (user_id/client_id/anonymous_id, timestamp/date/created_at, event/event_name, utm_source, utm_medium, utm_campaign, session_id).",
            "properties": {
              "user_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "timestamp": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "event": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "session_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            }
          },
          "touch_events": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": "Only rows with these events count as marketing touches. Default: any row with a UTM value."
          },
          "case_sensitive_utm": {
            "type": "boolean",
            "description": "Default false: UTM values are trimmed and lowercased before grouping."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "funnel_steps": {
            "type": "array",
            "minItems": 2,
            "maxItems": 10,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "window_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          },
          "conversion_events": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "lookback_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          },
          "group_by": {
            "enum": [
              "source",
              "source_medium",
              "campaign",
              "source_medium_campaign"
            ]
          },
          "cohorts": {
            "type": "boolean"
          },
          "weeks": {
            "type": "integer",
            "minimum": 1,
            "maximum": 52
          },
          "min_sample": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "report",
          "markdown"
        ],
        "properties": {
          "report": {
            "type": "object",
            "required": [
              "title",
              "generated_at",
              "data_quality",
              "sections",
              "notes"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "generated_at": {
                "type": "string",
                "format": "date-time"
              },
              "data_quality": {
                "type": "object",
                "required": [
                  "datasets",
                  "rows_used",
                  "users"
                ],
                "properties": {
                  "datasets": {
                    "type": "array"
                  },
                  "rows_used": {
                    "type": "integer"
                  },
                  "users": {
                    "type": "integer"
                  },
                  "date_range": {
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                }
              },
              "sections": {
                "type": "object"
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "markdown": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "channel_performance",
      "description": "Spend efficiency from aggregated ad-platform or channel exports (rows per day/week/campaign with spend, impressions, clicks, conversions, revenue): sums and CTR, CPC, CPM, conversion rate, CPA and ROAS per channel, campaign or ISO week, shares of spend and conversions, and factual comparisons. Parses currency symbols, thousands separators and decimal commas, skips Total rows, refuses mixed currencies, and returns null (n/a) for zero denominators.",
      "side_effects": "none",
      "requires_confirmation": false,
      "input_schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "description": "Aggregated CSV exports you provide (for example a Google Ads or Meta campaign report, or a weekly channel spend sheet). Header row required; comma, semicolon or tab delimited. default_event is ignored by this tool. A file without a channel column is labelled with its name.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "csv"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "csv": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000000
                },
                "default_event": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Event name for every row when the file has no event column (e.g. signup for a signups export, session for a sessions export)."
                }
              }
            }
          },
          "columns": {
            "type": "object",
            "additionalProperties": false,
            "description": "Header names to use. Defaults try common names: date/day/week, channel/source/platform, campaign/campaign_name, spend/cost/amount_spent, impressions/impr, clicks/link_clicks, conversions/results/purchases, revenue/conversion_value.",
            "properties": {
              "date": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "channel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "spend": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "impressions": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "clicks": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "conversions": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "revenue": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            }
          },
          "group_by": {
            "enum": [
              "channel",
              "campaign",
              "channel_campaign",
              "week",
              "channel_week"
            ],
            "description": "Default channel. Weeks are ISO weeks (Monday, UTC) of the date column."
          },
          "number_format": {
            "enum": [
              "auto",
              "1,234.56",
              "1.234,56"
            ],
            "description": "Thousands/decimal separators. Default auto: inferred per file from its values."
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Za-z]{3}$",
            "description": "ISO currency code of the money columns, used as a label and checked against symbols or codes in the data."
          },
          "blank_numbers": {
            "enum": [
              "zero",
              "skip_row"
            ],
            "description": "Empty or \"--\" metric cells: count as 0 (default, reported per column) or skip the row."
          },
          "min_conversions": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "Groups with fewer conversions are flagged low confidence and not ranked by CPA. Default 10."
          },
          "case_sensitive_labels": {
            "type": "boolean",
            "description": "Group channel/campaign labels case-sensitively. Default false."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "required": [
          "group_by",
          "currency",
          "rows",
          "totals",
          "insights",
          "markdown_table",
          "data_quality",
          "warnings"
        ],
        "properties": {
          "group_by": {
            "type": "string"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "group",
                "rows",
                "spend",
                "conversions",
                "cpa",
                "confidence"
              ],
              "properties": {
                "group": {
                  "type": "string"
                },
                "channel": {
                  "type": "string"
                },
                "campaign": {
                  "type": "string"
                },
                "week": {
                  "type": "string"
                },
                "rows": {
                  "type": "integer"
                },
                "spend": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "impressions": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "clicks": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "conversions": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "revenue": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "ctr": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "cpc": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "cpm": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "conversion_rate": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "conversion_rate_ci95": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  }
                },
                "cpa": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "roas": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "revenue_per_conversion": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "share_of_spend": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "share_of_conversions": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "confidence": {
                  "enum": [
                    "ok",
                    "low"
                  ]
                },
                "confidence_notes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "totals": {
            "type": "object",
            "required": [
              "rows"
            ],
            "properties": {
              "rows": {
                "type": "integer"
              },
              "spend": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "impressions": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "clicks": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "conversions": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "revenue": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "ctr": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "cpc": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "cpm": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "conversion_rate": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "conversion_rate_ci95": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "number"
                }
              },
              "cpa": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "roas": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "revenue_per_conversion": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          },
          "insights": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "markdown_table": {
            "type": "string"
          },
          "data_quality": {
            "type": "object",
            "required": [
              "datasets",
              "rows_used"
            ],
            "properties": {
              "datasets": {
                "type": "array"
              },
              "rows_used": {
                "type": "integer"
              },
              "date_range": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "definition": {
            "type": "string"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  ],
  "permissions": {
    "filesystem": "none",
    "network": [],
    "credentials": [],
    "notes": "Fully offline. The CSV text is passed in the tool input; no tool reads files or contacts any service."
  },
  "io_types": {
    "csv_files": {
      "textual": false,
      "description": "Array of {name, csv, default_event?}: CSV export text supplied by the user, one entry per file."
    },
    "analytics_report": {
      "textual": false,
      "description": "{title, generated_at, data_quality, sections:{funnel?, attribution?, campaigns?, retention?}, notes} computed only from user-supplied CSV rows."
    }
  },
  "io": {
    "inputs": [
      {
        "name": "data",
        "type": "csv_files"
      }
    ],
    "outputs": [
      {
        "name": "report",
        "type": "analytics_report"
      },
      {
        "name": "markdown",
        "type": "markdown_document"
      },
      {
        "name": "markdown_table",
        "type": "markdown_document"
      }
    ]
  },
  "runtimes": [
    {
      "id": "node",
      "version": ">=20",
      "tested": true
    },
    {
      "id": "claude-code",
      "tested": false,
      "notes": "MCP stdio server; not yet verified in Claude Code by AgentRove"
    }
  ],
  "external_costs": "None. Runs locally on CSV exports you already have; no API keys, no network."
}

Find an agent

Do not include passwords, keys, customer data or other confidential details.
Rule-based matching is free during the public beta (fair use).