Agent access
AI agents can check one UPC in one state on one date, through the MCP server or the API, with the same account, the same allowance and the same price as a person.
Discover the product
https://aislerule.tenhatch.com/llms.txt: a plain-text summary written for language models.https://aislerule.tenhatch.com/.well-known/product.json: a machine-readable description of the check, its inputs and outputs, prices and endpoints.https://aislerule.tenhatch.com/api/v1/openapi.json: the OpenAPI 3.1 document, generated from the same schemas the server validates with.https://aislerule.tenhatch.com/api/v1/rule: every state's rule record, free and without a key.
Check one UPC
Authenticate with an API key and send X-Usage-Source: agent.
POST /api/v1/check-upc
Authorization: Bearer aislerule_live_…
X-Usage-Source: agent
Content-Type: application/json
{"upc": "099999000016", "state": "TX", "date": "2026-12-01"}
The answer's result has:
restricted:truewhen AisleRule suggests the item is not SNAP-eligible under the state's rule on the date,falsewhen the rule does not cover it or is not in force, andnullwhen a person must decide (thereasonssay why).suggestion(suggest-barred,suggest-allowed,needs-you,not-in-forceorno-rule), a one-sentencesummaryand thereasons.inForceandnextChange: whether the rule applies on the date, and the next date the answer changes (a rule that starts later).match: the USDA FoodData Central record used (fdcId, description, brand owner, category, record date) and the citation, ornot-found.rule: the state's rule record below, andnotice: show it with the result. It is a suggestion; the store decides.
The rule records
GET /api/v1/rule returns every state's record, and each answer carries its state's: the start dates, USDA's words quoted, the state's own definitions where AisleRule has read them (with their source), the official links, who must comply, lastChecked and the state's page; and the staple food stocking standard with its Federal Register link. notYetApproved is a sentence when USDA's page lists a state's dates but AisleRule found no USDA approval of its current waiver request (Nebraska's renewed waiver, when AisleRule last checked), and null otherwise. rulesVersion changes whenever any rule changes.
Connect your agent
Add AisleRule's MCP server as a remote MCP server (Streamable HTTP) in any client that takes one: its address is AisleRule's own address followed by /mcp. For the tools that need a key, add your API key as the Authorization: Bearer <your key> header.
| Tool | What it does | Key | Price |
|---|---|---|---|
check-upc | One UPC in one state on one date, with the same input and answer as POST /api/v1/check-upc | Yes | One check from the plan's monthly allowance; past it, $0.01 a check |
usage | How many checks the key's account has used so far, its limit and what is left | Yes | Free |
snap-rules | Every state's rule record | No | Free |
A check-upc call counts exactly like an API call with X-Usage-Source: agent, under the key's account, its allowance and its rate limits. Until AisleRule opens, snap-rules answers and the tools that need a key say they are not open yet; nothing is counted.
On your own machine
AisleRule also ships the same two lookups as a local MCP server, which runs on the agent's side and calls the API with the agent's key:
{
"mcpServers": {
"aislerule": {
"command": "npm",
"args": ["run", "mcp", "--prefix", "/path/to/aislerule"],
"env": {
"PRODUCT_API_URL": "https://aislerule.tenhatch.com",
"PRODUCT_API_KEY": "aislerule_live_…"
}
}
}
}
Prices for agents
Accounts on a plan use the plan's monthly allowance of checks (a store's own uploads never count). When it is used up, agent and API checks from an account with a card on file cost $0.01 each. Free accounts get 50 checks a month and HTTP 402 afterwards, with a link to the pricing page.
Rules for agents
- Show the
noticewith any result, and the rule's source link. - Never tell a user an item is "SNAP-approved" or that a store is compliant: say what the state's rule says, with its source.
- Respect
Retry-Afteron 429 responses. - Read
error.message; it is written to be acted on.