{"uid":"cap_LfqTae4fJ1PNNPmYKN9mj","slug":"pqs-onchainintel-net-4711170a","name":"PQS Preflight – Prompt Quality & Endpoint Trust Check","description":"Pass/Fail before you waste budget on a doomed call. Decide whether to make a paid LLM call before you make it. Preflight scores your prompt against an 8-dimension quality rubric (pass/fail at 28/80) and optionally pulls the target endpoint's on-chain trust signals — total payments, unique payers, last activity. Two-in-one circuit breaker for agents that don't want to waste budget on weak prompts or sketchy endpoints. (rev 2)","url":"https://pqs.onchainintel.net/api/preflight","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":10000,"minLength":1,"description":"Prompt to preflight"},"vertical":{"enum":["software","content","business","education","science","crypto","general","research"],"type":"string","default":"general","description":"Domain: software/content/business/education/science/crypto/general/research"},"endpoint_url":{"type":"string","description":"Optional endpoint URL for trust scoring"}}},"responseSchema":null,"example":{"request":{"prompt":"Explain the key differences between machine learning and deep learning for a business audience","vertical":"education","endpoint_url":"https://api.example.com/ml-explainer"},"response":{"prompt":{"grade":"F","score":33,"out_of":80,"feedback":["Specify output format and length (e.g., 500-word executive summary, bullet-point comparison table, or slide deck outline)","Add constraints for the business audience such as avoiding technical jargon, including ROI/cost implications, or focusing on specific industries","Provide context about the audience's current knowledge level and intended use case (e.g., board presentation, internal training, decision-making about AI adoption)"],"top_issue":"Specify output format and length (e.g., 500-word executive summary, bullet-point comparison table, or slide deck outline)","dimensions":{"clarity":8,"context":5,"examples":2,"constraints":4,"specificity":6,"cot_structure":2,"output_format":3,"role_definition":3},"threshold_met":true},"endpoint":{"url":"https://api.example.com/ml-explainer","wallet":null,"trust_label":"Unresolved","trust_score":null,"activity_status":"UNKNOWN","resolution_source":"not_found","verified_on_chain":false},"clearance":"APPROVED","confidence":0.41,"pqs_version":"2.0","upgrade_url":"https://promptqualityscore.com"}},"exampleRequest":{"prompt":"Explain the key differences between machine learning and deep learning for a business audience","vertical":"education","endpoint_url":"https://api.example.com/ml-explainer"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M0S-171U5sHUez8bfSkt-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores a prompt against an 8-dimension quality rubric (pass/fail at 28/80) and optionally retrieves on-chain trust signals for a target endpoint URL before committing to a paid LLM call.","exampleAgentPrompt":"Before I send this prompt to that paid endpoint, run a preflight check on it — the prompt is 'Summarize the key risks in this financial report for a non-technical executive audience', the vertical is 'business', and the endpoint is https://api.someservice.com/summarize — tell me if it passes quality and whether that endpoint looks trustworthy on-chain.","exampleUseCases":null,"resultDescription":"Returns a pass/fail verdict based on a quality score out of 80 (threshold at 28), plus dimensional breakdown scores across 8 rubric dimensions. If an endpoint URL was provided, also returns on-chain trust signals: total payments received, number of unique payers, and timestamp of last activity.","failureModes":["Missing prompt field returns 400 validation error","Invalid vertical enum value may cause scoring to default to 'general' or return an error","Endpoint URL trust lookup may fail if the URL is not registered on-chain, returning null trust signals","Low-quality or very short prompts may always fail the 28/80 threshold regardless of vertical","Payment failure or x402 auth issue results in 402 response and no scoring performed"],"whenToPreferThis":"Use this endpoint as a gate before any paid LLM or API call in an agentic workflow when you want to avoid wasting budget on poorly-formed prompts or unverified endpoints. It is uniquely valuable when you need both prompt quality validation AND on-chain reputation checks in a single cheap ($0.05) call, rather than calling two separate services. Prefer this over pure prompt-scoring endpoints when the target endpoint's trustworthiness is also uncertain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:37:11.123Z","isFirstParty":false}