{"uid":"cap_OL21fVFJIrVeP6H9CuxaC","slug":"signalharness-prompt-constraint-extractor-6cbf438b","name":"SignalHarness Prompt Constraint Extractor","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/prompt_constraint_extract/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"request_json":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Verify the caller-supplied data before relying on this result."],"service_id":"prompt_constraint_extract","analysis_json":"{\"example\":\"schema-valid caller-supplied data\"}","evidence_scope":"caller_supplied_data"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"prompt_constraint_extract","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"f56f77e5b4e635042bb9ee477a5cf101c07f952596c459c9d9e5f6d957155fe5","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_335kJusW77xYUD_ho_7SO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts constraints and requirements from a prompt or request JSON, returning structured analysis of what the prompt demands or restricts.","exampleAgentPrompt":"Extract the constraints and requirements from this prompt JSON for me: '{\"system\":\"You are a helpful assistant. Never discuss politics, always respond in French, and limit answers to 50 words.\"}'","exampleUseCases":[{"title":"Audit agent system prompt rules","prompt":"I need to understand what constraints are baked into this system prompt — can you extract all the rules and restrictions from it? Here's the prompt JSON: '{\"system\":\"Be concise, avoid code examples, never mention competitors, and always cite sources.\"}'"},{"title":"Validate LLM instruction coverage","prompt":"Pull out all the explicit requirements and restrictions from this instruction blob so I can check nothing important was missed: '{\"instruction\":\"Respond only in bullet points, use formal language, do not exceed 200 tokens, and never ask follow-up questions.\"}'"},{"title":"Decompose complex user request constraints","prompt":"I have a user request and I need to see every constraint they've embedded in it before I route it — extract them all from this JSON: '{\"user_request\":\"Write a 3-paragraph blog post about climate change, aimed at teenagers, without using jargon, in an optimistic tone.\"}'"}],"resultDescription":"Returns a JSON object containing an analysis_json field with the extracted constraints and requirements, a warnings array noting any caveats about caller-supplied data reliability, a service_id, evidence_scope indicator, and a full payment receipt including network, asset, amounts, and execution metadata.","failureModes":["Malformed or non-JSON request_json string returns a parse error","Input string below minimum length (2 chars) or above maximum (65536 chars) triggers schema validation failure","Ambiguous or underspecified prompts may yield incomplete constraint extraction with warnings","Payment failure on Base network prevents execution","Service may return warnings when it cannot fully verify the reliability of caller-supplied data"],"whenToPreferThis":"Choose this endpoint when you need to programmatically identify, enumerate, or structure the constraints, rules, and requirements embedded in a prompt or instruction string — especially in agent pipelines where downstream routing or validation depends on knowing what a prompt permits or forbids. It is particularly useful for prompt auditing, instruction validation, and preprocessing steps before LLM calls. Prefer it over general-purpose LLM calls when you want a structured, receipt-backed, pay-per-call result with cryptographic provenance on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:52:12.295Z","isFirstParty":false}