{"uid":"cap_gy3R0pqMKuAXMUOXsNfos","slug":"brainiac-graphql-field-authorization-coverage-analyzer-d02b5a0b","name":"BRAINIAC GraphQL Field Authorization Coverage Analyzer","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/graphql-security/field-authorization-coverage?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"subgraphs":{"type":"array","items":{"type":"object","required":["name","sdl"],"properties":{"sdl":{"type":"string","maxLength":50000,"minLength":1},"name":{"type":"string","maxLength":80,"minLength":1}},"additionalProperties":false},"maxItems":10,"minItems":1},"protected_directives":{"type":"array","items":{"type":"string","pattern":"^@[A-Za-z][A-Za-z0-9]*$"},"maxItems":10,"minItems":1}}},"responseSchema":{"type":"json","example":{"authorization_coverage_score":60,"unprotected_fields_percentage":40}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NAo6dNH-6BRJMkJqMYKnV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes GraphQL subgraph SDL schemas to calculate what percentage of fields are protected by authorization directives, returning a coverage score and unprotected field percentage.","exampleAgentPrompt":"Audit my GraphQL subgraph called 'products' for field authorization coverage — here's the SDL: [sdl text] — and check for the @auth and @requiresPermission directives. Tell me the coverage score and what percentage of fields are unprotected.","exampleUseCases":[{"title":"Pre-launch GraphQL security audit","prompt":"Before we ship, can you check our 'checkout' and 'inventory' GraphQL subgraphs for authorization coverage? Here are both SDLs — scan for @auth and @requiresRole directives and tell me what percentage of fields are unprotected."},{"title":"Compliance review for GraphQL API","prompt":"I need a compliance report on our 'user-data' GraphQL subgraph. Run an authorization coverage check using @authorized and @hasPermission directives and give me the coverage score so I can include it in our audit documentation."},{"title":"Identifying unprotected fields in a federated schema","prompt":"Can you analyze our 'orders' subgraph SDL for missing field-level authorization? Use @auth as the protected directive and let me know the coverage score and what fraction of fields are exposed without protection."}],"resultDescription":"Returns a JSON object with an authorization_coverage_score (integer, e.g. 60 meaning 60% of fields are protected) and unprotected_fields_percentage (integer, e.g. 40 meaning 40% of fields lack any authorization directive).","failureModes":["Invalid or unparseable SDL returns a schema validation error","Missing required 'name' or 'sdl' field in a subgraph object returns a 400 error","SDL exceeding 50,000 characters per subgraph is rejected","Directive patterns not matching ^@[A-Za-z][A-Za-z0-9]* format are rejected","Submitting more than 10 subgraphs or more than 10 directives returns a validation error","Insufficient USDC balance or failed x402 payment returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-account security audit of GraphQL SDL schemas for field-level authorization coverage. Ideal for CI/CD pipelines, compliance checks, or pre-deployment security reviews where you want a numeric coverage score without setting up a full schema management platform. Prefer this over manual SDL review or heavyweight schema registry tools when you need a lightweight, programmatic score.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:44:09.041Z","isFirstParty":false,"canonicalSlug":"brainiac-graphql-field-authorization-coverage-analyzer-d02b5a0b"}