# Delx GraphQL Operation Index

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

Parses and indexes named GraphQL operations (queries, mutations, subscriptions) from a document string, returning a structured machine-readable JSON list of all operations found.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/graphql-operation-index
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-graphql-operation-index-840f2b57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_402HVwTnXuQVv_nlQCPyi

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-graphql-operation-index-840f2b57 -d '<json body>'
```

Example prompt: Can you index all the named operations in this GraphQL document for me? Here's the document: 'query GetUser { user { id name } } mutation CreatePost { createPost(title: "Hello") { id } }'

## When to prefer this

Choose this endpoint when you need a fast, stateless, deterministic inventory of all named GraphQL operations in a document before making authorization, policy, security, or integration decisions. It is ideal as a bounded preflight step in enterprise agent workflows where you need machine-readable operation metadata without executing any actual GraphQL calls or retaining input data. Prefer it over manual parsing or LLM-based extraction when you need reliable, structured JSON output at low cost ($0.003 USDC).

## Known failure modes

- Invalid or malformed GraphQL document string returns a parse error
- Empty document field returns an empty index or error
- Document containing only anonymous operations may return no named entries
- Network or payment authorization failure prevents call from completing
- Oversized document string may exceed processing limits

## How this service works

Index named GraphQL queries, mutations, and subscriptions. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and production…

## Output

Returns a deterministic machine-readable JSON object containing an indexed list of all named GraphQL operations found in the input document, including each operation's name and type (query, mutation, or subscription). The result is advisory and stateless — no data is retained after the call.

## 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-graphql-operation-index-840f2b57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
