Skip to content
Skills Library
Data & analytics · Tool integration

formo-analytics

/formo-analytics

Query and manage Formo product analytics and onchain wallet data through the Formo MCP server, @formo/cli, or public REST API. Use when an agent needs to inspect KPIs, events, funnels, retention, revenue, users, wallet profiles, contracts, segments, boards, charts, or alerts; run SQL against a Formo project; ingest analytics events; search Formo documentation; or configure Formo access for an AI client.

Repository
cli ↗
Licence
MIT
Last repository change
02.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
8
Deprecation

No signals detected. Repository changed on 02.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Query and manage Formo product analytics and onchain wallet data through the Formo MCP server, @formo/cli, or public REST API. Use when an agent needs to inspect KPIs, events, funnels, retention, revenue, users, wallet profiles, contracts, segments, boards, charts, or alerts; run SQL against a Formo project; ingest analytics events; search Formo documentation; or configure Formo access for an AI client.

Original author description

Query and manage Formo product analytics and onchain wallet data through the Formo MCP server, @formo/cli, or public REST API. Use when an agent needs to inspect KPIs, events, funnels, retention, revenue, users, wallet profiles, contracts, segments, boards, charts, or alerts; run SQL against a Formo project; ingest analytics events; search Formo documentation; or configure Formo access for an AI client.

How it works

  1. Select an interface
  2. Authenticate safely
  3. Query analytics
  4. Work with wallet profiles
  5. Manage Formo resources
  6. Call the REST API
  7. Produce reliable results
Original SKILL.md headings · 140 lines, 1,237 words
SKILL.md preview
---
name: formo-analytics
description: Query and manage Formo product analytics and onchain wallet data through the Formo MCP server, @formo/cli, or public REST API. Use when an agent needs to inspect KPIs, events, funnels, retention, revenue, users, wallet profiles, contracts, segments, boards, charts, or alerts; run SQL against a Formo project; ingest analytics events; search Formo documentation; or configure Formo access for an AI client.
---

# Formo Analytics

Use Formo's project-scoped analytics and wallet intelligence from an AI agent. Select the narrowest interface that already exists in the environment, discover live schemas before writing SQL, and preserve Formo's authentication and tenant boundaries.

## Select an interface

1. Use the Formo MCP when its tools are available. It is the best path for conversational analytics, live tool discovery, Formo documentation search, and project-scoped SQL.
2. Use `formo` when the CLI is installed or a repeatable terminal command is useful. It covers analytics plus profiles, alerts, boards, charts, contracts, segments, imports, and event ingestion.
3. Use the public REST API for programmatic integrations that need explicit HTTP requests or an operation unavailable through the current MCP/CLI surface.
4. Do not ask the user to configure a second interface when an authenticated one already satisfies the request.

Canonical endpoints and packages:

- MCP: `https://api.formo.so/v0/mcp/`
- REST API: `https://api.formo.so/v0/`
- OpenAPI: `https://api.formo.so/openapi.json`
- Event ingestion: `https://events.formo.so/`
- CLI: `npx @formo/cli`
- Documentation: `https://docs.formo.so`

## Authenticate safely

- Use MCP OAuth when the host supports custom-connector OAuth.
- Otherwise use a project-scoped workspace API key as `Authorization: Bearer <key>` for MCP, CLI, and REST.
- Run `formo login <apiKey>` to save a CLI credential, or use the CLI's documented environment-based authentication for ephemeral sessions.
- Use a project SDK write key, not a workspace API key, for raw event ingestion.
- Request only the scopes required by the task. Analytics and SQL need `query:read`; charts use `boards:read` or `boards:write`; other resources use the matching `*:read` or `*:write` scope.
- Never print, commit, log, or repeat credentials. Mask keys in status output and examples.
- Treat the project bound to the credential as authoritative. Do not inject or guess another `project_id`.

If authentication is missing, explain the minimum credential and scope needed, then stop before making authenticated calls.

## Query analytics

Follow this sequence:

1. Clarify the metric, time range, timezone, filters, and desired grain from available context.
2. Prefer a published analytics endpoint for standard KPIs, funnels, retention, lifecycle, traffic, revenue, and top-N questions.
3. Discover available endpoints and schemas before using MCP SQL tools. Call `list_endpoints` and `list_datasources` when the live surface is unknown.
4. Use `execute_query` or `formo query run` only when a published endpoint cannot answer the question.
5. Apply explicit date bounds and a reasonable `LIMIT` to exploratory SQL.
6. Report the filters and time range with the answer. Distinguish zero rows from an execution error.

Useful MCP tools include:

- `list_endpoints`, `list_datasources`
- `text_to_sql`, `execute_query`, `call_endpoint`
- published tools such as `kpis`, `lifecycle`, `top_events`, `top_pages`, `top_sources`, `top_locations`, `revenue_overview`, `retention`, `project_users`, `distinct_values`, `web_vitals`, and `search_profile`
- `search_formo_docs` and `query_docs_filesystem_formo_docs` for grounded product and API questions

The live endpoint list varies by project. Prefer named endpoint tools; use `call_endpoint` as a low-level fallback. `explore_data` has been removed.

`list_datasources` can return column schemas as JSON or Tinybird datafile text. Read the returned schemas before writing SQL; use the live tool schema for any optional arguments. Schema state is session-local and expires after five minutes; refresh discovery when needed. If `text_to_sql` fails upstream, discover schemas and write SQL for `execute_query`.

`project_users`, `distinct_values`, `cohort_analysis`, and `web_vitals` are MCP extras; they are not CLI analytics subcommands or public `/v0/<pipe>` routes. Use `web_vitals` for page-speed questions: discover its parameters, use aggregate quantiles or group by page/device, and evaluate p75. For churn questions, follow lifecycle counts with `project_users` filtered to the relevant cohort and inspect acquisition source, location, device, and last event to identify a concrete segment.

Retention defaults to rolling (active in week N or later). Request `retention_type: "recurring"` for activity in exactly week N. Funnel steps support `events` OR alternatives with member-scoped `filters`; primary `type`/`event` remains included and step-level filters apply to the whole group.

CLI examples:

```bash
formo analytics kpis --date-from 2026-07-01 --date-to 2026-07-31
formo analytics funnel --date-from 2026-07-01 --date-to 2026-07-31 \
  --params '{"steps":[{"type":"event","event":"page","name":"visit","filters":[]},{"type":"track","event":"connect","name":"connect","filters":[]}],"window_seconds":86400}'
formo query run "SELECT event, count(*) AS events FROM events WHERE timestamp >= now() - INTERVAL 7 DAY GROUP BY event ORDER BY events DESC LIMIT 20"
```

Available CLI analytics pipes include `kpis`, `event_timeseries`, `funnel`, `flow`, `frequency`, `lifecycle`, `retention`, `revenue_overview`, `revenue_by_metric`, `revenue_timeseries`, `volume_by_metric`, `top_chains`, `top_events`, `top_locations`, `top_pages`, `top_sources`, and `top_wallets`.

## Work with wallet profiles

Use a direct lookup for one address or ENS name. Use search for cohorts, ordering, or pagination.

```bash
formo profiles get vitalik.eth --expand labels,chains,tokens
formo profiles get vitalik.eth --timestamp 2025-06-21T10:03:00Z
formo profiles search --order-by net_worth_usd --order-dir desc --size 10
formo profiles search \
  --filters '[{"field":"users.net_worth_usd","op":"gt","value":10000}]' \
  --size 20
```

Always use canonical filter paths: `users.<attribute>` (e.g. `users.net_worth_usd`), or one of the four resource fields — `chains.balance`, `apps.balance`, `tokens.balance`, `labels.value` — with the resource identified by a named qualifier (`chain_id`, `app_id`, `token_address`, `tag_id`) alongside `field`/`op`/`value`. A bare field such as `net_worth_usd` may be ignored, and identifier-in-path spellings such as `chains.1.balance` or `labels.<source>.<tag>` are rejected with a `400`.

Profile updates, label changes, and wallet imports require `profiles:write`. Preserve pagination metadata and continue only while `has_more` is true.

Use `--timestamp <ISO-8601>` with `profiles get` to return the stored wallet-enrichment snapshot closest to that instant. `profiles search --timestamp` supports the same lookup but requires `--address`. If two snapshots are equally close, the later snapshot is returned. Project engagement fields, identity overrides, and labels remain current.

## Manage Formo resources

The MCP server exposes management tools for the same resources — alerts, boards/charts (including `reorder_charts` and `execute_saved_chart`), contracts, segments, profile writes, and wallet import — each gated on the matching `*:read`/`*:write` scope, with destructive tools requiring `"confirm": true`.

Use CLI command groups for operational resources:

- `formo alerts` for alert list/get/create/update/delete/toggle
- `formo boards` and `formo charts` for dashboards and visualizations
- `formo contracts` for tracked contract configuration and pipeline inclusion
- `formo segments` for saved audiences
- `formo import wallets` for bulk wallet import
- `formo events ingest` for raw events

Inspect help before constructing unfamiliar payloads:

```bash
formo <group> --help
formo <group> <command> --help
```

Read operations may proceed when the user asks for inspection or analysis. For create, update, delete, toggle, import, and ingest operations, verify the intended target and payload and do not broaden the user's requested scope. Ask before proceeding only when the target is ambiguous, the operation is destructive, or the user has not authorized the external change. Prefer idempotent operations where the API supports them.

## Call the REST API

Fetch the current OpenAPI document before implementing an integration or when exact request fields matter:

```bash
curl -sS https://api.formo.so/openapi.json
```

Send workspace API requests under `/v0/*`:

```bash
curl -sS "https://api.formo.so/v0/profiles/vitalik.eth?expand=labels,chains" \
  -H "Authorization: Bearer <workspace-api-key>"
```

Successful single-resource responses are bare resources. List endpoints normally return `{data,page,size,total,has_more}`. Errors use `{error:{code,message,doc_url,param?,details?}}`; branch on `error.code`, not the human-readable message.

Use page-based pagination, respect rate limits, and retry only safe or explicitly idempotent requests. Do not use Formo's internal `/api/*` dashboard routes for external integrations.

## Produce reliable results

- Ground Formo product, SDK, pricing, and API claims with `search_formo_docs` or `https://docs.formo.so`.
- Use JSON output for automation: `formo ... --json`.
- Preserve full response envelopes when pagination or metadata matters: `formo ... --verbose`.
- Validate SQL against discovered schemas. Never invent columns, endpoints, or filter fields.
- State assumptions and call out partial data, sampling, timezone ambiguity, or unavailable expansions.
- Include the source interface used (MCP tool, CLI command, or REST endpoint) when handing off reproducible work.
- Note that Formo requires an account and that feature or API availability can depend on the workspace plan.
Files in this package (2)
  • SKILL.md 10 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named formo-analytics.

Database snapshot: 13.11.2026 · package version 3ddb00bc90ae (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100query-onchain-data
    Query onchain data on Base using the CDP SQL API via x402. Use when you or your user want to view onchain information about decoded blocks, transactions, and events.
  • 100allium-onchain-data
    Query blockchain data via Allium APIs. Token prices, wallet balances, transactions, historical data. Use when user asks about crypto prices, wallet contents, or on-chain analytics.
  • 90amplitude
    Query read-only Amplitude product analytics. Use when users ask about active users, product usage, events, segmentation, funnels, conversion, retention, charts, dashboards, experiments, cohorts, taxonomy, session replay, feature flags, guides, surveys, feedback, agent analytics,…
  • 91manufact-analytics
    Query deployed MCP server usage, errors, latency, clients, and actors through the Manufact Cloud CLI using a live catalog and read-only SQL. Use for server analytics questions, not PostHog CLI adoption tracking or analytics configuration.
  • 95engineering-gameplay-analytics
    Use when tracking player events, implementing retention analytics, building engagement funnels, measuring D1/D7/D30 retention, or setting up gameplay telemetry. Triggers: analytics, telemetry, events, retention, D1 D7 D30, funnel, engagement, session tracking, player behavior.
  • 85invisit-analytics
    Read and act on a site’s invisit analytics (visitors, sources, AI referrals, funnels, revenue, web vitals) through the invisit MCP server or REST API. Use when asked about traffic, conversions or revenue of a site measured with invisit.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.