Tyton
v1.0.0Audit and set up Meta Pixel and the Conversions API from your AI agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_signup Create signup link
Creates a Tyton signup and Connect link for one website. Takes either a saved free audit (audit_id and audit_key, which brings the report along) or site_url, the customer's live https website. customer_approved records that the customer agreed to set up Tyton. Returns authorization_url for the customer, plus a private request_id and poll_token for checking the request's status. The customer can pick the free plan or a paid one; existing accounts with a plan skip that step. The link grants no access and starts no tracking by itself.
| Parameter | Type | Description |
|---|---|---|
customer_approved * | boolean | |
audit_id | string | |
audit_key | string | |
client | string | |
site_url | string | The customer's website (https) when there is no saved audit. The customer sees and approves it before connecting. |
get_signup_status Check signup status
Checks a signup and Connect request using its request_id and private poll_token. Returns waiting, unavailable or expired, or, after the site owner approves, this connection's server URL, private server key, public browser key and project. The suggested polling interval is 5 seconds. A connection is not tracking approval or activation.
| Parameter | Type | Description |
|---|---|---|
poll_token * | string | |
request_id * | string |
delete_connected_project Delete connected site
Permanently deletes the Tyton project connected to this connection, including its keys, setup and stored event history. Requires confirmed: true and expected_url equal to the connected project's current URL; nothing is deleted if they differ. The account subscription and billing, the website itself and the Meta dataset and its data are unchanged. The Tyton snippet or SDK stays on the website until removed, and a browser Pixel already loaded there can keep sending to Meta until it is removed and the page reloads. A Meta request already in progress cannot be recalled. Requires a connected site.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | |
expected_url * | string |
save_capi_token Save Conversions API token
Saves a Meta Conversions API token for the connected site's current Pixel. Takes the Pixel ID plus exactly one of capi_token (the raw token) or sealed_capi_token (a sealed token from the Tyton browser extension, starting with `tyton_sealed_v1.`). The Pixel ID must match the site's saved Pixel. Meta checks the token; an explicit invalid or expired response is rejected, otherwise the token is saved with delivery unchecked. Saves the token encrypted; it is never returned. Does not send a test conversion, approve or activate tracking, or prove delivery. Requires a connected site with an active Tyt…
| Parameter | Type | Description |
|---|---|---|
pixel_id * | string | |
capi_token | string | |
sealed_capi_token | string | A sealed token from the Tyton browser extension, exactly as given (starts with tyton_sealed_v1.). |
save_audit_to_project Link audit to site
Links an existing Tyton audit report to the connected website's Get Started checklist. Takes the report URL; only a report for this exact website is accepted. A linked report completes the checklist's audit step; it is not proof that tracking works. Requires a connected site.
| Parameter | Type | Description |
|---|---|---|
report_url * | string |
get_setup_progress Read setup progress
Reads the connected site's setup state in one compact response: plan approval, installation generation, missing callback sources, intentional pauses and the single next step. Read-only: makes no approval or activation and sends no test events. Callback evidence is not business success or Meta receipt. Verification-only setup works without Meta credentials. Requires a connected site.
check_live_setup Check live event receipts
Checks whether specific PageView or conversion event IDs from an activated live installation reached Tyton's dashboard storage in the last 24 hours. Takes the installation ID and up to 20 unique event and source pairs. Read-only: sends no events and grants no approval. Verification callbacks are not live events. Reports receipt of the requested events only, not business outcomes, all site traffic, target or generation attribution, or Meta delivery. Requires a connected site.
| Parameter | Type | Description |
|---|---|---|
events * | array | |
installation_id * | string |
get_sdk_installation Get SDK install instructions
Returns the private Tyton server SDK download, its SHA-256 checksum and the local-file install steps for the connected project. The download authenticates with the connection's server key; no npm publisher account or access to Tyton's repository is needed. Read-only: does not install, approve, start tracking or send events. Requires a connected site.
approve_conversion_plan Approve conversion plan
Records approval of an unchanged conversion plan proposal, identified by its revision and digest, after the customer explicitly accepted it in chat. Requires confirmed: true and customer_confirmation with scope approve_plan. The connected key can approve only its own project; Tyton records connected-agent provenance, not verified human identity. Stale or changed revisions are rejected. Approval only: does not activate tracking or authorize live Meta events. The customer can also approve in the signed-in report.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | |
customer_confirmation * | object | |
digest * | string | |
revision * | integer |
approve_and_start_conversion_plan Approve plan and request start
Records approval of an unchanged conversion plan proposal plus one start request, identified by revision, digest and request_id, after the customer explicitly accepted that scope in chat. The start runs only after the matching installation has fresh verified callbacks. Requires confirmed: true and customer_confirmation with scope approve_and_start_after_checks. A repeated request_id is treated as a retry of the same request. Requires a paired server key and the approval and execution features. Sends nothing now, bypasses no checks, and does not resume a paused, revoked, changed or restaged ins…
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | |
customer_confirmation * | object | |
digest * | string | |
request_id * | string | |
revision * | integer |
read_conversion_installation Read installation state
Reads staged callback bindings, observed verification signals and the active or paused installation state for the connected site. Read-only. A verified callback proves receipt only, not business success or permission to send live. A matching pending approve-and-start request activates automatically after every fresh current-key check; otherwise the signed-in owner activates separately. Agents cannot activate manually. Active authorization does not prove live client deployment or Meta receipt.
stage_conversion_installation Stage installation
Stages callback bindings (conversion, target and a browser or server source) for the approved latest plan revision and digest under an installation generation. A matching generation is resumed; staging a new generation pauses the previous installation, clears verification and can cancel a pending start. Each enabled target needs a source, and Purchase requires a server source. Each binding reports through client.conversion(conversionId, targetId, data, {installationId: generation, eventId: stableOccurrenceId, verify: true}) on trusted confirmed success, not on a click, submit attempt or URL qu…
| Parameter | Type | Description |
|---|---|---|
bindings * | array | |
digest * | string | |
generation * | string | |
revision * | integer |
read_conversion_plan Read conversion plan
Reads the connected site's current conversion plan draft, its open questions, approval state and review link. Read-only.
propose_conversion_plan Draft conversion plan
Saves a conversion plan draft for the connected site. Does not approve or activate it. document.revision must equal expected_revision + 1; a repeated request_id is treated as a retry of the same change. Document: {schemaVersion:1,revision,conversions:[{id,label,enabled,eventName,targets:[{id,label,origin,path}],success:{kind,description}}]}. IDs are stable lowercase slugs; labels are distinct. Official Meta event names only. HTTPS origins only; a path has no query or fragment. Success kind: confirmed_success, checkout_started (InitiateCheckout only), or unresolved. 1 to 50 conversions, 1 to 20…
| Parameter | Type | Description |
|---|---|---|
document * | object | |
expected_revision * | integer | |
request_id * | string |
begin_audit Begin free audit
Starts a new free audit session for a URL. Returns a private capability (audit_id and audit_key), revision 0 and an initial request_id for the first evidence save, so a lost save response can be retried safely. Saves nothing. The capability covers only this audit record, not access to the website.
| Parameter | Type | Description |
|---|---|---|
url * | string |
read_audit Read audit
Reads an existing audit using its private capability. Returns recorded context, scoped observations, provenance, component coverage, the current decision with open questions, and the report link. Read-only; does not verify the site's backend or grant access to it.
| Parameter | Type | Description |
|---|---|---|
audit_id * | string | |
audit_key * | string | |
request_id | string | UUID identifying one mutation; a repeated request_id with identical content is treated as a retry |
revision | integer | latest run revision; 0 for the first write of a new audit session, then the revision returned by the previous write |
record_audit_context Record audit answers
Saves answers about one audited component to the audit. audit_scope records the customer's choice between continuing the investigation and a public-only audit; availability_expectation records whether unavailable controls are expected. Both must have source human_reported. Earlier topics are kept; a new answer replaces the same topic. A public-only choice allows a partial report without further access requests. Returns the updated audit decision and report link.
| Parameter | Type | Description |
|---|---|---|
answers * | object | |
url * | string | |
audit_id | string | audit run ID returned by Tyton; each audit run has its own ID |
audit_key | string | private audit write capability returned by Tyton; a secret that authorizes changes to this audit only |
request_id | string | UUID identifying one mutation; a repeated request_id with identical content is treated as a retry |
revision | integer | latest run revision; 0 for the first write of a new audit session, then the revision returned by the previous write |
record_audit_runtime Record runtime evidence
Saves bounded runtime evidence to the same audit run: sanitized observations from a real browser, authorized backend inspection or a destination UI, with the consent state and observation time. Does not run a browser or send events. A check whose evidence type does not prove it is stored as unknown. Returns the updated findings and report link.
| Parameter | Type | Description |
|---|---|---|
checks * | array | |
consent_state * | string | |
observed_at * | string | |
url * | string | |
audit_id | string | audit run ID returned by Tyton; each audit run has its own ID |
audit_key | string | private audit write capability returned by Tyton; a secret that authorizes changes to this audit only |
request_id | string | UUID identifying one mutation; a repeated request_id with identical content is treated as a retry |
revision | integer | latest run revision; 0 for the first write of a new audit session, then the revision returned by the previous write |
connect Connect with pairing code
Connects a Tyton site to this connection using a single-use pairing code from the site's card on usetyton.com (valid for 15 minutes). Returns the site's server key and browser key, shown only once, with configuration examples for common MCP hosts.
| Parameter | Type | Description |
|---|---|---|
code * | string | the pairing code, e.g. 7K2M-QX4T (dashes optional) |
client | string | which host is calling; used to label the new key |
audit_site Audit a public page
Inspects one public page's HTML and saves a partial audit report, without signup. Takes the audit session fields and the page URL, plus optional sanitized HTML supplied by the agent, which is stored as unverified evidence. One session can hold several related components. Returns evidence, limitations and discovery actions, not a full tracking-health verdict.
| Parameter | Type | Description |
|---|---|---|
url * | string | the site to audit |
audit_id | string | audit run ID returned by Tyton; each audit run has its own ID |
audit_key | string | private audit write capability returned by Tyton; a secret that authorizes changes to this audit only |
fresh | boolean | bypass the short public-page cache when verifying a change |
html | string | Authorized, sanitized page HTML, including local previews. The entire JSON-RPC request is limited to 256 KiB after JSON escaping, so a larger page needs a focused capture. Page markup only, without pr… |
request_id | string | UUID identifying one mutation; a repeated request_id with identical content is treated as a retry |
revision | integer | latest run revision; 0 for the first write of a new audit session, then the revision returned by the previous write |
setup_tracking Discover or configure site
Discovers or configures reviewed v2 setup for a site. With only a URL it is read-only, needs no Pixel and returns setup guidance. With a real Pixel ID on a connected project, it saves the project's site URL and Pixel ID; switching an existing Pixel or site requires confirm_change. Does not approve, install or activate tracking.
| Parameter | Type | Description |
|---|---|---|
url * | string | the site being tracked: a domain or full URL |
checkout_domains | array | hostnames where checkout happens, if already known |
confirm_change | boolean | true = yes, switch this project to a different Pixel ID or site URL on purpose |
name | string | project name; defaults to the site name |
pixel_id | string | Meta Pixel ID, numeric; optional while it is not yet known |
setup_server Save server setup answers
Saves checkout and landing answers (payment provider, landing type and route, checkout domains) for the connected project and returns the reviewed server SDK success-callback contract. Does not install an integration or prove provider support; approval and activation are separate. Requires a connected site.
| Parameter | Type | Description |
|---|---|---|
backend * | string | where server code runs, as shown by the code (api, server or functions directories, or a separate service) |
landing_type * | string | where the person ends up after paying: a thank-you page, back in the app, nowhere (overlay checkout), or the provider's own screen |
payment_provider * | string | who processes payments, as shown in code (package.json, env vars, webhook routes) |
checkout_domains | array | hostnames checkout lives on, if not the site itself ([] clears what's stored) |
landing_marker | string | what marks a purchase in the landing URL, e.g. ?checkout=success; often empty |
landing_route | string | e.g. /checkout/success or /dashboard; applies only to thank_you_page and app_route |
setup_status Read site configuration
Reads the connected project's configuration: site URL, Pixel ID, token status and saved checkout answers. Read-only. Configuration and token status are not plan approval, callback verification, activation or Meta receipt. Requires a connected site.
verify_install Check page HTML for Pixel
Checks a page's static HTML for Tyton container and Meta Pixel references, using a public fetch or HTML supplied by the agent, and compares them with the connected project. Read-only. Does not verify runtime callbacks, activation, consent behavior or Meta receipt. Requires a connected site.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
html | string | page HTML fetched by the agent |
tracking_status Read tracking status
Reads aggregate browser and server event observations, delivery statuses, and the known-crawler protection mode and counts for the connected site. Read-only. Counts are not unique business conversions, current installation verification or proof of Meta deduplication. Requires a connected site.
submit_findings Submit code findings
Saves code review findings from the customer's repository to the audit: server-side events, dedup IDs, Pixel and container presence, payment provider, framework, backend location and existing Conversions API quality, plus the relative paths reviewed and any inapplicable checks with reasons. Unknown values stay unknown, not failed. Findings are stored as agent-reported, not verified deployed behavior. A group label is a label only; each report stays separate. Returns the updated audit decision and report link.
| Parameter | Type | Description |
|---|---|---|
url * | string | the site these findings belong to |
audit_id | string | audit run ID returned by Tyton; each audit run has its own ID |
audit_key | string | private audit write capability returned by Tyton; a secret that authorizes changes to this audit only |
backend | string | where the backend code is: in this repo, a separate repo not available here, or unknown |
checkout_domains | array | domains the checkout lives on, if separate; no customer paths or query strings |
container_in_code | string | Tyton container script embedded? |
dedup_ids | string | orderId/event_id on both browser and server events? |
existing_capi | object | grades for existing CAPI code, if any: hashes_pii (does it hash emails/phones before sending?), sends_event_id (does each server event include an event_id?), graph_version (which Graph API version, e.… |
framework | string | frontend framework (from package.json deps) |
group | string | legacy grouping label only; does not combine reports or verify domain ownership |
not_applicable | array | Inapplicable checks, each with the actual reason, based on reviewed files and confirmed scope. Missing access counts as unknown, not N/A. |
notes | anything else found; a string or an array of strings | |
payment_provider | string | payment processor used (from package.json, env vars, webhook routes) |
pixel_in_code | string | Meta Pixel initialized anywhere in the code? |
request_id | string | UUID identifying one mutation; a repeated request_id with identical content is treated as a retry |
reviewed_files | array | relative paths actually inspected in the relevant customer repository; no source code, absolute paths or secret files |
revision | integer | latest run revision; 0 for the first write of a new audit session, then the revision returned by the previous write |
server_evidence | string | one line: file/function where it was found |
server_side_events | string | code sends server-side events (CAPI/SDK/webhook)? unknown when not checked |
read_docs Read Tyton guidance
Returns Tyton guidance on one topic. meta_setup is the dashboard's nine-step Meta checklist (business, dataset, website, Conversions API token, testing), optionally a single step. website_management covers the website selector, per-project agent connections and deletion. Other topics: install, events, dedup, crawler_protection, create_pixel, create_business, consent, pricing, privacy, performance, gtm, platforms, faq. Read-only reference text, not saved checklist state or proof of delivery.
| Parameter | Type | Description |
|---|---|---|
topic * | string | |
step | string | Optional Meta setup step; only used with topic meta_setup. |