# BRAINIAC SOAP Contracts Schema Dependency Tree Analyzer

> BRAINIAC SOAP Contracts Schema Dependency Tree Analyzer is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-13).

Analyzes a set of SOAP/XSD schema documents to produce a dependency tree, complexity score, and circular dependency detection

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/soap-contracts/schema-dependency-tree?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-soap-contracts-schema-dependency-tree-analyzer-eaadbf26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j6__CipEBY4UPE76yy1Rq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-soap-contracts-schema-dependency-tree-analyzer-eaadbf26 -d '<json body>'
```

Example prompt: Can you analyze these two XSD schema files and tell me how they depend on each other — specifically which types are imported where, whether there are any circular dependencies, and how complex the overall schema structure is?

## When to prefer this

Use this endpoint when you need to programmatically analyze the structure of SOAP/XSD schema files — especially to detect circular dependencies, understand import chains, or score schema complexity — without needing to set up a local XML toolchain. Ideal for agents auditing legacy SOAP services, performing pre-deployment checks, or generating documentation about schema relationships. Prefer this over generic XML parsers when you specifically need dependency graph output with complexity scoring in a single pay-per-call API call.

## Known failure modes

- Malformed or invalid XML/XSD content causes parsing failure
- Document references in imports that are not included in the submitted set may produce incomplete trees
- Exceeding 10 documents or 100,000 characters per document triggers input validation errors
- Very deeply nested or highly interconnected schemas may produce high complexity scores that are hard to interpret without context
- Missing required 'name' or 'content' fields in any document object returns a validation error

## How this service works

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.

## Output

Returns a JSON object containing a dependency_tree_json array (each entry listing the document name, types it defines, files it imports, and types it references), a schema_complexity_score integer, and a circular_dependency_detected boolean flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "documents": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "content"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "content": {
      "type": "string",
      "maxLength": 100000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dependency_tree_json": [
   {
    "types": [
     "Account"
    ],
    "imports": [
     "other.xsd"
    ],
    "document": "types.xsd",
    "references": [
     "Account"
    ]
   },
   {
    "types": [
     "Note"
    ],
    "imports": [
     "types.xsd"
    ],
    "document": "other.xsd",
    "references": []
   }
  ],
  "schema_complexity_score": 55,
  "circular_dependency_detected": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-soap-contracts-schema-dependency-tree-analyzer-eaadbf26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
