{"uid":"cap_xuasQchia5QcYdNilsraL","slug":"llm-response-constraint-check-a654436e","name":"LLM Response Constraint Check","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/llm_response_constraint_check/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":"llm_response_constraint_check","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":"llm_response_constraint_check","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"c1a3fd962f0272c9812f8acdf3acec2f76013164acc37401859c171b3b16fabf","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7P_AWM0C6JJkRi4GM3OhB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates that an LLM-generated response satisfies a set of caller-supplied constraints, returning warnings and analysis JSON.","exampleAgentPrompt":"Check whether this LLM response satisfies my constraints — here's the full request JSON with the response text and the rules it needs to follow: {request_json}.","exampleUseCases":[{"title":"AI content policy enforcement","prompt":"I just got a response from my language model and I need to make sure it doesn't violate any of my content constraints — can you run this request JSON through the LLM response constraint checker and tell me if there are any violations or warnings?"},{"title":"Structured output schema compliance check","prompt":"My AI agent produced a JSON answer and I need to verify it matches the required output schema and rules I've defined — please validate this request JSON against the constraint check service and show me the analysis."},{"title":"Guardrail audit before user delivery","prompt":"Before I send this AI-generated response to the user, I want to double-check it passes all my guardrails — can you run this request JSON through the constraint validation service and flag anything suspicious?"}],"resultDescription":"Returns a JSON object containing a status field (e.g. 'succeeded'), an analysis_json string with detailed constraint evaluation results, a list of warnings (e.g. caller-data caveats), an evidence_scope indicator, and a receipt object with payment and execution metadata including service version, network, payment ID, and result hash.","failureModes":["Malformed or non-JSON request_json input causes validation error","request_json exceeds 65536 character limit and is rejected","Constraint specification is ambiguous and produces inconclusive analysis","Payment not processed correctly via x402, resulting in 402 response","Service returns warnings about caller-supplied data reliability that agent must handle"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call validation pass on an LLM response against caller-defined constraints — especially in agentic pipelines where you want a cheap ($0.01 USDC) automated guardrail check before delivering AI output to users. Prefer it over building custom validation logic when you need a fast, stateless, cryptographically receipted check with on-chain payment provenance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T19:01:46.446Z","isFirstParty":false}