All workFILE 37 / 44

Marketing services

An AI data analyst for client teams, served by 16 MCP servers

Shipped for A marketing agency

297

MCP tools across 16 serversMARKETING AGENCY

01

The problem

The agency's client teams spent their time pulling numbers out of a dozen ad, analytics and commerce platforms before they could think about them.

02

The constraint

The numbers have to be right and the money has to be safe: an analyst that does arithmetic in a language model, or can move a budget on its own, is not one a client team can trust.

THE MACHINE

03

The system

A multi-agent AI analyst on a TypeScript agent framework, reached from chat, behind an MCP gateway. The model only chooses the operation; the calculations are pure code. 16 MCP servers expose 297 tools across ads, analytics, search, email, commerce, membership and trend data: 12 built from scratch (175 tools) and 4 extended from open-source bases (122 tools), most reading privacy-safe metrics from the warehouse. A multi-tenant console gives each client its own dashboard.

FIG. 01 · SYSTEM FLOW · 8 NODES · 7 FLOWS

System diagram: 8 nodes and 7 directed flows.

  • SOURCE

    • client team · chat
  • MODEL

    • multi-agent AI analyst
  • HUMAN

    • owner · write token
  • ACTION

    • MCP gateway
    • 16 MCP servers · 297 tools
    • calculations in code
    • capped writes · read back
  • STORE

    • warehouse · ads, analytics, commerce

FLOWS

  1. client team · chat to multi-agent AI analyst
  2. multi-agent AI analyst to MCP gateway
  3. MCP gateway to 16 MCP servers · 297 tools
  4. warehouse · ads, analytics, commerce to 16 MCP servers · 297 tools
  5. 16 MCP servers · 297 tools to calculations in code
  6. owner · write token to capped writes · read back
  7. 16 MCP servers · 297 tools to capped writes · read back
Available when animations are enabled.

THE GATE · WHERE A PERSON SIGNS OFF

04

The human in the loop

Marketplace bid and budget writes are off by default, need a second write token held by a person, are capped on every call (bids by 20%, budgets by 25% a day), and are read back after the change.

MEASURED, NOT CLAIMED

05

The outcome

Client teams ask in plain language and get numbers computed in code from 297 tools, with any change to spend held behind a person's token and hard caps.