{"uid":"cap_TLXe5XWll3Ee6ZpGo7CV0","slug":"brainiac-graphql-subgraph-complexity-analyzer-1c16491b","name":"BRAINIAC GraphQL Subgraph Complexity 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/subgraph-complexity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sdl":{"type":"string","maxLength":50000,"minLength":1},"max_depth":{"type":"integer","maximum":20,"minimum":1},"introspection":{"enum":["enabled","disabled"],"type":"string"}}},"responseSchema":{"type":"json","example":{"exposure_risk_score":85,"max_query_complexity_index":2}},"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_R0lIR5QTMfehvZ4JZX0Fg","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 a GraphQL SDL schema to compute subgraph complexity, exposure risk score, and introspection settings for security assessment.","exampleAgentPrompt":"Analyze this GraphQL SDL schema for security risks — set max depth to 10 and introspection to enabled — and tell me the exposure risk score and query complexity index: `type Query { user(id: ID!): User } type User { id: ID! posts: [Post] } type Post { id: ID! comments: [Comment] } type Comment { id: ID! body: String }`","exampleUseCases":[{"title":"Audit GraphQL API before launch","prompt":"Before we go live, can you analyze this GraphQL SDL for security risks with max depth set to 8 and introspection disabled? I want to know the exposure risk score and worst-case query complexity index."},{"title":"Detect complexity attack surface in federation","prompt":"We're running a federated GraphQL setup — can you check this subgraph SDL with max depth 15 and introspection enabled to see how exposed we are to query complexity attacks?"},{"title":"Compliance check on third-party GraphQL schema","prompt":"I've got a GraphQL schema from a vendor and need to know if it's safe to integrate — run a security analysis with max depth 5 and introspection disabled and give me the risk score."}],"resultDescription":"Returns a JSON object with an exposure_risk_score (integer 0–100 indicating how risky the schema is) and a max_query_complexity_index (integer representing the highest possible query complexity based on the schema structure and depth limits).","failureModes":["Invalid or unparseable SDL returns a 400 error","SDL exceeding 50,000 characters is rejected","max_depth outside the 1–20 range causes a validation error","Missing required sdl field returns a 400 bad request","Payment failure via x402 results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call security audit of a GraphQL schema without setting up an account — especially useful for CI/CD pipelines, compliance checks, or one-off third-party schema reviews. Prefer it over full API security platforms when you only need complexity and exposure scoring rather than runtime monitoring or traffic analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:45:59.749Z","isFirstParty":false,"canonicalSlug":"brainiac-graphql-subgraph-complexity-analyzer-1c16491b"}