{"uid":"cap_bgTGNV8IhN7a9jmi0L6bD","slug":"brainiac-agent-contract-output-checker-989e6c50","name":"BRAINIAC Agent Contract Output Checker","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/agent-contracts/output-contract-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"openapi":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}},"workflows":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":160,"minLength":1},"steps":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":160,"minLength":1},"operation":{"type":"string","maxLength":160},"description":{"type":"string","maxLength":4000}},"additionalProperties":false},"maxItems":30},"states":{"type":"array","items":{"type":"string","maxLength":80,"minLength":1},"maxItems":40},"description":{"type":"string","maxLength":8000},"transitions":{"type":"array","items":{"type":"object","required":["from","to"],"properties":{"on":{"type":"string","maxLength":200},"to":{"type":"string","maxLength":80,"minLength":1},"from":{"type":"string","maxLength":80,"minLength":1},"operation":{"type":"string","maxLength":160}},"additionalProperties":false},"maxItems":80}},"additionalProperties":false},"maxItems":12},"operations":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":160,"minLength":1},"path":{"type":"string","maxLength":400},"steps":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":20},"method":{"type":"string","maxLength":16},"summary":{"type":"string","maxLength":1000},"examples":{"type":"array","items":{},"maxItems":8},"responses":{"type":"array","items":{"type":"object","properties":{"schema":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}},"status":{"type":"string","maxLength":40},"example":{},"examples":{"type":"array","items":{},"maxItems":8},"description":{"type":"string","maxLength":4000}},"additionalProperties":false},"maxItems":20},"parameters":{"type":"array","items":{"type":"object","required":["name"],"properties":{"in":{"enum":["query","header","path","cookie","body"],"type":"string"},"name":{"type":"string","maxLength":120,"minLength":1},"schema":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}},"required":{"type":"boolean"},"description":{"type":"string","maxLength":4000}},"additionalProperties":false},"maxItems":40},"description":{"type":"string","maxLength":8000},"outputSchema":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}},"requestSchema":{"type":"object","propertyNames":{"type":"string","maxLength":80},"additionalProperties":{}}},"additionalProperties":false},"maxItems":40}}},"responseSchema":{"type":"json","example":{"score":50,"issues":[{"type":"example_schema_mismatch","evidence":"note","location":"operations[0].examples[0]","severity":"medium","description":"The supplied example includes a field the schema says is not part of the output.","agent_impact":"An agent may depend on a field the contract does not promise.","suggested_fix":"Remove note from the example or declare it."},{"type":"example_schema_mismatch","evidence":"string expected","location":"operations[0].examples[0].id","severity":"high","description":"The supplied example JSON type does not match the supplied output schema. This is a conflict between the two documents, not a confirmed server defect.","agent_impact":"An agent that trusts the example will send or expect a value the schema rejects.","suggested_fix":"Change the example to type string or change the schema."},{"type":"example_schema_mismatch","evidence":"\"shipped\"","location":"operations[0].examples[0].status","severity":"high","description":"The supplied example is not one of the schema enum values.","agent_impact":"An agent can treat an undocumented status as valid and then take the wrong branch.","suggested_fix":"Use one of [\"draft\",\"submitted\"]."}],"success":true,"analysis":"Compared 2 success examples with their output schemas. 1 matched.","warnings":[],"limitations":["Checks read only the supplied operations, workflows, and OpenAPI document. No URL is fetched and no model reads the text.","A missing sentence is an undocumented contract. It is not a confirmed defect in a running implementation.","A contradiction is two statements in the supplied text. It is not proof of how a server behaves.","The HTTP method is not evidence that an operation is safe to retry or that it is idempotent.","Matches are fixed phrases and field names. They do not infer a business rule that the text does not state.","Comparison checks type, enum, required, additionalProperties false, array items, and nested objects. A local #/ pointer is followed inside the schema or the OpenAPI document.","A mismatch means the supplied example and the supplied schema disagree. It does not prove a live server returned that body.","The score is the percentage of examples with no mismatch. It is omitted when no pair was compared."],"recommendations":[]}},"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_GwCtuyIZXc3YGeGY-_DRr","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":"Validates that an API contract's output examples are consistent with its declared output schemas, flagging mismatches that could mislead AI agents","exampleAgentPrompt":"Can you check my API contract for inconsistencies — I have an OpenAPI spec and a few operations with examples, and I want to know if any of the response examples contradict the declared output schemas before I expose this API to agents?","exampleUseCases":[{"title":"Pre-launch agent API audit","prompt":"I'm about to publish a new API for AI agents to call. Here's my OpenAPI spec and a set of operations with response examples — can you run a contract check to see if any of the examples have fields that don't match the schemas, like wrong types or undeclared enum values?"},{"title":"Catching status enum drift in workflow","prompt":"My API has a workflow with status transitions and I think the examples are showing statuses like 'shipped' that aren't in the schema's enum list anymore. Can you validate the contract and tell me which examples conflict with the declared allowed values?"},{"title":"Agent reliability verification","prompt":"We're building a fleet of AI agents that consume our internal API. Before deploying, can you check whether the documented response examples are trustworthy — specifically flag any cases where an agent relying on an example field would be making assumptions the schema doesn't back up?"}],"resultDescription":"Returns a numeric compliance score (0–100), a boolean success flag, a plain-English analysis summary, an array of issues each with type, location, severity, description, agent_impact, and suggested_fix, plus warnings and a limitations list explaining what the checker can and cannot infer.","failureModes":["Malformed or missing OpenAPI object returns a validation error","Operations or workflows that exceed item/field limits (e.g. >12 workflows, >30 steps) may be rejected","Truncated or deeply nested schemas may cause partial analysis","Checks are purely static — no live server is called, so runtime behavior is not verified","Local $ref pointers may not be fully resolved","Only type, enum, required, additionalProperties, array items, and nested objects are compared — complex business rules are not inferred"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, pay-per-call static check that the examples and schemas in an agent-facing API contract are internally consistent, without sending any traffic to a live server. Prefer it over manual review or LLM-based auditing when you want structured, machine-readable issue reports with per-issue severity and agent-impact analysis, especially as part of a CI pipeline or pre-deployment gate for agent-consumed APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:16.635Z","isFirstParty":false,"canonicalSlug":"brainiac-agent-contract-output-checker-989e6c50"}