{"uid":"cap_7CeGqpG6hq_taOF7p54KW","slug":"promptqualityscore-com-4a94b2c8","name":"PromptQualityScore Preflight Check","description":"A Quality Gate For Prompts. Before they break production. Score any AI prompt against 8 dimensions, see what&#x27;s weak, and get the fixed version in seconds.","url":"https://promptqualityscore.com/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":{"type":"json","example":{"prompt":{"grade":"C","score":46,"out_of":80,"feedback":["Specify the exact output format you want (bullets, JSON, prose).","Name the target reader or persona explicitly.","Add one concrete example of the ideal response."],"top_issue":"Specify the exact output format you want (bullets, JSON, prose).","dimensions":{"total":46,"clarity":7,"context":6,"examples":4,"constraints":5,"specificity":6,"cot_structure":6,"output_format":7,"role_definition":5},"threshold_met":true},"endpoint":{"wallet":"0xD2DfC5796de622E08C13f3016E92cfa15Ea33D0F","trust_label":"Established","trust_score":0.78,"resolution_source":"well_known"},"clearance":"CAUTION","confidence":0.68,"pqs_version":"2.0","upgrade_url":"https://promptqualityscore.com"}},"example":{"request":{"input":{"body":{"prompt":"Summarize the key financial risks in this 10-K filing and output structured JSON","vertical":"business","endpoint_url":"https://api.example.com/llm-endpoint"},"type":"http","method":"GET","bodyType":"json","pathParams":{}}},"response":{"prompt":{"grade":"F","score":31,"out_of":80,"feedback":["Specify the company name, fiscal year, and attach or paste the actual 10-K text so the model has content to analyze","Define the JSON schema explicitly (e.g., fields: risk_category, description, severity, likelihood) to ensure consistent structured output","Add role definition and constraints such as 'Act as a senior credit analyst, limit to top 10 risks, prioritize quantifiable financial risks over boilerplate disclosures'"],"top_issue":"Specify the company name, fiscal year, and attach or paste the actual 10-K text so the model has content to analyze","dimensions":{"clarity":7,"context":3,"examples":2,"constraints":4,"specificity":5,"cot_structure":2,"output_format":6,"role_definition":2},"threshold_met":true},"endpoint":{"url":"https://api.example.com/llm-endpoint","wallet":null,"trust_label":"Unresolved","trust_score":null,"activity_status":"UNKNOWN","resolution_source":"not_found","verified_on_chain":false},"clearance":"APPROVED","confidence":0.39,"pqs_version":"2.0","upgrade_url":"https://promptqualityscore.com"}},"exampleRequest":{"prompt":"Summarize the key financial risks in this 10-K filing and output structured JSON","vertical":"business","endpoint_url":"https://api.example.com/llm-endpoint"},"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_40UhASaNI_Cp1eLJ8Aj9b","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":"Runs a quick pass/fail pre-flight check on a prompt's quality and optionally validates an endpoint's on-chain trust signals before committing to a paid LLM call.","exampleAgentPrompt":"Before I send this to Claude, run a preflight quality check on my prompt — 'Summarize the key financial risks in this 10-K filing and output structured JSON' — and also pull the trust signals for the target endpoint so I know if it's worth the spend.","exampleUseCases":null,"resultDescription":"Returns a pass/fail verdict based on a quality threshold (pass at 28/80 by default), a composite score (0-100), a letter grade (A-F), sub-scores across multiple prompt quality frameworks (e.g. PEEM), and optionally the target endpoint's on-chain trust metrics including total payments received, number of unique payers, and last activity timestamp.","failureModes":["Prompt text missing or empty — returns 400 with validation error","Target endpoint URL malformed — trust signal lookup fails with 422","Payment not attached or insufficient — returns 402 Payment Required","Prompt exceeds length limits — truncation or rejection error","On-chain data unavailable for endpoint — trust signals section returns null or empty","Service timeout on LLM-backed sub-scoring — partial results or 503"],"whenToPreferThis":"Use this endpoint when running autonomous agents or pipelines that make paid LLM calls and need a cheap circuit breaker to avoid wasting budget on low-quality prompts or untrustworthy endpoints. Ideal before any call to a metered LLM API where prompt quality directly affects output value. Preferred over full scoring endpoints when speed and cost matter and a simple pass/fail verdict is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:40:26.636Z","isFirstParty":false}