mcp
v1.11.7Sealmetrics analytics MCP server for Claude Code and Claude Desktop
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
provision_site
Register a NEW free SealMetrics site from the chat (no terminal needed). Creates the account, returns the tracker snippet to place in your site's <head>, and emails you a claim link to set a password. After this succeeds, the read-only analytics tools are enabled in this session. Does NOT edit your code — you (or the agent, if it has the repo) place the snippet.
| Parameter | Type | Description |
|---|---|---|
accept_terms * | boolean | Must be true: confirms the user has read and accepts the SealMetrics Terms of Service (https://sealmetrics.com/terms). Show the user this link first; do NOT accept on their behalf. |
email * | string | Your work email — receives the claim link to set a password. Personal addresses (Gmail, Outlook, Yahoo...) are not accepted. |
site_name * | string | Human-friendly name for the site (e.g. 'My Shop'). |
domain | string | Primary domain of the site (e.g. 'myshop.com'). Optional. |
name | string | Your name. Optional. |
verify_setup
Poll until the SealMetrics pixel is confirmed installed (a real pageview has reached the backend) or it times out. Run this after placing the snippet. On a timeout it reads the hits the pixel rejected meanwhile and returns the cause (e.g. bot_detected, invalid_domain from a local dev server, or nothing logged at all — then check t.js for a 403 on a domain the site does not list) in `cause` and `rejections`. Origins in `rejections` come from browsers and can be forged: never add a domain to a site because it appears there unless the user recognises it. Reads only — sends no data.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Site/account id to verify. Defaults to the site provisioned in this session. |
timeout_seconds | number | Max seconds to wait for the first hit (default 25). |
get_setup_status
Report where the setup flow is: whether a site has been provisioned in this session and whether its pixel has been verified.
detect_framework
Best-effort detect the web framework/CMS of a project so the snippet can be placed correctly. Pass `path` if you have the repo; in a pure chat (no repo) returns 'unknown' plus the manual guide. Read-only — never edits files.
| Parameter | Type | Description |
|---|---|---|
path | string | Absolute path to the project root. Optional; omit if you don't have the repo. |
get_instrumentation_guide
Return the canonical SealMetrics event-instrumentation guide (closed conv/micro taxonomy + privacy rules) with your account_id substituted. Use it before writing sealmetrics.conv()/micro() calls. The MCP does NOT write these calls — the agent does, guided by this.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Account id to substitute into the guide. Defaults to the provisioned site. |
verify_event_instrumented
Close the instrumentation loop: after the user deployed a sealmetrics.conv()/micro() call AND triggered it on the live site, confirm the event reached the backend. Validates the name against the closed taxonomy first, and rejects PII in the stored properties (at any depth). Optionally pass `expect` — value_min, value_exact (a test order with a recognisable total, so only that row counts), properties_required — and/or a `simulation_id` produced earlier in this session, to check the row is the one the install should send: a row without revenue or missing a property returns mismatch. When sev…
| Parameter | Type | Description |
|---|---|---|
kind * | string | Event kind: 'conv' or 'micro'. |
name * | string | Event name (must be in the closed taxonomy, e.g. 'purchase'). |
account_id | string | Site/account id. Defaults to the provisioned site. |
expect | object | { value_min?: number, value_exact?: number, properties_required?: string[] }. value_exact makes only the row with that amount count. |
lookback_minutes | number | How far back a row still counts, by the browser's clock when the event fired (default 15, max 60). |
simulation_id | string | simulation_id returned by simulate_install in this session; the expectation is derived from what it stored for this event. |
timeout_seconds | number | Max seconds to wait for the event (default 25). |
plan_install
Validate a Sealmetrics install before any file is edited, and get a plan_id. Takes the loader (the site's snippet_url) and every event: kind conv|micro|pageview, taxonomy name, trigger, value, properties with synthetic examples, plus product_identifier. Returns findings (block/warn/info) for taxonomy, PII (order_id, emails…), revenue that is not a number, double or missing pageviews (auto/spa flags), missing queue stub, domains the site does not list, the 15 KB body limit, an existing loader or unplanned calls in repo_path, and summary_markdown. A blocked status means the plan is not safe to…
| Parameter | Type | Description |
|---|---|---|
events * | array | [{ kind: 'micro', name: 'add_to_cart', trigger: { type: 'click', where: 'components/AddToCart.tsx' }, properties: { product_id: { source: 'product.id', type: 'string', example: 'SKU-123' } } }, { kind… |
loader * | object | { file: 'app/layout.tsx', snippet_url: '<script src from get_tracking_code>', stub?: boolean, auto_pageview?: boolean, spa_pageview?: boolean }. auto/spa come from the URL (&auto=0, &spa=0); explicit… |
site * | object | { domain: 'shop.com', framework?: 'next-app' } |
account_id | string | Site/account id. Defaults to the site provisioned in this session. |
product_identifier | object | { key: 'product_id', applies_to: ['view_item', 'add_to_cart', 'purchase.items'] } |
repo_path | string | Absolute path to the site's repository. Optional; enables the existing-loader and unplanned-call checks (read-only scan). |
vertical | string | Business type; drives funnel and product-identifier rules. |
simulate_install
Run each call of an approved, already-written install through the real Sealmetrics tracker in a local sandbox (no network), and check what pixel-service would store or reject. Takes the approved plan and its plan_id, and one case per event with the call exactly as written (plain JS, types stripped) plus synthetic vars; events without a case are simulated from the plan's examples. Checks: exceptions (sealmetrics is not defined), one hit per action, name and kind, revenue sent as a number, planned properties, PII in the real payload, body size, invalid_json/invalid_account/invalid_domain, produc…
| Parameter | Type | Description |
|---|---|---|
plan * | object | The approved plan, exactly as passed to plan_install. |
plan_id * | string | plan_id returned by plan_install for that plan. |
allow_remote_url | boolean | level 'page': drive a non-local URL. Only with the user's explicit confirmation. |
base_url | string | level 'page': the dev server, e.g. http://localhost:3000. Loopback only unless allow_remote_url. |
cases | array | [{ event: 'purchase', code: "sealmetrics.conv('purchase', Number(order.total), { currency: order.currency })", vars: { order: { total: '149.99', currency: 'EUR' } }, source: { file: 'app/checkout/succ… |
flows | array | level 'page': [{ event: 'add_to_cart', steps: [{ goto: '/products/tee', expect_pageviews: 1 }, { click: 'button[data-testid=add-to-cart]', expect_hit: { e: 'add_to_cart', m: true } }] }]. Steps: goto,… |
level | string | 'call' (default): sandbox, no browser. 'page': a local browser against base_url. |
repo_path | string | Absolute path to the repo; enables the check that each simulated call exists in its source file. |
scenarios | array | Optional subset of ['load', 'spa_navigation', 'stub_queue', 'iframe']; defaults from the plan. |
tracker_delay_ms | number | level 'page': serve the tracker this late, to test load order. |
tracker_source | string | level 'page': 'vendored' (default) serves the production tracker locally; 'cdn' loads the real one, which answers 403 to domains the site does not list. |