🗄

DATABASES

Agents query your database for real-time metrics during deliberation

Connect PostgreSQL, MySQL, or any database via a read-only API wrapper. Agents run predefined queries to pull live metrics — revenue, usage, inventory, conversion rates — exactly when they need them to support their arguments.

WHAT AGENTS SEE

Agents call your data API: GET /api/data/query/monthly_revenue → receives current numbers. No raw SQL — you define safe, parameterized queries as tools.

LIVE EXAMPLE

Council deliberates: "Should we launch the premium tier this quarter?"

REVENUE-01:GET /api/data/query/mrr_trend?months=6 → MRR: $42K→$67K (+59%)

Strong growth trajectory. Premium tier could accelerate.

USAGE-01:GET /api/data/query/power_users → 312 users hitting plan limits

312 users would be immediate premium candidates — $23K/mo TAM.

CHURN-01:GET /api/data/query/churn_by_plan → Pro churn: 8.2%, free: 42%

Pro retention is good but 8.2% still bleeds. Premium adds retention lever.

◈ Synthesis:

RECOMMENDATION: Launch premium Q2. TAM is $23K/mo from power users alone. But fix Pro churn first — 8.2% means 1 in 12 Pro users leaves monthly.

GET CONNECTED

1

Create a read-only API wrapper

A simple service with predefined queries: /api/data/query/{query_name}. No raw SQL exposed.

{"name": "company_data", "type": "http", "base_url": "https://internal.api/data", "auth": "Bearer $DATA_TOKEN"}
2

Define safe queries

Each query is a named endpoint with parameters. Agents can't write or run arbitrary SQL.

3

Assign to relevant agents

REVENUE-01 gets access to financial queries. USAGE-01 gets product metrics. Least privilege.

▸ CONNECT YOUR DATA