🇬🇧 English · 🇫🇷 Français
What is ATSS
ATSS (Afro Tools Spec Standard) defines the structure, required fields, and rules for every spec in this registry.
A spec is a structured, machine-readable description of one API capability. It is not a wrapper. It is not an SDK. It is a declarative description.
Terminology note: In this repo, "spec" refers to an ATSS API description (
schema.json+canonical_example.ts). This is distinct from Claude Code "skills" (SKILL.md files inplugin/skills/), which are instruction files for AI agents.
Folder structure
specs/{category}/{provider_slug}/
├── provider.json ← provider-level metadata
└── {capability}/
├── schema.json ← capability spec
└── canonical_example.ts ← working TypeScript example
category — payment, communications, identity, logistics or language (extensible to other categories).
communications covers providers that send SMS, WhatsApp, USSD, voice or email —
the specific channels go in provider.json's channels field, not in the category name.
provider_slug — lowercase, no spaces, no dashes (e.g. paycard, wave, nimbasms). Unique across all categories: the registry, the MCP and the website look providers up by slug alone, so a provider offering products in several categories uses one slug per product. validate.js rejects a slug reused in another category.
capability — snake_case verb (e.g. create_payment, verify_payment, send_otp)
Every capability folder must contain exactly these two files. Nothing else.
provider.json — required fields
One provider.json per provider directory. Carries provider-level metadata migrated from schema.json.
{
"slug": "paycard",
"name": "Paycard",
"category": "payment",
"country_code": ["GN"],
"description": "Paycard is a Guinean mobile money payment gateway that lets you accept payments via MTN, Orange, and Cellcom mobile wallets.",
"example_prompt": "Integrate Paycard to accept mobile money payments in Guinea. Create a payment, extract the operation_reference, and verify the transaction server-side before fulfilling the order."
}
| Field | Type | Rule |
|---|---|---|
| slug | string | Lowercase, no spaces, no dashes — matches the directory name |
| name | string | Display name of the provider |
| category | string | "payment", "communications", "identity", "logistics" or "language" — each category has a matching plugin/skills/{category}/SKILL.md |
| channels | string[] | Required when category is "communications", optional otherwise. Non-empty array, values among sms, whatsapp, ussd, voice, email. Lists the channels the provider's public docs document — not only the ones that already have a spec |
| country_code | string[] | ISO 3166-1 alpha-2 codes — non-empty array |
| description | string | One-sentence description of the provider for display and MCP context |
| example_prompt | string | Full-flow usage prompt for AI agents — describes a complete integration scenario |
Account — optional: who can open the account the API needs (merchant, business or developer account — not a consumer wallet), as the provider's own pages say it. An agent uses it to tell a user, before any code, whether the provider fits them — e.g. a seller without a registered business.
"account": {
"holder": "business_only", // business_only | business_or_individual, for all the provider's countries — omitted when the pages don't say
"country_exceptions": { "SN": "business_or_individual" }, // optional: countries whose answer differs from holder
"documents": ["RCCM"], // optional: documents the pages list, as a span quotes them
"sources": [ // required with holder, country_exceptions or documents
{ "source_url": "https://provider.example/faq", "spans": ["Pour ouvrir un compte marchand, fournissez votre RCCM."] },
{ "source_url": "https://provider.example/sn", "country_code": ["SN"], "spans": ["Au Sénégal, les particuliers peuvent ouvrir un compte."] }
],
"checked_at": "2026-11-03", // when the sources were read
"open_questions": [ // what the pages don't answer — required without holder or country_exceptions
"The Senegal page (https://provider.example/sn) does not say which documents an individual needs."
]
}
| Field | Rule |
|---|---|
holder | business_only — the pages require a registered business (company or business registration); business_or_individual — the pages state a person without a registered business can open one. Anything else is an open_questions entry, never a guess |
country_exceptions | A country_code of the provider → business_only or business_or_individual, for a country whose pages answer differently from holder — never the same value as holder. Each one has a source whose country_code lists it. Without holder, it is the only answer the pages give: when it covers fewer countries than the provider's country_code, open_questions is required and says what is unknown for the others |
documents | The documents for the account holder refers to, each one appearing in a span (validate checks it, ignoring case), in the provider's own wording. Tiers, caps and the KYC of a third party (an aggregator or PSP behind the provider) go in spans and open questions, not here |
sources | The provider's own pages (docs, FAQ, sign-up page, terms) — never a blog, an article or a third party. source_url and spans mean what they mean in evidence: every span is copied literally from the page, in its language. country_code, when present, lists countries of the provider's country_code. No snapshot_hash: these are marketing and help pages that change without notice — checked_at dates the reading instead. holder needs at least one source without country_code — a statement for all the provider's countries. A source that backs neither is allowed: it backs an open question (e.g. two pages that contradict each other) |
open_questions | Non-empty strings naming the pages checked. An agent must tell the user about them before recommending the provider |
For a user in a given country, an agent reads country_exceptions[country], else holder, else the open questions. Requirements that differ by step (sign-up vs. going live, a sender ID) go in the spans and open questions.
Videos — optional: tutorials that integrate the provider with afro.tools, listed on its afro.tools page. Not a fact about the API: the MCP never serves them.
"videos": [
{ "youtube_id": "G_9mxTRyALw", "title": "Djomy : CB, Mobile Money… une seule API pour tout (et l’IA écrit le code)", "author": "Halfinan Code", "author_url": "https://www.youtube.com/@halfinancode", "lang": "fr" }
]
| Field | Rule |
|---|---|
youtube_id | The 11-character id of a public YouTube video (watch?v=…), not its URL |
title | The video's title as on YouTube |
author, author_url | The channel's name and its https:// address |
lang | ISO 639-1 code of the language spoken in the video (fr, en) |
schema.json — required fields
{
"spec_version": "1.0",
"provider_api_version": "2024-01-01",
"capability": "create_payment",
"capability_type": "synchronous",
"status": "ready",
"currency": ["GNF"],
"sandbox": false,
"docs_url": "https://paycard.com/docs/create-payment",
"docs_public": false,
"auth": {
"type": "api_key",
"location": "body",
"field": "c",
"format": "{token}",
"env_var": "PAYCARD_API_KEY"
},
"endpoint": {
"method": "POST",
"url": "https://mapaycard.com/epay/create/"
},
"example_prompt": "Initiate a Paycard mobile money payment for a given amount in GNF, extract the operation_reference from the response, and store it immediately before redirecting the user.",
"input_schema": {},
"response_schema": {},
"error_schema": {},
"gotchas": [
"Always verify payment status server-side before fulfilling an order."
]
}
Field rules
| Field | Type | Rule |
|---|---|---|
| spec_version | string | "1.0", or "1.1" when the spec uses a block added in 1.1 (see § Blocks added in ATSS 1.1) |
| provider_api_version | string | YYYY-MM-DD if provider has no version string |
| capability | string | snake_case — matches the directory name |
| capability_type | enum | synchronous, asynchronous, webhook, or sdk |
| status | enum | unverified, draft, ready, verified, deprecated, archived |
| currency | string[] | ISO 4217 codes. Required when the provider's category is "payment" (and must match its country_code — see COUNTRY_CURRENCY_MAP in scripts/validate.js; a pre-redenomination code the provider still uses, such as SLL, is accepted via LEGACY_CURRENCY_CODES); optional otherwise — omit it for identity, communications, etc. |
| sandbox | boolean | true if provider has a sandbox environment |
| docs_url | string | Can be "" — provider has no public docs URL |
| docs_public | boolean | false if provider does not publish API docs publicly |
| auth | object | Auth descriptor — see auth variants below |
| endpoint | object | { method, url } |
| example_prompt | string | Required for ready/verified — describes this specific capability usage for AI agents |
| input_schema | object | JSON Schema describing the request body. Path, query and header parameters go in parameters (1.1) |
| response_schema | object | JSON Schema describing the success response |
| error_schema | object | JSON Schema describing the error response |
| gotchas | string[] | MANDATORY — minimum 1 entry, no exceptions |
Fields NOT in schema.json (migrated to provider.json): provider_slug, provider_name, category, country_code.
evidence — required only when status is "unverified"
"evidence": {
"source_url": "https://provider.com/docs/create-payment",
"source_reference": "Section 'Create a payment'",
"extracted_at": "2026-09-15T10:00:00Z",
"snapshot_hash": "a1b2c3…",
"spans": ["POST /v1/payments", "Authorization: Bearer {api_key}"]
}
Every entry in spans[] must appear literally (whitespace/case-normalized) in the source document at source_url. This is what lets a reviewer verify an unverified spec wasn't hallucinated without re-reading the provider's docs from scratch.
Blocks added in ATSS 1.1
Optional, checked against atss.schema.json by npm run validate. A spec that
uses one sets spec_version: "1.1"; a 1.0 spec stays valid as is.
"verification": { // required when status is "verified", forbidden otherwise
"method": "test_live", // test_live | app | community_report
"environment": "sandbox", // sandbox | production
"at": "2026-10-24", // date of the test
"ref": "https://…", // the run, the app, or the report issue — required for community_report
"spec_hash": "sha256:…" // what was tested: schema.json without this block + canonical_example.ts
},
"open_questions": [ // what the provider's docs do not answer — never filled with a guess
"Does the payment URL embed the public or the secret key?"
]
| Field | Rule |
|---|---|
verification.method | test_live — npm run test:live passed; app — a working integration (afrotools/examples or an app in use); community_report — an integration report a maintainer accepted |
verification.environment | Where it was tested. sandbox proves the request and response shapes, not production behaviour (prerequisites, limits, real money) |
verification.ref | URL of the run, the app's code or the report. For community_report, the afrotools/afrotools issue |
verification.spec_hash | validate recomputes it: a verified spec edited afterwards fails until it is verified again, or a maintainer who checked the change updates the hash (the error message prints the new value) |
open_questions | Non-empty strings. An agent must tell the user about them before relying on the spec. See § Gotchas — writing guide |
Auth that is more than one key — added to auth, next to the 1.0 fields (which stay):
"auth": {
"type": "bearer", "location": "header", "field": "Authorization", "format": "Bearer {access_token}", "env_var": "DJOMY_CLIENT_ID",
"credentials": [ // every secret the user must provide
{ "env_var": "DJOMY_CLIENT_ID", "description": "clientId (API key), provided in the Djomy merchant space" },
{ "env_var": "DJOMY_CLIENT_SECRET", "description": "clientSecret (secret key), provided in the Djomy merchant space" }
],
"signing": { // produces {signature}
"algorithm": "HMAC-SHA256", "key": "{DJOMY_CLIENT_SECRET}", "message": "{DJOMY_CLIENT_ID}", "encoding": "hex"
},
"token_exchange": { // produces {access_token}
"method": "POST", "path": "/v1/auth",
"headers": [{ "in": "header", "name": "X-API-KEY", "value": "{DJOMY_CLIENT_ID}:{signature}" }],
"token_field": "data.accessToken", // dotted path in the response body
"expires_in_s": 3600
},
"apply": [ // what every request of this capability sends
{ "in": "header", "name": "X-API-KEY", "value": "{DJOMY_CLIENT_ID}:{signature}" },
{ "in": "header", "name": "Authorization", "value": "Bearer {access_token}" }
]
}
Webhook signature — only on a capability_type: "webhook" spec:
"webhook": {
"signature": {
"header": "X-Webhook-Signature",
"format": "v1:{signature}", // how the header carries it
"algorithm": "HMAC-SHA256", "key": "{DJOMY_CLIENT_SECRET}", "message": "{raw_body}", "encoding": "hex"
}
}
Parameters outside the body — input_schema is the request body; what travels in the URL path,
the query string or a header goes in parameters:
"endpoint": { "method": "POST", "url": "https://api.example.com/v1/payouts/{batch_id}/items" },
"parameters": [ // illustrative provider
{ "name": "batch_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Payout batch id" },
{ "name": "dry_run", "in": "query", "schema": { "type": "boolean" } },
{ "name": "Idempotency-Key", "in": "header", "required": true, "schema": { "type": "string" } }
]
Success condition — when a 2xx response is not enough (e.g. HTTP 200 with {"code": 1} on a failed
payment), the response field that says the call succeeded:
"success_condition": { "field": "code", "equals": 0 } // or "in": ["SUCCESS", "PENDING"]
Environments — in provider.json, the base URL of each environment the provider documents:
"environments": { "sandbox": { "base_url": "https://sandbox-api.djomy.africa" } }
Deprecation and removal — see § Compatibility policy:
"deprecation": { // schema.json: required when status is "deprecated", forbidden otherwise
"reason": "The provider retires this endpoint on 2027-01-31 (changelog link).",
"replaced_by": "create_charge", // optional: a capability of the same provider
"removed_after": "2027-01-31" // optional: the registry removes the capability after this date
},
"removed_capabilities": [ // provider.json: one tombstone per removed capability
{ "capability": "create_bill", "removed_in": "2027-02-03", "reason": "The provider shut the endpoint down on 2027-01-31.", "alternatives": ["create_charge"] }
]
| Rule | |
|---|---|
| Placeholders | {ENV_VAR} is a declared credential; {signature} needs auth.signing (or is the webhook.signature result); {access_token} needs auth.token_exchange; {raw_body} is the request body exactly as received and {header:Name} the raw value of a request header — both in webhook.signature.message only, where an {ENV_VAR} may also be an identifier of yours that canonical_example.ts reads (e.g. {header:Response-Timestamp}{SMILEID_PARTNER_ID}sid_request); elsewhere {ENV_VAR} is a declared credential. validate rejects a placeholder that resolves to nothing |
auth.credentials | Each env var once; not on auth.type: "none"; includes the 1.0 auth.env_var. Once present, every process.env read of canonical_example.ts must be declared there (or be the webhook.signature.key secret, or an env var signed in webhook.signature.message): an undeclared one fails, instead of the 1.0 warning |
auth.apply | in: header, query, body, or path — a key that travels in the URL path, where name is the {placeholder} of endpoint.url it fills (e.g. Paycard's /epay/{c}/{ref}/status) |
auth.token_exchange | path (on the environment's base URL) or url (a token server on another host, e.g. https://idp.flutterwave.com/…/token) — exactly one. body (name/value pairs) with its content_type (application/x-www-form-urlencoded) for a form-encoded token request; headers are headers only (in: "header") |
webhook.signature.key | Exactly one {ENV_VAR} — the secret, never a literal. It declares that env var for the spec |
algorithm, encoding | HMAC-SHA256; hex or base64 — the only values specs use so far; others are added with the first spec that needs them |
parameters | in: path, query or header; name once per in (header names ignore case), never one auth.apply already sends; schema is a JSON Schema. A path parameter is required: true and fills a {placeholder} of endpoint.url; once parameters is present, every {placeholder} of the URL is filled by a path parameter or by auth.apply ({UPPER_SNAKE_CASE} stays an env var); a parameter is never also an input_schema property, and a GET/DELETE with parameters has no body. validate warns on a 1.1 spec whose URL has placeholders and no parameters. Not on a webhook: its URL is yours |
success_condition | field is a dotted path (data.status, through array items) that response_schema describes, when it describes anything; exactly one of equals (a string, number, boolean or null) or in (a list of them), of the field's type (0, not "0", for an integer code). Only what the provider's docs state — otherwise an open question. Not on a webhook |
| Idempotency | Convention, warned by validate: a POST of a payment provider that moves money (payment, checkout, payout, transfer, charge, refund, cash-in/out, OTP confirmation — not a status check or a recipient setup) says whether a retry is safe — its idempotency header in parameters (or field in input_schema), the behaviour in gotchas, or an open_questions entry when the docs say nothing. A retried payout without it can pay twice |
environments | sandbox and/or production, each with an https://host[:port] base_url (no path, query or fragment). The endpoint.url of every non-webhook spec of the provider must start with one of them. An environment the provider does not document is left out — never guessed — and its absence goes in the specs' open_questions (a convention, not checked) |
deprecation | reason says what the provider announced, with its date when it gave one. replaced_by names another capability folder of the same provider; removed_after is a date (YYYY-MM-DD) |
removed_capabilities | capability once per list, with no folder left in the provider directory; removed_in is the date of the removal; reason a non-empty string; alternatives (optional) capability folders of the same provider |
capability_type definitions
synchronous— request/response, result available immediately in the HTTP responseasynchronous— provider processes in background, poll a separate endpoint for resultwebhook— provider sends an HTTP POST to your endpoint when an event occurssdk— capability delivered through a client-side SDK script (no direct HTTP endpoint).endpoint.urlholds the CDN URL of the SDK script;endpoint.methodisnull. Thecanonical_example.tsexports a server-side configuration helper; the actual SDK invocation is shown in the usage comment block. Auth credential goes inauth.location: "sdk_param"(the SDK's config object).
canonical_example.ts — rules
Mandatory rules
- TypeScript strict — must compile with
tsc --noEmit, zero errors - Native fetch only — no axios, no node-fetch, no external HTTP libraries
- All credentials via
process.env— checked at the top, throw if missing - Explicit TypeScript interfaces for input, response, and error types
- Export the main function
- Include a usage example in a comment block at the bottom
- JSDoc header: provider, capability, ATSS version, capability_type
- The sender of a message (number, sender ID, sender name) comes from
process.env.{PROVIDER}_{CHANNEL}_SENDERin the usage example (e.g.INFOBIP_WHATSAPP_SENDER), declared inauth.credentials, never a literal: it changes between a test sender and the account's own
Template
/**
* @provider Paycard
* @capability create_payment
* @atss 1.0
* @capability_type synchronous
*/
const PAYCARD_API_KEY = process.env.PAYCARD_API_KEY;
if (!PAYCARD_API_KEY) throw new Error("Missing env: PAYCARD_API_KEY");
interface CreatePaymentInput {
amount: number;
currency: string;
reference: string;
callback_url: string;
}
interface CreatePaymentResponse {
id: string;
payment_url: string;
status: string;
}
interface PaycardError {
code: string;
message: string;
}
export async function createPayment(
input: CreatePaymentInput
): Promise<CreatePaymentResponse> {
const response = await fetch("https://mapaycard.com/epay/create/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ ...input, c: PAYCARD_API_KEY }),
});
if (!response.ok) {
const error: PaycardError = await response.json();
throw new Error(`Paycard error ${response.status}: ${error.message}`);
}
return response.json() as Promise<CreatePaymentResponse>;
}
/*
Usage example:
const payment = await createPayment({
amount: 100000,
currency: "GNF",
reference: "order_123",
callback_url: "https://myapp.com/callback",
});
// Store payment.operation_reference immediately
// Always verify payment status server-side before fulfilling the order
*/
What must never appear in canonical_example.ts
- Any npm import (
axios,node-fetch, etc.) — native fetch only require()— ES modules only- Hardcoded API keys or secrets
anytype without a comment explaining why
Status lifecycle
unverified → draft → ready → verified → deprecated → archived
unverified — criteria
-
schema.jsonpassesnpm run validate(structure + evidence block) -
evidenceblock present withsource_url,source_reference,extracted_at,snapshot_hash, and at least one groundedspans[]entry - Generated automatically by the discovery pipeline (
core/tools/discovery) — contributors do not hand-writeunverifiedspecs - Not yet human-reviewed for correctness beyond the automated gates — a maintainer reviewing the PR promotes it to
draft(needs more work) orready(looks correct) by editingstatusand removing or keepingevidenceas documentation
ready — criteria
-
schema.jsonpassesnpm run validate -
canonical_example.tscompiles withtsc --noEmit -
gotchas[]has at least 1 specific, actionable and sourced entry (§ Gotchas — writing guide) -
example_promptis non-empty -
provider.jsonexists in the parent provider directory -
statusfield set toready
A ready spec is visible in the MCP server.
verified — criteria
- All
readycriteria met - One of:
npm run test:live -- --provider <slug>passes (exit 0) —method: "test_live"; its--reportgives each capability'sspec_hash- A working integration:
afrotools/examples, or an app in use —method: "app" - An integration report a maintainer accepted (see
CONTRIBUTING.md§ Report an integration) —method: "community_report"
-
verificationblock records the method, the environment, the date andspec_hash - Maintainer has set status to
verified
verified says the spec matched the API once, in verification.environment. A spec verified in
sandbox has not been tried with production credentials. test:live only ever targets a sandbox —
it refuses to run against a provider with no sandbox (real production traffic, no automated safety
net); see CONTRIBUTING.md § Live verification.
AI Ready
AI Ready is a promise of the whole registry, not a per-provider badge: every published provider
has ATSS specs an agent can integrate from without parsing documentation pages. It does not mean
a spec is error-free — a spec can be wrong until it is tested, which is what status tells the
agent. Never describe AI Ready as "verified", "tested" or "production-ready".
Compatibility policy
Agents maintain integrations generated from these specs. A change that makes such an integration wrong without telling its agent is breaking:
- removing a capability: deleting its folder, or setting a served spec (
unverified,ready,verified,deprecated) back todraftor toarchived, which the MCP does not serve; - removing or renaming a field of
response_schema; - removing or renaming a field of
input_schemaorparameters, including a change of case or a move to another place in the body. One move is not a break: a top-levelinput_schemaproperty that becomes a parameter of the same name, or back (the ATSS 1.1 migration) — the agent reads the new location in the spec. Only header names ignore case.
Changing a field's type, making an optional input required or narrowing an enum breaks integrations too; the reviewer judges these. Adding a capability, an optional field, a gotcha or an open question, or fixing a description, is not breaking.
scripts/spec-diff.js compares a PR's specs to main and lists the removed capabilities and the
removed or renamed fields (a rename shows as a removal), and, for information, the request fields
that moved. CI fails when it finds a removal, unless the PR has the breaking label: a maintainer
sets it once the removal is intended, then re-runs the job.
When the provider deprecates a capability (announces its end, or a replacement):
- Set
statusto"deprecated"with adeprecationblock (spec_version: "1.1"):reason, andreplaced_by/removed_afterwhen known. The MCP keeps serving the spec, with a warning that namesreplaced_by. - Once the provider shut it down (or after
removed_after), delete the folder and add a tombstone toremoved_capabilitiesinprovider.json.get_specthen answers with an error carryingremoved_in,reasonandalternatives, instead of a plain "not found". This PR needs thebreakinglabel.
When the registry drops a capability the provider still offers (a rewrite, a spec that should
not have been written): delete the folder, with the breaking label, and no deprecated status
or tombstone — get_spec answers with the provider's remaining capabilities. Example: the 25
Flutterwave capabilities that afrotools/afrotools#94 removed.
Gotchas — writing guide
Good:
"Always verify payment status server-side before fulfilling an order.
The callback URL alone is not sufficient — it can be forged."
Bad:
"Read the docs carefully."
Gotchas must be specific, actionable and sourced: the provider's docs (quoted or pointed to), a test
that was run (test:live or a sandbox call, dated: "observed in the sandbox, live test 2026-10-24"), a
working integration, or an integration report a maintainer accepted. A consequence of sourced facts is
a valid gotcha when it names those facts ("the callback is unsigned, so it can be forged").
- A value quoted from the docs must belong to the field the entry is about. A search hit is a lead, not a source: check that it sits under that field (the parameter, the schema property, or an example of this endpoint) before quoting it, and say where it is.
- Write that the docs don't say something only after reading the whole endpoint (parameters, linked schemas, every response including errors, examples) and the shared pages it relies on (error codes, authentication, webhooks). A documented 400 "invalid format" means a format is enforced even when it is not given: write that the format is enforced but not documented, not that any value works.
- Another provider's spec is not a source. A gotcha or a choice reused from it needs its reason re-established from this provider's docs: for instance, whether a value can be trusted depends on where it comes from here (browser redirect, callback, signed webhook, the merchant's own records) and on which credential the call sends.
- Give the source in the PR description (URL and section; for private docs, the file and where in it). Put it in the entry itself only when the reader needs it to judge the entry ("observed in the sandbox, live test 2026-10-24", "the docs are not public").
An open question names what was checked (the endpoint, the pages) and is never answered with a guess. The account block keeps its own rule on sources (§ provider.json — required fields, Account).
Provider index
See the auto-generated table in README.md (in French: README.fr.md) — it is regenerated by CI
(scripts/generate-readme.js) on every merge to main and is never out of sync.
This file used to keep a second, hand-maintained copy of that table; it drifted
from reality within weeks and is not worth re-introducing here. For a page per
provider — capabilities, gotchas, account requirements — see
afro.tools/providers, built from this same registry.