Docs

API and agents

MCP, REST and a command-line tool for your own AI agents and scripts: reading on every plan, suggesting and writing from Starter.

Agents and tools sign in with OAuth (Claude, ChatGPT, Cursor and other MCP clients do this for you: add SCRLT by its address and approve it inside Shopify) or with a key from Settings > API and agents. A sign-in asks for reading only; a tool that needs to write (fix) or undo answers 403 insufficient_scope with the scopes to ask for, and the client signs in again for them, so you approve each one when it is first needed. Reading works on every plan. Starting passes, editing suggestions and writing need Starter or above.

Three rules every surface keeps

  • Nothing reaches your store without a preview: each write needs the plan hash its preview returned, once, within 10 minutes, and only if nothing changed since.
  • A field a person wrote is never written: it is left alone for agents too, and only you can change that, in the app.
  • Everything an agent writes keeps the value it replaced and can be undone from History.

What stays in the app

  • Ask (typing what to fix in your own words).
  • Changing what SCRLT leaves alone, including fields your team wrote (Settings > Locks).
  • Ticking a field SCRLT left alone to write it by hand.

Operations

Each one is an MCP tool, a REST route under /api/v1 and a command of the scrlt CLI. Arguments, an example, the errors and the next step for each are in the API reference (/help/api-reference).

  • scrlt_status, GET /api/v1/status, scrlt status: The plan, what agents may do on it, whether the catalogue is read, open issues by kind, fields written.
  • scrlt_find_records, GET /api/v1/records, scrlt find <q>: Products and collections whose title, product type or tag matches some words, with their ids (?q=&type=&limit=).
  • scrlt_list_issues, GET /api/v1/issues, scrlt issues: Open SEO, catalogue and Google Shopping readiness issues with the record's name, 50 a page (?rule=&rule=&cursor=&limit=&detail=).
  • scrlt_get_record, GET /api/v1/records/:record, scrlt record <record>: One product or collection: open issues, what SCRLT wrote (before and after), what it left alone and why.
  • scrlt_field_locks, GET /api/v1/records/:record/locks, scrlt locks <record>: Per field of a record (default every field SCRLT can fill): free to suggest, or left alone and why (?field=seo.title&field=...).
  • scrlt_get_pass, GET /api/v1/passes/:pass_id, scrlt pass get <pass>: A pass and its suggestions (before, suggested, why, left alone and why), 50 a page (?state=&record=&cursor=&limit=).
  • scrlt_list_history, GET /api/v1/history, scrlt history: Approved passes and undos, newest first, with who started each and how many fields it wrote (?since=&until=&cursor=).
  • scrlt_translation_coverage, GET /api/v1/translation/coverage, scrlt translate coverage: Per language: strings missing, older than the original, and translated.
  • scrlt_create_pass, POST /api/v1/passes, scrlt pass create: Start a pass that writes suggestions for the given fix kinds; nothing reaches the store.
  • scrlt_create_translation_pass, POST /api/v1/translation/passes, scrlt translate pass <locale>: Start a pass that suggests translations into one language; nothing reaches the store.
  • scrlt_generate_rest, POST /api/v1/passes/:pass_id/generate-rest, scrlt pass rest <pass>: After a large pass's sample of ten records, suggest wording for every other record it covers; nothing reaches the store.
  • scrlt_edit_suggestion, POST /api/v1/passes/:pass_id/suggestions/:suggestion_id, scrlt pass edit <pass> <suggestion>: Change a suggestion's wording, or leave it out of (or back into) the pass.
  • scrlt_cancel_pass, POST /api/v1/passes/:pass_id/cancel, scrlt pass cancel <pass>: Stop a pass that is generating or waiting for review; nothing it suggested is written.
  • scrlt_preview_apply, POST /api/v1/passes/:pass_id/apply-preview, scrlt pass preview <pass>: What approving the pass would write (counts and the first rows) and the single-use plan_hash for scrlt_apply.
  • scrlt_apply, POST /api/v1/passes/:pass_id/apply, scrlt apply <pass> --plan-hash <hash>: Write the previewed pass to the store; each field is checked again first and keeps its earlier value for undo.
  • scrlt_preview_undo, POST /api/v1/passes/:pass_id/undo-preview, scrlt undo preview <pass>: What undoing a written pass (or only some of its fields) would put back and what changed since (left as is), with the plan_hash for undo.
  • scrlt_undo, POST /api/v1/undo/:undo_pass_id/confirm, scrlt undo <undo-pass> --plan-hash <hash>: Put back what the previewed undo listed; fields that changed again since are left as is.

MCP

Add https://scrlt.toolfora.com/mcp to your client. It speaks MCP 2026-07-28 and still answers 2025-11-25 and 2025-06-18 clients. Two prompts (Fix what is missing; Review and undo a pass) and this help center as resources.

REST

curl -H "Authorization: Bearer sk_scrlt_..." https://scrlt.toolfora.com/api/v1/status

The OpenAPI document is at /api/v1/openapi.json. Errors are { error: { code, message, status, next } }, where next is the call or step that gets you going again. POSTs accept an Idempotency-Key: the same key and body within 24 hours replays the first answer; the same key with another body is 409. Starting a pass (scrlt_create_pass, scrlt_create_translation_pass) also takes it as an idempotency_key argument, so an MCP client that retries a call gets the first pass back instead of a second one. Each answer carries X-RateLimit-Limit and X-RateLimit-Remaining, and a 429 carries Retry-After.

Long-running work

Generating suggestions and writing take a while. After starting a pass or a write, read the pass every 10 to 20 seconds until it is ready for review (or done after a write). The CLI's scrlt guard does this for you.

Samples

A pass over more than 50 records suggests for a sample of ten records first: the pass is in review with sample true, and its next step says so. Show the sample; scrlt_generate_rest (scrlt pass rest) then suggests every other record and the pass goes back to generating. Approving while sample is true writes only the sample.

Command line

curl -fsSLo scrlt https://scrlt.toolfora.com/cli/scrlt.mjs && node scrlt --help

Exit codes: 0 ok; 1 a bad command, flag or value; 2 sign-in or scope; 3 not found; 4 changed since its preview, or not in review (nothing written); 5 the plan does not include it; 6 rate limited; 7 network or server; 8 a write without its preview's plan hash; 9 guard gave up waiting; 10 guard: the pass failed or was cancelled.

Rate limits a minute (reads / writes)

  • Free: 30 / none
  • Starter: 60 / 10
  • Growth: 120 / 20
  • Pro: 300 / 60

Limits on work agents start

  • At most 5 passes open (generating or in review) per token, and 10 across every agent of a store; over that, starting a pass answers 409 limit_reached naming the open passes, so cancel one (scrlt_cancel_pass) or finish one with the merchant.
  • A daily allowance of records agent-started passes may suggest for, per store: four times the products the plan is priced for, at least 2,000, from midnight UTC. Once it is used up, starting a pass or scrlt_generate_rest answers 429 limit_reached with Retry-After, and passes already generating wait and continue on their own after midnight UTC.
  • A pass an agent starts skips fields that already wait for review in another open pass, so starting the same pass twice suggests nothing new.
  • The merchant's own passes in SCRLT are never limited, and go first.

Still stuck? Ask a person