{"uid":"cap_n5rN4HxPNg_57IA_cUkw-","slug":"pqs-prompt-quality-score-382a288c","name":"PQS: Prompt Quality Score","description":"Scores prompts across 8 dimensions and returns a grade with top fixes.","url":"https://api.relai.fi/relay/1779373065272/api/score","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":10000,"minLength":1,"description":"Prompt to score"},"vertical":{"enum":["software","content","business","education","science","crypto","general","research"],"type":"string","default":"general","description":"Domain: software/content/business/education/science/crypto/general/research"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OiPH8M-wM4B7tPfmPnYkG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores a prompt across 8 quality dimensions, returning a letter grade and the top suggested fixes","exampleAgentPrompt":"Score the quality of this prompt for me across all 8 dimensions and give me the grade plus top fixes, using the 'software' vertical: 'You are a senior Python developer. Refactor the following function to be more efficient and add proper error handling.'","exampleUseCases":null,"resultDescription":"Returns an overall quality score, a letter grade, scores across 8 evaluation dimensions (e.g. clarity, specificity, context), and a list of top recommended fixes to improve the prompt.","failureModes":["Empty or missing prompt parameter returns validation error","Prompt exceeds 10,000 character limit returns error","Invalid vertical enum value returns validation error","Payment not included or insufficient triggers 402 Payment Required","Service unavailable returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need structured, multi-dimensional feedback on a prompt's quality — especially when you want a letter grade and actionable fix suggestions broken down by domain vertical (software, content, research, etc.) rather than just a generic score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T12:40:49.017Z","isFirstParty":false}