acceptance_criteria_grader $0.001 per call
Deterministically grades a candidate text against a checklist of acceptance criteria. Each criterion specifies either a plain substring ('contains') or a regular expression ('pattern', JS regex, case-insensitive) to search for in the text, and whether it is required. Returns per-criterion pass/fail plus an overall score. Pure offline pattern matching, no LLM and no network calls.
For AI agents: call acceptance_criteria_grader
POST https://toll402.dev/v1/t/acceptance_criteria_grader
{
"text": "The system shall allow users to perform password reset via email and must log all login attempts for security audits.",
"criteria": [
{
"id": "c1",
"description": "mentions password reset",
"contains": "password reset"
},
{
"id": "c2",
"description": "mentions logging login attempts",
"pattern": "log.*attempts"
},
{
"id": "c3",
"description": "mentions two-factor auth",
"contains": "two-factor",
"required": false
}
]
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Candidate output text to grade"
},
"criteria": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for this criterion"
},
"description": {
"type": "string",
"description": "Human-readable description of the criterion"
},
"contains": {
"type": "string",
"description": "Plain substring to search for, case-insensitive"
},
"pattern": {
"type": "string",
"description": "JS regular expression (case-insensitive) to test against the text; used instead of contains if provided"
},
"required": {
"type": "boolean",
"default": true,
"description": "Whether this criterion must pass for overall acceptance"
}
},
"required": [
"id"
]
}
}
},
"required": [
"text",
"criteria"
]
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}