Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 117 Actions

Funnel MCP Server
for AI Agents

Connect your AI agent to StackOne's Funnel MCP server and give it 117 MCP tools out of the box. Auth, tool execution, and security all managed.

Funnel logo
Funnel MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

117 Agent Actions

Agents can read, write, delete and run operations in Funnel. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Funnel MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Funnel tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Funnel call.

Tools Discovery →

What is the Funnel MCP Server?

A Funnel MCP server lets AI agents read and write Funnel data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Funnel MCP server ships with 117 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Funnel MCP Tools

Every StackOne action for Funnel, ready for your agent. Read, write, delete and run operations, scoped to exactly what you need.

Data Sources

  • Create Data Source

    Create the data source a prepare_create_data_source or prepare_create_data_source_from_recipe proposal describes, exactly as proposed. Call it only after the user approved that change. The setup is checked again first; if anything changed it is reapproval_required and nothing is created. A proposal executes at most once and expires after 30 minutes. `created` is a source record, not proof downloads work. `not_allowed` means the plan no longer allows the source (for example, the trial has ended) and nothing was created; tell the user why. This setup is then used up: once the plan allows it, start a new setup. One create, never retried: after an unknown outcome, look for the source with search_fields category=source before preparing it again.

  • List Data Sources

    List active (not deleted) sources in the selected workspace to find the exact public UUID for inspect_data_source and the source management tools. Unlike search_fields, it includes sources excluded from Funnel's data. Pass search (case-insensitive name substring) to find a named source and connector_id to narrow to one connector; page with offset if has_more (offset stops at 9,900; beyond that, narrow with search or connector_id). No private Depository keys or credentials are returned. Identify one source by customer-visible name and connector, then inspect its UUID; if several match, ask the user. Do not change a source from an ambiguous or incomplete result.

  • Delete Data Source

    Soft-delete one existing source by exact UUID. Inspect first; present workspace, source name/connector/state and impact, then obtain separate explicit approval of THIS deletion. It does not require a connection or template. Depository marks it DELETED, sets a 31-day record expiry and attempts an ARCHIVED read blocker; it does not itself purge already downloaded data and blocker failure may not prevent deletion. Pass inspected name and state as stale preflights, not an atomic lock. DELETE once; if uncertain inspect, never retry automatically. Restoration is a separate action requiring its own approval.

Budgets

  • Get Budget

    Reads one active budget of the workspace (plan-api `GET /v2/{workspace}/budgets/{id}`): its dates and periods, its targets with their fields, totals, units and amount per period, its rollover and pacing settings, whether prepare_edit_budget can edit it (`editable`, else `not_editable_reason`: edit it in Plan), and its page in Plan. Percent amounts are fractions (0.05 is 5%), durations are seconds. Spend against it comes from get_data with budget_id. `not_found` when the workspace has no such active budget; `upstream_error` saying to open it in Plan when Plan's newer budget format cannot read it. Pass detail `full` when the user asks how a budget is broken down or what it plans per breakdown value (for example per campaign or channel): `budget.details` adds the breakdown fields and their values, each target's amount per value in each period, and each period's description, exactly as stored. Needs `get_account`.

  • List Budgets

    Lists the workspace's configured Plan budgets (plan-api `GET /v2/{workspace}/budgets?view=summary`; archived budgets excluded; a budget Plan's newer format cannot read is listed, but get_budget and the budget changes refuse it), sorted by name. Match the user's wording against name and description, then pass the id to get_data as budget_id. Needs `get_account` on the workspace.

Conventions

  • Get Convention

    Read one active Plan convention by id from list_conventions, including its patterns, field mappings, output-field settings and validation rules. Returns not_found for a missing or archived convention. Needs get_account permission. Not available in headless runs.

  • List Conventions

    List active Plan conventions in a workspace, sorted by name. Returns names, levels, input fields and counts; use get_convention for patterns and output fields. Needs get_account permission. Not available in headless runs.

Dashboards

  • Get Dashboard

    Reads one dashboard of the workspace (dashboards-service `GET /accounts/{workspace}/dashboards/{id}`): its title, its `config` (data tables, cards, layout, filters, date range), its feature flags, when it was last changed and the `digest` of its config and title. Read it before proposing a change to it, and copy what does not change. Counts a dashboard view. `not_found` when the workspace has no such dashboard. Needs `get_account`. To reproduce a card's numbers, call query_data with the metrics and dimensions the card's `data` names (such as `metricId`, `dimensionId`, `metrics`, `dimensions`), over the card's `data.overrideDateRange` or else the dashboard's `defaultDateRange` (an override may set only `compareTo`; resolve a `presetRangeId` to dates; query the `compareTo` period as a second date range), and translate into query_data filters the `query.where` of the card's data table (`dataTableId`), each of the dashboard's `globalFilters` that has a `condition`, and the card's `data.whereAllTrue`. Use the dashboard's `currency` when set. Tell the user about any setting you could not translate, and share `app_url` so they can open the dashboard in Funnel.

  • List Dashboards

    Lists the workspace's dashboards by title, with their ids, when each was created and last saved, and each one's active public share links (dashboards-service `GET /accounts/{workspace}/dashboards` and `GET /accounts/{workspace}/dashboard-links`), up to 1000. Reading the list counts no dashboard view. Needs `get_account` on the workspace.

Saved Data Explorer Views

  • Get Saved Data Explorer View

    Read one saved Data Explorer view by id from list_explorer_views: its Funnel field ids (`fields`, split into `dimensions` and `metrics` when the view's table says so), date range (`preset` such as last30days, or `start`/`end`, plus `compare_to`), currency, sort, and filters. `where` (dimension filters) and `having` (metric filters) are Data Explorer filter expressions such as {"sourceName":{"=icontains":"global"}}. The view holds no data: query its fields and date range to get the numbers. Returns not_found for a missing or archived view. Needs get_account permission. Not available in headless runs. To get the view's numbers, call query_data with its dimensions and metrics (classify `fields` with search_fields when they are not split), the date range, its currency, and the `where` conditions translated into query_data filters. Tell the user about any condition you could not translate, and share `app_url` so they can open the view in Funnel.

  • List Saved Data Explorer Views

    List the workspace's saved Data Explorer views, sorted by name: id, name, last update and a link to open the view in Funnel. Archived views are left out. Use get_explorer_view for a view's fields, date range and filters. Needs get_account permission. Not available in headless runs.

Runs

  • Get Export Run

    Loads one export run (a run_id from list_export_runs): its status and counts, every part (date period) it produced with row and column counts, file size and a download link, and the failed or warning steps with their error code and message. A download link works for about an hour without signing in, so share it only with the user who asked. Pass detail `full` to explain why parts were processed again (which data source, field or edit caused it) or when each step started and ended: `details.events` lists every step of the run. Needs `get_account`.

  • List Export Runs

    Lists one export's recent runs, newest first: when each started, its status (Success, Failed, Pending, Stopped), the error code and message of a failed run, and how many of its parts (date periods) succeeded, warned or failed. Use to answer 'did my export run?' or 'why did it fail?', then get_export_run for one run's parts, file sizes and download links. Pass `next_cursor` back as `cursor` for older runs. A view, or an export that never ran, has `runs: []`. Needs `get_account`.

Client Portals

  • Get Client Portal

    Reads one portal of the workspace by id (portal-service `GET /accounts/{workspace}/portals/{id}`); `not_found` when the workspace has no such portal. Needs `get_account`.

  • List Client Portals

    Lists the workspace's client portals with their brand, dashboard count and user count (portal-service `GET /accounts/{workspace}/portals`), newest first, up to 500. Needs `get_account` on the workspace.

Other (102)

  • Copy Fields From Another Workspace

    Copy up to 25 custom fields from `source_workspace_id` into this workspace, keeping their ids (Fields API `POST /v2/{workspace}/field-imports`). `dry_run: true` writes nothing and returns `checks`; `dry_run: false` creates the fields and returns them with the same checks. Each check names `missing_dependencies` (fields neither workspace will have, such as a connector this workspace lacks: the copy returns no data for them), `differing_dependencies` (fields defined differently here), `source_specific_rules` (rules that match a data source this workspace does not have, so they never match) and `imported_dependencies` (the custom fields this copy adds). Fields with findings are still copied. `include_dependencies: true` also copies the custom fields the requested ones use that this workspace lacks (`requested: false` in their checks); a real copy is `invalid`, writing nothing, when that makes more than 25 fields in all. A real copy writes nothing when a field is missing from the source (`not_found`) or already exists here (`already_exists`); existing fields are never overwritten. A field created here while the copy runs is also `already_exists`, and `details` then names the fields copied before the conflict. Needs `get_account` and `edit_fields` on both workspaces, which must belong to the same subscription. `workspace_id` is the workspace that receives the copies. Call it with `dry_run: true` first, show the user every finding in `checks`, and copy with `dry_run: false` only after the user confirms.

  • Search Tools

    A special tool that returns a trimmed down list of tools given a context. Use this tool only when there are many tools available and you want to get a subset that matches the provided context.

  • Get Creative Images

    Look at the creative images of the top ads yourself: returns each creative's first image as an image you can view, with its label and metric values. Use it when the user asks what the creatives look like, or to describe, compare or explain creatives by their visuals; use visualize_creatives to show the grid to the user. Takes the same arguments as visualize_creatives except title, for up to 6 creatives (limit 1 to 6, default 4). Videos and images over 1 MB are named but not returned.

  • Get Dimension Values

    Returns actual values for a dimension field within a date range. scope controls the Data Source boundary: inferred resolves from the dimension, workspace accepts cross-platform dimensions, and data_source enforces one immutable ID. Omitted scope preserves pre-typed compatibility behavior during migration. Deprecated source_id remains accepted but cannot be combined with scope.

  • Get Export

    Loads one export's or view's configuration (any id from list_exports) and returns a ready-to-use query template (dimensions, measures, metrics, date range, currency, filters, scope) for reproducing the exported data with query_data. A currency of `*` means the export converts nothing: pass currency `*` (native) rather than omitting it, which would convert to the workspace default. Check unsupported and unknown_fields: when non-empty the reproduction is approximate. A view stores no dates (the BI tool picks them), so its template has none: ask the user for the range. When Funnel turned an export off itself, `disabled_reason` says why (for example after repeated failed runs); list_export_runs has its runs' errors. Pass detail `full` when an export cannot be saved, fails or lands in the wrong place, for stored settings this answer lacks (such as `partitionSchema`, `delta`, `slowSync`; not schedule or run times), to check exports against a request, or before a copy: `export.details` holds the stored config verbatim, and a copy takes `date_range` from its `query.range`. For Google Sheets, only the first `destination.sortBy` entry sorts the rows, and an unset `format.headers` means field names (`title`), as the exports app shows. Leave it out to reproduce data.

  • Get Flexpoint Usage

    The Flexpoints the workspace's subscription uses, its capacity and what is available, as the subscription's Flexpoints usage page shows them (credits-api `GET /usage/subscription/{subscription}/summary`). Use `available` for how many are left. Needs `get_subscription_usage` on the subscription. A subscription without a Flexpoints plan is `not_enabled`.

  • Get Flexpoint Usage By Connector

    Flexpoints per connector and destination type across the workspace's subscription, highest first, as the Resources table of the subscription's Flexpoints usage page (credits-api `GET /usage/subscription/{subscription}/resourceSummary`). Paused resources use no Flexpoints, as on the page, and are left out unless `status` asks for them. Needs `get_subscription_detailed_usage` on the subscription.

  • Get Flexpoint Usage By Workspace

    The Flexpoints attributed to each workspace of the workspace's subscription, highest first, with the subscription's pool, as the Workspaces tab of its Flexpoints usage page (credits-api `GET /usage/subscription/{subscription}/workspace-summary`). Workspaces share the pool, so only the pool has capacity. Needs `get_subscription_detailed_usage` on the subscription. A subscription without a Flexpoints plan is `not_enabled`.

  • Get Portal Dashboard Groups

    Reads how a portal's dashboards are grouped and ordered for its viewers (portal-service `GET /accounts/{workspace}/portals/{id}/dashboard-sort-config`), with each dashboard's title as the portal shows it. Groups are in display order; the group with `name: null` holds the ungrouped dashboards. Dashboards the portal has that no group lists are appended to it, and ids the portal no longer has are dropped, as the Portals page does. `not_found` when the workspace has no such portal. Needs `get_account`.

  • Get Scheduled Task Runs

    Get the recent run history for a scheduled task by id: whether each fire completed or failed, when, and a short preview of the output (the full result is in the linked conversation). Use to answer 'did my scheduled report run?' or to debug a failing task. `not_found` when the workspace has no such task. Run output was produced with the owner's access, so this needs `get_account` and `edit_ai` (Funnel AI editors and workspace admins); other members can list tasks but not read their runs.

  • Get Workspace Context

    Retrieves workspace context — administrator-authored conventions, business rules, and domain terminology — to improve analysis accuracy and terminology alignment. Call once per workspace after `load_workspace`, before analyzing data. The context is returned as markdown in both content[0].text and the structured workspace_context field so clients with either result-channel behavior can inject it into the model's understanding. Cached per session (5-minute TTL) — repeated calls return instantly. Falls back gracefully if context is unavailable.

  • List Archived Budgets

    Lists the workspace's archived Plan budgets (plan-api `GET /v2/{workspace}/budgets?archived=true&view=summary`), sorted by name; `updated_at` is when it was archived or last changed. Use it to find the id prepare_restore_budget takes. Archived budgets have no data source, so get_data has no series for them. Needs `get_account` on the workspace.

  • List Archived Conventions

    List archived Plan conventions in a workspace, sorted by name. These are not active and cannot be fetched with get_convention. Needs get_account permission. Not available in headless runs.

  • List Portal Brands

    Lists the portal brands of the subscription that owns the workspace (portal-service `GET /subscriptions/{subscription}/brands`), by name. Needs `get_account` on the workspace and `get_subscription` on its subscription.

  • List Connector Templates

    List template candidates for one connector in the selected workspace, Funnel's curated templates (origin funnel) and the templates saved in the subscription that owns the workspace (origin saved), without a setup snapshot or an existing source. Use the connector_id from list_connectors or source inspection. This read does not establish whether an existing source may switch to a candidate; Depository validates reconfiguration. No definitions or credentials are returned.

  • List Connectors

    List the bounded Funnel connectors available for data source setup in the selected workspace. Pass a returned connector_id to start_data_source_setup or start_data_source_authentication.

  • List Data Source Templates

    List eligible templates for the remote account in an immutable setup snapshot: Funnel's curated templates (origin funnel) and the templates saved in the subscription that owns the workspace (origin saved). When the user names a template they saved, pick the saved one. This does not create or modify a data source.

  • List Deleted Data Sources

    List soft-deleted sources in the selected workspace to discover an exact public UUID for restore_data_source. Uses a workspace-scoped DELETED-state search; no private Depository keys or credentials are returned. Page with offset/limit if has_more; identify one source by customer-visible name and connector, then inspect its UUID. Do not guess or restore a source from an ambiguous or incomplete result.

  • List Export Connections

    Lists the caller's own connections that can write to a destination type (Connection API `GET /v3/connection`): Google connections that granted the destination's scopes (Sheets for `gsheets`; BigQuery and Cloud Storage for `bigquery`; Cloud Storage for `gcs`), and Snowflake ones (a user with a programmatic access token or a key pair) for `snowflake`. Pass one `id` as the destination's `connection_id` in prepare_create_export. When `connections` is empty, the user must connect an account first: give them `connect_url`, a Funnel page where they sign in (the credentials are entered there, never in chat), then list again once they say they are done. A null `connect_url` means the account must be connected on the new-export page in Funnel (`app_url`). Never changes anything.

  • List Export Destinations

    Lists the destinations Funnel data can be exported to, and how each is created: from chat (`create: chat`, with `tool`) or only in Funnel (`create: app`, give the user `app_url`). Whether the workspace's plan allows a destination is checked when it is created. Never changes anything.

  • List Exports

    Lists the data exports configured in a workspace — scheduled pushes of Funnel data to Google Sheets, Excel, BigQuery, Snowflake, S3 and similar destinations — and its views, which a BI tool (Data Studio, Tableau, Power BI) reads from Funnel (`kind`). Match the user's wording against name and remote_target, then call get_export with the item's id and kind. Only an export (`kind: export`) can be turned on or off or run.

  • List Funnel Guides

    List curated Funnel guides when guide_id is omitted. With guide_id=field-rules, read custom field authoring; with guide_id=conventions, read the Convention sampling and approval workflow before preparing a convention change. Read-only; write tools may not be available in every environment.

  • List Portal Dashboards

    Lists the dashboards in one portal of the workspace, by the title the portal shows (portal-service `GET /accounts/{workspace}/portals/{id}/items`), with the portal itself. `not_found` when the workspace has no such portal. Needs `get_account`.

  • List Portal Users

    Lists the users who can open one portal of the workspace (portal-service `GET /accounts/{workspace}/portals/{id}/users`), newest first, up to 1000, with the portal itself. Each user's email, display name and workspace roles come from auth-service's workspace users (`GET /accounts/{workspace}/users`); they are null for a user no longer in the workspace, except that a user id that is an email is its own email. `not_found` when the workspace has no such portal. Needs `get_account`.

  • List Scheduled Tasks

    List this workspace's scheduled tasks (recurring prompts that run automatically as their owner). Use to answer 'what do I have scheduled?', to find a task's id before editing/deleting it, or to confirm a task exists. Returns each task's id, name, prompt, schedule expression, timezone, status (enabled/disabled) and last run id. A disabled task may carry paused_reason (e.g. owner_lost_access = the owner no longer has access; a workspace member must resume it). Needs `get_account` on the workspace.

  • List Workspace Users

    Lists the members of this workspace, as Funnel's Users page does (auth-service `GET /api/v1/accounts/{workspace}/users`): each member's user id, email, display name and workspace roles, sorted by email, up to 1000 (`truncated` when there are more). Subscription owners and admins also have editor access to every workspace of the subscription; they are listed only when they are members. `app_url` is the workspace's users page. Needs `get_account` on the workspace.

  • List Workspaces

    Lists Funnel workspaces accessible to the current user, grouped by subscription. Each subscription represents an organisation in Funnel. Within each subscription, workspaces represent individual advertisers or business units with their own connected ad platforms (Google Ads, Meta, LinkedIn, etc.). A user may have access to workspaces across multiple subscriptions. The returned workspace IDs are used by all other tools. Invoke when the target workspace is unknown, or to discover which workspaces are available for analysis.

  • Query Data

    Queries advertising data and stores named session tables for follow-up analysis. Fresh-data modes use a typed scope: - inferred — resolve workspace or one exact Data Source from requested fields - workspace — cross-platform fields only; overrides choose within duplicate groups - data_source — validate one immutable Data Source ID and apply exact equality before fetch Omitted scope preserves inferred behavior. Deprecated source_id and source_overrides remain accepted during migration but cannot be mixed with scope. Catalog dimension filters remain ordinary field operations and do not receive exact-scope enforcement metadata. Required fields by mode: - query: workspace_id, result_table_name, dimensions (use [] for totals), measures, date range - compare_channels: workspace_id, result_table_name, measures, date range - aggregate: workspace_id, source_table_name - compute_metric: workspace_id, source_table_name, ratio_id - restore: workspace_id, evicted_table_name When inferred scope is ambiguous, the response returns source_selection_required. Retry with one data_source scope, or use workspace overrides to choose within duplicate groups. Examples: Cross-platform totals: {"mode":"query","workspace_id":"<id>","result_table_name":"totals","dimensions":[],"measures":["common-cost","common-impressions"],"date_start":"2025-01-01","date_end":"2025-03-31","scope":{"type":"workspace"}} Filtered totals (filter columns need not be in dimensions): {"mode":"query","workspace_id":"<id>","result_table_name":"brand_totals","dimensions":[],"measures":["common-cost"],"filter":[{"column":"<brand dimension ID>","operator":"=","value":"Acme"}],"date_start":"2025-01-01","date_end":"2025-03-31","scope":{"type":"workspace"}} Single Data Source: {"mode":"query","workspace_id":"<id>","result_table_name":"campaigns","dimensions":["facebookads-campaign_name"],"measures":["common-cost","common-clicks"],"scope":{"type":"data_source","id":"<id>"},"date_start":"2025-01-01","date_end":"2025-03-31"} Daily breakdown: {"mode":"aggregate","workspace_id":"<id>","source_table_name":"campaigns","group_by":["facebookads-campaign_name","date"],"measures":["common-cost"],"date_granularity":"day"} Dates use YYYY-MM-DD and percentages are decimals. Results default to 500 rows. If truncated, narrow the query; additive-only tables may also be re-sliced with mode="aggregate".

  • Search Fields

    Finds dimensions, measures, metrics, and connected Data Sources in a workspace. semantic matches natural-language concepts; browse navigates by platform/category/group and browse category=source is the canonical Data Source discovery path; search performs exact keyword matching. Source results return canonical id plus deprecated source_id compatibility, true totals, and truncation. remote_key identifies an external account, not one Data Source. Optional data_source scope resolves the source platform automatically. Returned fields still come from the workspace/platform catalog, not an exact-source schema; catalog_scope=platform makes that evidence boundary explicit. inferred and workspace scope do not narrow field discovery. Use returned canonical id in query_data, prepare_data, or get_dimension_values scope={type:"data_source",id:"..."}.

  • Set Data Source Downloads Enabled

    Enable or disable future downloads for one source. First inspect its UUID from list_data_sources and downloadsEnabled flag; if missing, stop. expected_downloads_enabled must match the inspected value. Disabling does not remove previously downloaded data; enabling does not guarantee healthy downloads. Present workspace, source name/connector, current and desired download state and impact; obtain separate explicit approval of THIS exact action. Use inspected name and flag as stale-write preflights, not an atomic lock. Never change a deleted source. Invoke once; if uncertain, inspect instead of retrying. stale_flag.currentValue is downloads_enabled.

  • Set Data Source Use In Funnel

    Control 'Do not use in Funnel' for one source without stopping downloads. First inspect its UUID from list_data_sources and useInFunnel flag; expected_use_in_funnel must match the inspected value. Present workspace, source name/connector, current and desired use-in-Funnel state and impact; obtain separate explicit approval of THIS exact action. Inclusion does not guarantee immediate data availability. Use inspected name and flag as stale-write preflights, not an atomic lock. Never change a deleted source. Invoke once; if uncertain, inspect instead of retrying. stale_flag.currentValue is use_in_funnel.

  • Allocate Convention IDs

    Generate fresh pattern and output dimension IDs for a new convention or newly added pattern/dimension. Use these values verbatim in prepare_create_convention or prepare_update_convention; never replace IDs of existing dimensions. This allocates identifiers only and changes no workspace data.

  • Apply Field Changes

    Write the fields the user approved from one mutate_fields proposal. The plan is rebuilt and checked against each field's current definition; a field changed since preparing is reported as stale and is not written. A plan applies at most once and expires after an hour. Each field is written once and never retried: a lost answer is read back, and anything still unconfirmed is reported as unknown. Unknown fields need a fresh look at their current definition before any further change. When a written field has a `field_url`, give it to the user: it opens the field in Funnel.

  • Check Portal Dashboards

    Says what prepare_add_dashboards_to_portal would propose, without writing: each dashboard is read from dashboards-service in the call's workspace, with its title. `addable` are dashboards in the workspace and not yet in the portal, `already_in_portal` those the portal has, `not_found` ids that are not dashboards in the workspace. `not_found` for the portal itself when the workspace has no such portal. Needs `get_account`. Use it to show the user what they approve.

  • Execute Portal Brand Change

    Make the brand change a prepare_create_brand, prepare_update_brand or prepare_delete_brand proposal describes. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. An update applies the approved fields to the brand as it is now. When the result has an `app_url`, give it to the user: it opens the changed item in Funnel. One write, never retried: after an unknown outcome, read the brands back with list_brands before preparing it again.

  • Execute Budget Change

    Make the budget change a prepare_create_budget, prepare_edit_budget, prepare_update_budget, prepare_archive_budget or prepare_restore_budget proposal describes, exactly as proposed. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. An update or edit answers `stale`, writing nothing, when the budget was edited after it was proposed: prepare it again. When the result has an `app_url`, give it to the user: it opens the changed item in Funnel. One write, never retried: after an unknown outcome, read the budget back with list_budgets or get_budget before preparing it again.

  • Execute Convention Change

    Execute exactly the approved prepare_create_convention, prepare_update_convention, prepare_archive_convention or prepare_restore_convention proposal. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. Update, archive and restore answer `stale` without writing if the convention changed; prepare again and obtain new approval. A change can affect multiple linked dimensions and is not all-or-nothing. When the result has an `app_url`, give it to the user: it opens the changed item in Funnel. One write, never retried: after an unknown outcome, read back with list_conventions, list_archived_conventions or get_convention before preparing it again.

  • Execute Workspace Creation

    Create the workspace a prepare_create_workspace proposal describes, exactly as proposed, with the user as its editor. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. `not_allowed` created nothing and says why. One create, never retried: after an unknown outcome, ask the user to check the subscription's workspaces in Funnel before preparing it again.

  • Execute Dashboard Change

    Make the dashboard change a prepare_create_dashboard, prepare_append_dashboard_cards or prepare_update_dashboard_cards proposal describes, exactly as proposed. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. An update answers `stale`, changing nothing, when the dashboard changed after it was proposed: read it again and prepare again. The result's `dashboard.digest` is the `based_on_digest` of a next prepare_update_dashboard_cards on that dashboard; give the user `dashboard.app_url`, which opens it in Funnel. One write, never retried: after an unknown outcome, read the dashboard back with list_dashboards or get_dashboard before preparing it again.

  • Execute Dashboard Share Link Change

    Run the dashboard share link change a prepare_invalidate_dashboard_share_link or prepare_create_dashboard_share_link proposal describes. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. `already_invalidated` means the link had stopped working already: nothing more to do. `created` answers the new `link` and its `url`. One write, never retried: after an unknown outcome, read list_dashboards' `share_links` before preparing it again.

  • Execute Export Change

    Make the export change a prepare_create_export, prepare_create_view, prepare_update_export, prepare_set_export_enabled or prepare_run_export proposal describes, exactly as proposed. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. When the result has an `app_url`, give it to the user: it opens the changed item in Funnel. `not_allowed` means the subscription's plan no longer allows the new or turned-on export (for example, the trial has ended) and nothing was changed; `reason` says why. Tell the user why and that they can review their plan in Funnel; do not retry. One write, never retried: after an unknown outcome, read the export back with list_exports or get_export before preparing it again; for a view, ask the user to check the views in Funnel.

  • Execute Custom Field Deletion

    Delete the custom field a prepare_delete_field proposal describes, exactly as proposed. Call it only after the user approved that deletion. A proposal executes at most once and expires after 30 minutes; prepare again after that. status: deleted, or stale (the field was edited after it was proposed; nothing was deleted: prepare it again and ask again). One write, never retried: after an unknown outcome, look the field up with search_fields before preparing it again.

  • Execute Client Portal Change

    Make the portal change a prepare_create_portal, prepare_update_portal, prepare_delete_portal, prepare_add_dashboards_to_portal, prepare_remove_dashboards_from_portal or prepare_set_portal_dashboard_groups proposal describes. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. Dashboards are checked again: adding skips any now in the portal or gone, removing skips any the portal no longer has. When the result has an `app_url`, give it to the user: it opens the changed item in Funnel. One write, never retried: after an unknown outcome, read the portal back with get_portal or list_portal_dashboards before preparing it again.

  • Execute Scheduled Task Change

    Make the scheduled task change a prepare_create_scheduled_task, prepare_update_scheduled_task or prepare_delete_scheduled_task proposal describes, exactly as proposed. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. An update or delete answers `stale`, changing nothing, when the task changed after it was proposed: tell the user and prepare it again. One write, never retried: after an unknown outcome, read the tasks back with list_scheduled_tasks before preparing it again.

  • Execute Workspace Settings Update

    Change the workspace's settings as a prepare_update_workspace_settings proposal describes, exactly as proposed; settings it does not change are kept. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. `not_allowed` changed nothing and says why. After an unknown outcome, prepare the same change again: `unchanged` means it went through.

  • Execute Workspace User Changes

    Make the user changes a prepare_set_workspace_users proposal describes, exactly as proposed. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. `completed` gives each email's outcome. Changes are never retried: for `not_sent` emails, prepare them again; for `uncertain` ones, ask the user to check the workspace's users in Funnel first.

  • Execute Workspace User Removal

    Remove the members a prepare_remove_workspace_users proposal lists, exactly as proposed. Call it only after the user approved that change. A proposal executes at most once and expires after 30 minutes; prepare again after that. `not_allowed` removed no one and says why. `completed` gives each email's outcome. Removals are never retried: for `not_sent` emails, prepare them again; for `uncertain` ones, ask the user to check the workspace's users in Funnel first.

  • Inspect Data Source

    Read the management state of one exact Data Source UUID from list_data_sources, search_fields category=source or list_deleted_data_sources. Resolves its private Depository key within the authorized workspace; a missing or inaccessible source returns not_found. Never changes the source.

  • Load Workspace

    Loads a workspace's available data: ad platforms, dimensions (campaign name, country, ad group, etc.), measures (spend, clicks, impressions), and metrics (CPC, CTR, ROAS, etc.). Returns a summary of connected platforms with field counts, source health status, and which cross-platform metrics are available. Cached per session — repeated calls for the same workspace return instantly. Required once per workspace before querying data or searching for fields. Input: workspace ID from list_workspaces. After loading, call `get_workspace_context` once for this workspace to retrieve administrator-defined conventions, business rules, and domain terminology that improve analysis accuracy and terminology alignment.

  • Prepare Field Changes

    Prepare a create or update of 1 to 5 custom fields as one homogeneous proposal, without writing anything. Each field is checked for definition errors, the group is previewed once with sample values, and the result is a plan_id with the proposal (fields, before/after, dependency order, sample_data). Present the proposal and let the user pick which fields to apply; apply_field_mutation then writes the approved selection. Siblings reference each other as $key. To change some rules of an existing rule-based field, send rule_edits instead of the whole derived. Editing permission on fields is required, even for preparing. If you need rule or formula guidance, call list_guides with guide_id=field-rules before proposing changes; omit guide_id to list available guides.

  • Prepare Adding Portal Dashboards

    Proposes adding dashboards (ids from list_dashboards) to a portal. Each dashboard is read from dashboards-service in the workspace: `dashboards` are those that will be added, under their titles; `already_in_portal` and `not_found` will not be. Returns `unchanged` when none can be added. Changes nothing: returns `change` to show the user and a `proposal` for execute_portal_change. `not_found` when the workspace has no such portal. Needs `get_account` + `edit_portals`. Show the user `change` and ask them to approve it; only then call execute_portal_change with the proposal_id. Nothing is changed until then.

  • Prepare Append Dashboard Cards

    Proposes adding cards to the end of an existing dashboard of the workspace, up to 50 at a time; read it with get_dashboard first. Each card is a `type` and its type's fields. dashboards-service gives each card its `id`, binds a chart card to the dashboard's first dataTable, and places it below the last card at its type's default size; give `position` {row, column, width, height} to place it yourself (`row` 0 is the first row below the existing cards, `width` up to 12 columns). A text card is `{type: "text", content, title?}`: `content` is the text to show, in Markdown, and a text card without it is `invalid_input`. For a chart card (bar, line, bignumber, table, ...) copy the `data` and options of an existing card of the same type. Changes nothing: reads the dashboard and returns `change` to show the user and a `proposal` for execute_dashboard_change. A card dashboards-service rejects is refused when executed. `not_found` when the workspace has no such dashboard. Needs `get_account` and `edit_dashboards`. Show the user `change` and ask them to approve it; only then call execute_dashboard_change with the proposal_id. Nothing is changed until then.

  • Prepare Budget Archive

    Proposes archiving an active budget. Archiving deletes its budget data source, so its series leaves get_data and dashboards until it is restored with prepare_restore_budget. A budget Plan's newer format cannot read is archived in Plan (`invalid_input`). Changes nothing: returns `change` to show the user and a `proposal` for execute_budget_change. `not_found` when the workspace has no such active budget. Needs `get_account`, `edit_plan_budgets`, `edit_fields` and `edit_datasources`. Show the user `change` and ask them to approve it; only then call execute_budget_change with the proposal_id. Nothing is changed until then.

  • Prepare Convention Archive

    Propose archiving an active convention. Plan also archives its linked fields, campaigns and adherence. Show generated_dimensions (before/after) and the other effects to the user before approval. Nothing is written until execute_convention_change. Read list_guides(guide_id='conventions') first. Show the user the full `change`, including generated_dimensions before/after and linked-field effects; ask for approval. Only then call execute_convention_change with proposal_id. Nothing is changed until then.

  • Prepare Portal Brand

    Proposes creating a portal brand, a name and colours without a logo, for the subscription that owns the workspace. Changes nothing: returns `change` to show the user and a `proposal` for execute_brand_change. Needs `get_account` on the workspace and `edit_subscription_portals` on its subscription. Show the user `change` and ask them to approve it; only then call execute_brand_change with the proposal_id. Nothing is changed until then.

  • Prepare Budget Creation

    Proposes creating a Plan budget with a spend target and optional extra targets (up to 5), optionally broken down by up to 3 dimensions (for example by country, or by country then channel), as Plan's wizard would. The periods follow the cadence: calendar weeks (from the workspace's first day of the week), months or quarters, the first and last clipped to the budget dates; duration is one period for the whole budget; at most 53 periods. Give `spend` and each target's `amounts` either as one amount used in every period or as a list with one amount per period; a total to split across periods is not accepted. A target's `field_id` is a metric from the workspace's fields (search_fields), never a dimension; a formula field (for example CPC) is a fixed target: its amounts are per period, never summed into a total. For a breakdown, give `breakdown` instead of `spend` and `targets`: the dimension fields (search_fields; dimensions only) and, for each breakdown value, its spend and targets; every value names the same targets, and each period's amount is the sum over the values. Breakdown values are matched against the data exactly as given, so use values as they appear in the data (for example from get_data). Rollover, pacing, daily and custom cadences are set up in Plan. Changes nothing: returns `change` to show the user (the periods, each target's amounts and total, and with a breakdown each value's amounts) and a `proposal` for execute_budget_change. Needs `get_account`, `edit_plan_budgets`, `edit_fields` and `edit_datasources`. Show the user `change` and ask them to approve it; only then call execute_budget_change with the proposal_id. Nothing is changed until then.

  • Prepare Convention Creation

    Propose a Plan convention that may generate many dimensions from one input field. Each sourceType belongs to at most one pattern; one pattern may have omitted/empty sourceTypes as the all-other-connectors fallback. Review the complete definition and generated_dimensions before approval. Plan API creates the fields; nothing is written until execute_convention_change. Requires get_account, edit_plan_conventions and edit_fields. Read list_guides(guide_id='conventions') first. Show the user the full `change`, including generated_dimensions before/after and linked-field effects; ask for approval. Only then call execute_convention_change with proposal_id. Nothing is changed until then.

  • Prepare Dashboard

    Propose creating a new dashboard in the workspace titled `title`. To copy an existing dashboard, such as one market's or channel's dashboard for another, give its `source_dashboard_id`: without `config` the copy has the source's cards, layout, filters and date range as they are; with `config` it has that config instead (read the source with get_dashboard, change only what differs, such as its global filters, and pass the whole config). Without a source, `config` is the whole new dashboard: data tables, cards, layout, filters and date range, shaped as get_dashboard's `config`. A text card is `{id, type: "text", content, position, title?}`: `content` is the text to show, in Markdown. Changes nothing: checks the config and returns `change`, whose `text_cards` are the new dashboard's text cards with their content; when asking for approval, also say what else differs from the source, such as its filters. An invalid config, or a text card without `content`, is `invalid_input`. Show the user `change` and ask them to approve it; only then call execute_dashboard_change with the proposal_id. Nothing is changed until then.

  • Prepare Dashboard Share Link

    Proposes a new public share link for a dashboard, as the Dashboards app's sharing dialog creates one: anyone who has the link can view the dashboard without signing in, until it is invalidated (prepare_invalidate_dashboard_share_link). Changes nothing: returns `change` to show the user and a `proposal` for execute_dashboard_share_link_change, which answers the new link's `url`. `not_found` when the workspace has no such dashboard. Needs `get_account` and `edit_dashboards` on the workspace. Show the user `change`: the dashboard that anyone with the new link can view without signing in. Ask them to approve it; only then call execute_dashboard_share_link_change with the proposal_id. No link exists until then.

  • Prepare Data Source

    Propose creating one Funnel data source from a completed setup (connection, remote account and template selected). Changes nothing: the setup is checked again and the exact create is signed. Show the user `change` (connector, connection, remote account, template and name) and ask them to approve it; only then call execute_create_data_source with the proposal_id. `use_connect` means this setup cannot be created here; the user sets it up in Connect. `not_allowed` means the subscription's plan does not allow another source and nothing was proposed; `reason` says why (trial_ended, capacity_limit, premium_feature_not_allowed or premium_feature_trial_available). Tell the user why and that they can review their plan in Funnel; do not retry.

  • Prepare Export

    Proposes a new enabled, scheduled export of workspace data to a destination, and by default runs it once right after it is created. Changes nothing: returns `change` to show the user and a `proposal` for execute_export_change. `destination.type` picks the destination: `gsheets` (a Google Sheets tab, replaced on every run), `bigquery` (a table in the user's own Google Cloud project) or `snowflake` (a table in the user's own Snowflake account, in an existing database) or `gcs` (gzip CSV files in the user's own Cloud Storage bucket, one per month). A BigQuery or Snowflake table, or a Cloud Storage export's files, is written in monthly parts on the `date` dimension, which it must include, and kept up to date for the export's date range. Fields are checked against the workspace catalog: an unknown id, or one under the wrong role, is `invalid_input`; so is a connection that is not one of the user's (list_export_connections). Runs daily at `schedule.hour`:`schedule.minute` in `schedule.time_zone`, exactly as given. `not_allowed` when the subscription's plan does not allow the destination (an ended trial, no Flexpoints left, a premium destination), with no proposal. Needs `get_account` + `edit_shares`. Show the user `change` and ask them to approve it; only then call execute_export_change with the proposal_id. Nothing is changed until then.

  • Prepare Client Portal

    Proposes creating a client portal in the workspace, without dashboards; add them with prepare_add_dashboards_to_portal once it exists. A `brand_id` must be one of the subscription's brands (list_brands). Changes nothing: returns `change` to show the user and a `proposal` for execute_portal_change. Needs `get_account` + `edit_portals`. Show the user `change` and ask them to approve it; only then call execute_portal_change with the proposal_id. Nothing is changed until then.

  • Prepare Scheduled Task

    Proposes a scheduled task: a prompt that re-runs automatically on a schedule, as you, on this workspace. The result of each run is saved to a chat you can open from the run history. Use when the user asks to run something regularly ('every Monday', 'daily at 9', 'each morning'). schedule_expression: Use rate(N minutes|hours|days) e.g. rate(1 day), or a 6-field AWS cron cron(minute hour day-of-month month day-of-week year) with '?' for an unspecified day, e.g. cron(0 9 ? * MON *) for every Monday 09:00. timezone is an IANA name (e.g. Europe/Stockholm); defaults to UTC. delivery_channels selects where each result is sent; omitting it defaults to email for this user. Pass [] for no notification. Use an explicit selection only when the user asks. Results go to the workspace members picked as email recipients, by default the task owner. Scheduled tasks can also be sent to other workspace members, but you cannot add, remove, or view those recipients: tell the user to manage them in the Scheduled Tasks page. Updating a task here keeps its existing recipients. Never say a task can only be sent to one person. slack_channel posts Slack results into a channel instead of the owner's DM. Pass the channel name the user gave (e.g. #marketing); it is looked up among the channels the Funnel AI app is in. Never ask for or quote a channel ID: refer to channels by name only. If the channel cannot be used, relay the returned message: the user may need to invite the app with /invite @Funnel AI in that channel, or confirm the name. If it is unclear which channel the user means (e.g. #marketing or #marketing-eu), ask the user to choose before setting it. Only the task owner can change it. When a task delivers to Slack and the user has not named a channel, mention once that results can go to a Slack channel instead of their DM. Confirm the name, prompt + cadence with the user first if ambiguous. Changes nothing: checks the task and returns `change` to show the user and a `proposal` for execute_scheduled_task_change. Needs `get_account` and `edit_ai`. Show the user `change` and ask them to approve it; only then call execute_scheduled_task_change with the proposal_id. Nothing is changed until then.

  • Prepare BI Tool View

    Proposes a new view of workspace data for a BI tool that reads from Funnel: `datastudio` (Data Studio, formerly Looker Studio), `tableau` (Tableau) or `powerbi` (Microsoft Power BI). Funnel writes nothing anywhere and needs no connection: the user connects the view in the BI tool afterwards with Funnel's connector, and picks dates there. Changes nothing: returns `change` to show the user and a `proposal` for execute_export_change. Fields are checked against the workspace catalog (an unknown id, or one under the wrong role, is `invalid_input`), and a formula metric needs the fields it is computed from in the view too. `not_allowed` when the subscription's plan does not allow the BI tool, with no proposal. Needs `get_account` + `edit_shares`. Show the user `change` and ask them to approve it; only then call execute_export_change with the proposal_id. Nothing is changed until then.

  • Prepare Workspace

    Proposes creating a workspace in the subscription that owns this workspace, with the user as its editor. Changes nothing: returns `change` to show the user and a `proposal` for execute_create_workspace. `not_allowed` says why the user cannot create one here. Needs `get_account` on the workspace and `get_subscription` and `create_account` on its subscription. Show the user `change`, including the subscription, and ask them to approve it; only then call execute_create_workspace with the proposal_id. Nothing is created until then.

  • Prepare Data

    Loads raw, row-level data without aggregation for custom analysis and re-slicing. scope controls the Data Source boundary: inferred resolves from requested fields, workspace accepts cross-platform fields, and data_source enforces one immutable ID. Omitted scope preserves pre-typed compatibility behavior during migration. Deprecated source_id remains accepted but cannot be combined with scope. When provided, the validated scope is applied to the MELD fetch, persisted with the table, and returned in metadata. Field discovery is platform-catalog evidence, not proof that every field is enabled by one exact source configuration.

  • Prepare Portal Brand Deletion

    Proposes deleting a portal brand of the subscription that owns the workspace. Portals using it, in any workspace of the subscription, revert to the default branding; `portals_using` counts them now. There is no route to restore a brand. Changes nothing: returns `change` to show the user and a `proposal` for execute_brand_change. `not_found` when the subscription has no such brand. Needs `get_account` on the workspace and `edit_subscription_portals` on its subscription. Show the user `change` and ask them to approve it; only then call execute_brand_change with the proposal_id. Nothing is changed until then.

  • Prepare Custom Field Deletion

    Propose deleting one custom field, without deleting anything. Funnel archives the field: it disappears for everyone in the workspace, and only Funnel support can bring it back. Only custom fields can be deleted; built-in and connector fields answer not_found. Pass the field's exact id from search_fields; if the user's name for it matches more than one field, ask which one first. This tool cannot check where the field is used: the result says usage_checked: false. Show the user `change` and `warning`, and ask them to approve deleting it; only then call execute_field_change with the proposal_id.

  • Prepare Client Portal Deletion

    Proposes deleting a portal: its users lose access and its dashboards are untouched. There is no route to restore a portal, so treat it as permanent. Changes nothing: returns `change` to show the user and a `proposal` for execute_portal_change. `not_found` when the workspace has no such portal. Needs `get_account` + `edit_portals`. Show the user `change` and ask them to approve it; only then call execute_portal_change with the proposal_id. Nothing is changed until then.

  • Prepare Scheduled Task Deletion

    Proposes deleting (stopping) a scheduled task by id so it no longer runs. Get the id from list_scheduled_tasks. To only PAUSE it, use prepare_update_scheduled_task with status='disabled' instead. Changes nothing: returns `change` to show the user and a `proposal` for execute_scheduled_task_change; do not ask for a separate prose confirmation first. `not_found` when the workspace has no such task. Needs `get_account` and `edit_ai`. Show the user `change` and ask them to approve it; only then call execute_scheduled_task_change with the proposal_id. Nothing is changed until then.

  • Prepare Budget Edit

    Proposes changing an active budget's spend, its other targets or its dates, in one change. Read it with get_budget first: it shows the periods, each target's field_id and amounts, and whether it is editable. Give at least one of: `spend` (one amount used in every period, or one per period of the edited budget); `set_targets` (targets to add or change: a metric field_id from search_fields and amounts in the same two forms; a formula field such as CPC takes a value per period too, never summed); `remove_targets` (field ids; spend cannot be removed); `start_date`/`end_date` (the periods are rebuilt by the budget's cadence; a period with the same start date keeps its amounts unless new ones are given; when periods are added, give every remaining target, spend included, amounts in this call). Amounts are stored as given: a percent is a fraction (0.05 for 5%), a duration is in seconds. On a budget with a breakdown (get_budget's `has_breakdown`), each period's amount is the sum over its breakdown values, so change amounts with `breakdown_amounts` instead of `spend` or `set_targets`: per target and breakdown value (read the values with get_budget detail `full`: `details.breakdown.dimensionValues`), its amounts in the same two forms; values not given keep their amounts. New dates that add periods need `breakdown_amounts` for every value of every remaining target; adding a target, or a breakdown value, to such a budget is done in Plan. Renaming is prepare_update_budget. Budgets with rollover, budgets Plan's newer format cannot read, and date changes on daily or custom budgets are edited in Plan: `invalid_input` says why. Changes nothing: reads the budget and returns `unchanged` when nothing would change, otherwise `change` to show the user (every period and target, before and after, and with a breakdown each value whose amounts change) and a `proposal` for execute_budget_change. `not_found` when the workspace has no such active budget. Needs `get_account`, `edit_plan_budgets`, `edit_fields` and `edit_datasources`. Show the user `change` and ask them to approve it; only then call execute_budget_change with the proposal_id. Nothing is changed until then.

  • Prepare Dashboard Share Link Invalidation

    Proposes invalidating one of a dashboard's active public share links (from list_dashboards' `share_links`), as the Dashboards app's sharing dialog does: anyone opening it afterwards is refused, and it cannot be brought back (create a new link in the app instead). Changes nothing: returns `change` to show the user and a `proposal` for execute_dashboard_share_link_change. `not_found` when the workspace has no such dashboard, or the dashboard has no such active link. Needs `get_account` and `edit_dashboards` on the workspace. Show the user `change`: the dashboard and the link that stops working for everyone who has it. Ask them to approve it; only then call execute_dashboard_share_link_change with the proposal_id. Nothing is invalidated until then.

  • Prepare Removing Portal Dashboards

    Proposes removing dashboards from a portal; the dashboards themselves are untouched. `dashboards` are those the portal has and will lose, `not_in_portal` ids it does not have. Returns `unchanged` when the portal has none of them. Changes nothing: returns `change` to show the user and a `proposal` for execute_portal_change. `not_found` when the workspace has no such portal. Needs `get_account` + `edit_portals`. Show the user `change` and ask them to approve it; only then call execute_portal_change with the proposal_id. Nothing is changed until then.

  • Prepare Workspace User Removal

    Proposes removing up to 25 people from this workspace, as Funnel's Users page does. They stay in the subscription and keep any other workspaces. Changes nothing: returns `change` to show the user and a `proposal` for execute_workspace_user_removal. `change` lists each email as `remove` (with its current roles, and `keeps_access` for a subscription owner or admin, who still reaches the workspace through that role) or `not_member`. No member listed (`status: unchanged`) needs no approval. The user cannot remove themselves. Needs `get_account` and `edit_account` (Workspace Administrator) on the workspace. Show the user `change`: each member to remove with their roles, saying which ones keep access through their subscription role, and any email that is not a member. Ask them to approve it; only then call execute_workspace_user_removal with the proposal_id. No one is removed until then.

  • Prepare Budget Restore

    Proposes restoring an archived budget (an id from list_archived_budgets) and its data source. Changes nothing: returns `change` to show the user and a `proposal` for execute_budget_change. `not_found` when the workspace has no such archived budget. Needs `get_account`, `edit_plan_budgets`, `edit_fields` and `edit_datasources`. Show the user `change` and ask them to approve it; only then call execute_budget_change with the proposal_id. Nothing is changed until then.

  • Prepare Convention Restore

    Propose restoring an archived convention and its linked fields and adherence. Find its id in list_archived_conventions; review generated_dimensions (before/after) before approval. Nothing is written until execute_convention_change. Read list_guides(guide_id='conventions') first. Show the user the full `change`, including generated_dimensions before/after and linked-field effects; ask for approval. Only then call execute_convention_change with proposal_id. Nothing is changed until then.

  • Prepare Export Run

    Proposes running one enabled export now, outside its schedule. Without dates it runs its own date range; with `date_start` and `date_end` it reruns that range only. Changes nothing: returns `change` to show the user and a `proposal` for execute_export_change. A disabled export is `invalid_input`. Needs `get_account` + `edit_shares`. Show the user `change` and ask them to approve it; only then call execute_export_change with the proposal_id. Nothing is changed until then.

  • Prepare Export On/Off

    Proposes turning one export's schedule on or off. Changes nothing: reads the export and returns `unchanged` when it already is in that state, otherwise `change` to show the user and a `proposal` for execute_export_change. Turning one on is `not_allowed`, with no proposal, when the subscription's plan does not allow its destination. Needs `get_account` + `edit_shares`. Show the user `change` and ask them to approve it; only then call execute_export_change with the proposal_id. Nothing is changed until then.

  • Prepare Portal Dashboard Groups

    Proposes replacing how a portal's dashboards are grouped and ordered. Groups and the dashboards in each are in display order; `name: null` is the ungrouped dashboards, and dashboards the portal has that no group lists are appended to it. Every id must be a dashboard in the portal (list_portal_dashboards) and appear once; group names must be unique. `before` and `after` are the arrangement as get_portal_dashboard_groups shows it. Changes nothing: returns `change` to show the user and a `proposal` for execute_portal_change. `not_found` when the workspace has no such portal. Needs `get_account` + `edit_portals`. Show the user `change` and ask them to approve it; only then call execute_portal_change with the proposal_id. Nothing is changed until then.

  • Prepare Workspace User Changes

    Proposes inviting people to this workspace or changing existing members' workspace roles, up to 25 emails, as Funnel's Users page does. New users join the subscription as members and get an invitation email. Changes nothing: returns `change` to show the user and a `proposal` for execute_workspace_user_change. `change` lists each email as `invite`, `role_change` (an existing member whose roles are replaced) or `unchanged`; `unchanged` alone (`status: unchanged`) needs no approval, unless roles were omitted where `change.roles_editable`: then the proposal lets the user pick roles. Needs `get_account` and `edit_account` (Workspace Administrator) on the workspace. Show the user `change`: each email with its roles, and for a `role_change` the roles it replaces. Ask them to approve it; only then call execute_workspace_user_change with the proposal_id. Nothing changes until then.

  • Prepare Portal Brand Update

    Proposes renaming a portal brand of the subscription that owns the workspace or changing its colours; every portal using it changes with it, in any workspace of the subscription. Only the fields given change and the logo is kept. Reads the brand and returns `unchanged` when it already is that way. Changes nothing: returns `change` to show the user and a `proposal` for execute_brand_change. `not_found` when the subscription has no such brand. Needs `get_account` on the workspace and `edit_subscription_portals` on its subscription. Show the user `change` and ask them to approve it; only then call execute_brand_change with the proposal_id. Nothing is changed until then.

  • Prepare Budget Update

    Proposes renaming an active budget or changing its description. Only the fields given change; `description: ""` clears it. Amounts, targets and dates, breakdown amounts included, are changed with prepare_edit_budget. Budgets with rollover, and budgets Plan's newer format cannot read, are renamed in Plan: `invalid_input` says why. Changes nothing: reads the budget and returns `unchanged` when it already is that way, otherwise `change` to show the user and a `proposal` for execute_budget_change. `not_found` when the workspace has no such active budget. Needs `get_account`, `edit_plan_budgets`, `edit_fields` and `edit_datasources`. Show the user `change` and ask them to approve it; only then call execute_budget_change with the proposal_id. Nothing is changed until then.

  • Prepare Convention Update

    Propose replacing an active convention's full definition. Omitted optional fields are removed. Patterns assign each connector to at most one rule; omitted/empty sourceTypes is the all-other-connectors fallback. Read the existing definition first; review full before/after and generated_dimensions, including retained fields that may change. Plan API may create, update or archive many fields. Nothing is written until execute_convention_change. Read list_guides(guide_id='conventions') first. Show the user the full `change`, including generated_dimensions before/after and linked-field effects; ask for approval. Only then call execute_convention_change with proposal_id. Nothing is changed until then.

  • Prepare Update Dashboard Cards

    Propose changes to one or more existing cards of a dashboard, of any type: new text for a text card (such as a commentary or insight section), or new metrics, dimensions, chart type, options, title or position for a chart card. Every card not named, the data tables and the filters stay as they are. Up to 50 cards in one call. Read the dashboard with get_dashboard first and pass the read's `digest` as `based_on_digest`. For each card give its `id` as `card_id` and, in `set`, only the card fields to change, shaped as in get_dashboard's `config.cards`; each replaces that field whole (a new `data` is the card's whole `data`), and `null` removes the field. `id` cannot change. For a text card (`type: "text"`), `set: {content}` replaces its Markdown, and `title` renames it; tell which section each text card is from its `title`, its current `content` and its `position` beside the charts. To change a chart card's `type`, also give the `data` the new type needs; copy the shape of an existing card of that type. `stale`, proposing nothing, when the dashboard changed since that read: read it again. `unchanged` when the cards already are that way. A card id the dashboard does not have is `invalid_input`; so is a card dashboards-service rejects. To add a new card instead, use prepare_append_dashboard_cards. Show the user `change` and ask them to approve it; only then call execute_dashboard_change with the proposal_id. Nothing is changed until then.

  • Prepare Export Filter Update

    Proposes replacing only an existing export's row filter, without creating an export or changing its fields, destination, credentials, schedule, enabled state or date range. Supports standard Google Sheets, BigQuery, Snowflake V2 and Cloud Storage exports, not BI views. Changes nothing; show the current and proposed filters and obtain approval before execute_export_change. Items are ANDed, with explicit OR groups via any. Needs get_account + edit_shares. Show the user `change` and ask them to approve it; only then call execute_export_change with the proposal_id. Nothing is changed until then.

  • Prepare Client Portal Update

    Proposes renaming a portal, changing its description, or setting, changing or removing its brand. Only the fields given change; `brand_id: null` and `description: null` clear them. Reads the portal and returns `unchanged` when it already is that way. Changes nothing: returns `change` to show the user and a `proposal` for execute_portal_change. `not_found` when the workspace has no such portal. Needs `get_account` + `edit_portals`. Show the user `change` and ask them to approve it; only then call execute_portal_change with the proposal_id. Nothing is changed until then.

  • Prepare Scheduled Task Update

    Proposes editing an existing scheduled task by id, or enabling/disabling (pausing) it. Provide the schedule_id (from list_scheduled_tasks) plus at least one field to change: name, prompt, schedule_expression, timezone, status ('enabled'|'disabled'), delivery_channels, or slack_channel. Disabling pauses firing without deleting the task. Use rate(N minutes|hours|days) e.g. rate(1 day), or a 6-field AWS cron cron(minute hour day-of-month month day-of-week year) with '?' for an unspecified day, e.g. cron(0 9 ? * MON *) for every Monday 09:00. Results go to the workspace members picked as email recipients, by default the task owner. Scheduled tasks can also be sent to other workspace members, but you cannot add, remove, or view those recipients: tell the user to manage them in the Scheduled Tasks page. Updating a task here keeps its existing recipients. Never say a task can only be sent to one person. slack_channel posts Slack results into a channel instead of the owner's DM. Pass the channel name the user gave (e.g. #marketing); it is looked up among the channels the Funnel AI app is in. Never ask for or quote a channel ID: refer to channels by name only. If the channel cannot be used, relay the returned message: the user may need to invite the app with /invite @Funnel AI in that channel, or confirm the name. If it is unclear which channel the user means (e.g. #marketing or #marketing-eu), ask the user to choose before setting it. Only the task owner can change it. When a task delivers to Slack and the user has not named a channel, mention once that results can go to a Slack channel instead of their DM. Changes nothing: returns `unchanged` when the task already is that way, otherwise `change` to show the user and a `proposal` for execute_scheduled_task_change. `not_found` when the workspace has no such task. Needs `get_account` and `edit_ai`. Show the user `change` and ask them to approve it; only then call execute_scheduled_task_change with the proposal_id. Nothing is changed until then.

  • Prepare Workspace Settings Update

    Proposes changing this workspace's settings, as its About page in Funnel does. The settings are those on the workspace's About page in Funnel: `name`, and `week_starts_on`, the first day of the workspace's week, which weekly dates, week numbers and week-based periods follow everywhere in the workspace. Give only the settings to change. Changes nothing: returns `change` (each changed setting's current and new value) to show the user and a `proposal` for execute_update_workspace_settings. When every given setting already has that value the answer is `unchanged` and needs no approval. Needs `get_account` and `edit_account` (Workspace Administrator) on the workspace. Show the user `change`: each changed setting's current and new value. Ask them to approve it; only then call execute_update_workspace_settings with the proposal_id. Nothing is changed until then.

  • Reconfigure Data Source

    Reconfigure an existing source. mode defaults to template; only curated Funnel templates are supported today. Send only template_id, never raw definition or recipe. Inspect the exact UUID first; present workspace, source name/connector, current and proposed template IDs and reconfiguration impact, and obtain separate explicit approval. Connector template listings are candidates, not proof of switch eligibility. If the requested template is already configured, this returns unchanged without writing. Depository checks template availability, connector compatibility and ownership; unsupported connectors and disabled sources are rejected. Pass inspected name, state and template ID as stale preflights, not an atomic lock. One PATCH only; if uncertain inspect, never retry automatically.

  • Reconnect Data Source

    Reconnect one existing source to a different connection. Inspect the exact source UUID first; present workspace, source name/connector, current and proposed connection IDs and impact, and obtain explicit approval for THIS reconnection. The new connection must be authorized for the actor; Depository checks its access. Pass inspected name, state, and connection ID as stale preflights, not an atomic lock. One PATCH only; if uncertain inspect, never retry automatically. Reconnecting may clear ERROR blockers but does not guarantee healthy downloads.

  • Rename Data Source

    Rename one exact source by UUID from list_data_sources only after the user approves the workspace, source, current name, and new name. First inspect it, then pass that current name as expected_name. The private Depository key is resolved internally. A stale name prevents the write. A timed-out/uncertain write must be inspected before any further action; never retry automatically.

  • Request Data Source Access

    Create a Request access link for one exact connector ID, for when the user does not have the login and someone else (for example their client) owns the account. The user sends the link to that person; when they sign in through it, the connection is added for the user in this workspace. not_available means the plan or the connector does not allow it: tell the user the message and do not retry. No data source is created.

  • Restore Data Source

    Restore a soft-deleted source by an exact UUID from list_deleted_data_sources. Deleted sources are excluded from search_fields; never guess a UUID. Inspect first (including DELETED state), present workspace, name/connector and impact, then obtain separate explicit approval of THIS restoration. Restoration clears deletedAt but may not resume downloads or reporting or remove an ARCHIVED read blocker. Pass inspected name and state as non-atomic stale preflights; no connection or template is needed. PATCH once; if uncertain inspect, never retry automatically.

  • Select Data Source Connection

    Select a connection from an immutable setup snapshot. The connection is freshly revalidated, then a new snapshot is returned after remote-account discovery.

  • Select Data Source Account

    Select one remote account from an immutable setup snapshot. The signed handle is freshly revalidated and a new snapshot stores its canonical identity receipt.

  • Select Data Source Template

    Select one template (Funnel or saved) from an immutable setup snapshot. The template is freshly revalidated and returned in a new completed setup snapshot. No data source is created.

  • Connect Data Source

    Return the safe Funnel browser login link for one exact connector ID. Prefer start_data_source_setup for the complete setup flow.

  • Start Data Source Setup

    Start one data source setup using the connector_id from list_connectors. It revalidates the connector and available connections, persists an immutable one-hour EFS snapshot, and may return a Funnel sign-in link. creation_unsupported means this connector cannot be created here: stop and tell the user to finish setup in Connect. If the user cannot sign in because someone else (for example their client) owns the account, offer request_data_source_access instead of the sign-in link.

  • Submit Feedback To Funnel

    Report to the Funnel engineering team, at most once per task, when the tools, descriptions, or guides of this Funnel server materially slow or degrade your work. For example: a tool is missing or unsuitable; a tool name, parameter, or schema is unclear; tool descriptions or guides conflict; a tool returns a broken or unexpected result; you retried and failed because of a limit of this server. Do not use it for the user's own opinion of Funnel or a support request, for a single error that a retry fixed, or for ordinary difficulty in the task. It does not reach Funnel support and fixes nothing in this conversation. Describe the mechanism: which tool or description, what you expected, and what happened. Do not include customer data such as names, emails, or field values. Call it in the same step as your next action, not as a step of its own. A report cannot be changed or withdrawn, and no follow-up is needed.

  • Visualize Budget Pacing

    Show a Plan budget's pacing as an interactive Funnel view in clients that support MCP Apps: per target (spend first) the actual to date against the period's target and the target to date, with a running spend chart. Takes a budget_id from list_budgets. Reads the current budget period by default, or the period containing `date`. Values are in the budget's currency. A fixed target (e.g. a target CPC) is compared with the period's value, not paced. Clients without MCP Apps receive the same numbers as text.

  • Visualize Creatives

    Show the ads with creative images in Funnel as an interactive image grid in clients that support MCP Apps, ranked by a metric over a date range, with up to 4 metrics per creative. Pass Funnel field ids from search_fields: metric_ids such as common-cost, and optional dimension_ids such as facebookads-ad_name to label each creative (ads sharing the value are grouped). Ads without an image in Funnel are left out. Images load from presigned links that stop working an hour after the call; call again to refresh them. Clients without MCP Apps receive the ranking as text. You receive the ranking but not the images; call get_creative_images to look at them.

  • Visualize Data

    Render an interactive Funnel chart (hover tooltips, legend, axes formatted by unit) in clients that support MCP Apps. Prefer source for data already stored by query_data, especially anything over about 30 points: pass workspace_id and source { table_name, x, series: [{ column, name?, unit? }], breakdown? } instead of retyping values. The tool reads stored results; it does not query fresh data. Source rows are aggregated by x (and breakdown when used); ratio metrics listed in the stored table are computed from summed dependencies, not averaged row ratios. Non-additive or pre-aggregated fields may require re-running query_data at the chart grain. For non-table charts, pass exactly one of source or inline categories and series. Source is not supported for table charts; pass their columns and rows inline. One category per x-axis point and one series per measure or per breakdown value, each with exactly one value per category (null for gaps). - line: categories are ISO dates (YYYY-MM-DD). Two series with different units or very different magnitudes (e.g. cost and conversions) get a left and a right axis; otherwise each series is one line on a shared axis (e.g. cost per platform). - bar: categories are dimension values; each series is drawn as its own bar chart. - pie: one series; categories are the slices. - combo: ISO date categories, exactly two series, one bar and one line. Set each series display to bar or line; defaults are first bar, second line. - big_number: one category naming the period and one value per series, displayed as metric tiles. - sparkline: ISO date categories; a compact trend row per series with its latest bucket's value. - table: columns [{name, label, role: "dimension"|"metric", unit?}] and rows of string|number|null cells (up to 500 rows), instead of categories/series. Metric cells must be numbers or null. Optional totals maps metric column names to supplied totals; do not sum non-additive metrics. Tables sort and paginate locally. Copy Markdown uses display formatting; CSV and TSV preserve raw numbers with unit-labelled headers. Set unit "monetary" for money and pass currency, so values format as currency. Pass workspace_id to add an Open in Data Explorer button, and date_range to label the chart with the queried period. Clients without MCP Apps receive a plain-text summary.

Set Up Your Funnel MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Funnel in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

FAQ

Funnel MCP Server FAQ

Ready to put your agents to work?