{"uid":"cap_8XAy7C12INbI0-e3RNOnV","slug":"agent-constraint-extractor-069077ca","name":"Agent Constraint Extractor","description":"Extract hard constraints, soft preferences, exclusions, budgets and deadlines from a human request","url":"https://agent-product-normalizer.vercel.app/api/v1/extract-constraints","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":20000,"description":"Human request containing hard/soft constraints"}},"additionalProperties":true}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sokiXM0E2HEofdZer2eb-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a free-text human request to extract hard constraints, soft preferences, exclusions, budgets, and deadlines into structured form","exampleAgentPrompt":"Pull the hard constraints, soft preferences, exclusions, budget, and deadlines out of this user message: 'I need a non-stop flight to Tokyo under $800, ideally with a window seat, no layovers in Seoul, and I must leave by March 15.'","exampleUseCases":[{"title":"Travel booking constraint parsing","prompt":"Before you search for flights, extract all the constraints from what the user said: 'I want to fly to Paris next Friday, budget is max $600 round trip, no red-eye flights, and I prefer Air France but not mandatory.'"},{"title":"E-commerce product filtering","prompt":"Parse this shopping request into structured constraints so I can filter products properly: 'Find me a laptop under $1200, must have at least 16GB RAM, no refurbished units, and I need it delivered before December 20.'"},{"title":"Freelance task requirements extraction","prompt":"Extract the hard requirements, preferences, and exclusions from this client brief before I assign it to a contractor: 'We need a logo designer, budget up to $500, must have 5+ years experience, no agencies, prefer someone who has worked with SaaS brands, and the first draft must be ready within 2 weeks.'"}],"resultDescription":"A structured breakdown of the input text containing categorized hard constraints (non-negotiable requirements), soft preferences (nice-to-haves), explicit exclusions (things to avoid), budget limits, and deadline signals — ready for an agent to use when filtering options or routing tasks","failureModes":["Input text is too vague or empty — no constraints can be identified, returns empty or null fields","Text exceeds 20,000 character limit — request rejected with validation error","Ambiguous phrasing where it is unclear if a constraint is hard or soft — may misclassify preference type","No budget or deadline present in text — those fields return null or empty","Service unavailability returns a non-200 HTTP error"],"whenToPreferThis":"Use this endpoint when an agent needs to pre-process a raw human request before taking action — especially before searching, filtering, or routing — to ensure it respects the user's mandatory requirements, avoids exclusions, and stays within stated budgets and deadlines. Prefer this over general-purpose text parsing when the downstream task requires distinguishing hard vs soft constraints explicitly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T06:48:35.379Z","isFirstParty":false}