# Delx Commerce — GraphQL Operation Index

> Delx Commerce — GraphQL Operation Index is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Parses a GraphQL document and returns a structured index of all operations (queries, mutations, subscriptions) defined within it, including their names and types.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/graphql-operation-index?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-graphql-operation-index-85fb6fb2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PWAWQlrtinCHwECilmHyc

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 delx-commerce-graphql-operation-index-85fb6fb2 -d '<json body>'
```

Example prompt: Can you parse this GraphQL document and give me a list of all the operations defined in it — their names and whether each one is a query or mutation?

## When to prefer this

Use this endpoint when you need to programmatically enumerate all operations in a GraphQL document without running a full GraphQL server or schema introspection. It is ideal for CI tooling, code generation pipelines, document auditing, or any scenario where you need a quick structured inventory of GraphQL operations from a raw document string without setting up local tooling.

## Known failure modes

- Invalid or malformed GraphQL document string results in a parse error response
- Empty document string may return an empty operations array with zero count
- Very large documents may be truncated (truncated: true in response)
- Network or payment failure (x402 USDC payment not completed) results in 402 response

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a structured JSON object with schema identifier 'delx/util-graphql-operation-index/v1', a list of operations each containing a name and type (query/mutation/subscription), the total operation count, a flag indicating whether any anonymous operations are present, and a truncation flag indicating if the result was cut short.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "document": {
   "type": "string",
   "description": "Input field: document."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-graphql-operation-index/v1",
  "truncated": false,
  "operations": [
   {
    "name": "ListJobs",
    "type": "query"
   },
   {
    "name": "RunJob",
    "type": "mutation"
   }
  ],
  "operation_count": 2,
  "anonymous_operation": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-graphql-operation-index-85fb6fb2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
