{"name":"regex-pack","description":"Generates a regex from a natural-language prompt and live-tests it in one call. Composite: one call runs regex-from-prompt first, then feeds the generated pattern into regex-test over your test_strings (optional stage, runs only when test_strings are provided). Returns the JavaScript pattern + flags + explanation + examples, plus per-input matched/not-matched verdicts with capture groups so you know the pattern actually matches what you asked for. Prompt capped at 2,000 chars; up to 100 test strings of 5,000 chars each. Includes composed_of + per-component telemetry. Use it as an NL pattern builder with verification, generate-and-verify regex workflow, or regex playground bundle.","price":"$0.03","method":"POST","input_schema":{"properties":{"prompt":{"type":"string","description":"Natural-language description of what to match. Max 2,000 chars."},"test_strings":{"type":"array","description":"Optional 1-100 test strings (max 5,000 chars each) to run the generated pattern against."}},"required":["prompt"]},"input_example":{"prompt":"match a US phone number with optional country code","test_strings":["call 555-123-4567","no numbers here"]},"output_example":{"prompt":"match a US phone number with optional country code","regex":{"pattern":"(\\+?1\\s?)?\\(?\\d{3}\\)?[\\s-]?\\d{3}[\\s-]?\\d{4}","flags":"g"},"test_results":{"matched_count":1,"results":[{"input":"call 555-123-4567","matched":true}]},"composed_of":["regex-from-prompt","regex-test"],"components":[{"name":"regex-from-prompt","ok":true,"ms":1900},{"name":"regex-test","ok":true,"ms":3}],"degraded":false},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}