Score subgraph query depth
graphql-security_subgraph-complexityWalk object-type references in the supplied SDL, starting at Query when that type is present. Scalars are ignored and a repeated type is not walked again. The index is that depth. The risk score rises when the depth passes the supplied limit, and when introspection is enabled. No router is contacted. Price $0.04 USDC. POST /api/v1/graphql-security/subgraph-complexity. Unpaid calls return 402 and do not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sdl": "<sdl>",
"max_depth": "<max_depth>",
"introspection": "<introspection>"
},
"name": "graphql-security_subgraph-complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdl | Yes | ||
| max_depth | Yes | ||
| introspection | Yes |