Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Validate GraphQL Schema

schema.validate_graphql_schema

ProductionEngine wrapper (Class A)Deterministicstrictmoderatev1.0.0
No network

Overview

You send GraphQL Schema Definition Language as schema text or as named virtual .graphqls files. Squillify parses it with graphql-java under explicit character, token and rule-depth limits, then builds an unexecutable type system so duplicate types and unknown references become diagnostics. This does not run queries, attach resolvers or fetch imports from the network. A successful call costs 2 execution credits.

Agents need an offline GraphQL SDL lint that cannot execute queries or fetch imports.

Reliability

GRAPHQL_SCHEMA_LIMIT_EXCEEDED — trigger: more than 2 MiB, 100 files, 50000 tokens, depth 500 or 500 diagnostics; retryable: no; next: split the schema.

Context footprint

SDL is schema text only. A successful call costs 2 execution credits.

When to use it

When the caller already holds GraphQL SDL text or a bounded set of virtual .graphqls files.

When a live GraphQL endpoint, federation composition or resolver wiring must be checked.

Powered by graphql-java SchemaParser under Squillify ParserOptions. No query execution.

Scope

Note
Parses GraphQL SDL and reports type-system problems without executing the schema.

Non-goals

  • Does not execute queries
  • Does not attach resolvers or data fetchers
  • Does not fetch remote imports or federation supergraphs

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

parsingvalidation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call2 credits

File handling

Accepts file_refProduces file_refMax input2.1 MB

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
schemastringNoGraphQL SDL, 1 through 2097153 characters; runtime accepts at most 2097152. Omit it when sending files.
filesarrayNoNamed virtual .graphqls files, 0 through 101 closed {path, source} objects; runtime accepts at most 100. Omit it when sending schema.
allowDescriptionsbooleanNoWhether GraphQL descriptions are kept during parse; omit it for true.
maxDiagnosticsintegerNoHow many diagnostics to return, 1 through 501; runtime accepts at most 500. Omit it for 500.

Output schema

FieldTypeRequiredDescription
validbooleanYesTrue when the SDL parsed and the type system contained no ERROR diagnostics.
typeCountintegerYesHow many named types the parser registered.
directiveCountintegerYesHow many directive definitions the parser registered.
diagnosticsarrayYesDeterministically ordered closed {code, severity, message, path} diagnostics, 0 through 500 entries.
truncatedbooleanYesTrue when more diagnostics existed than maxDiagnostics allowed to list.
enginestringYesPinned graphql-java Maven coordinate used for parse and type-system construction.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"schema.validate_graphql_schema","input":{"schema":"type Query { ping: String }"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("schema.validate_graphql_schema", {"schema":"type Query { ping: String }"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
GRAPHQL_SCHEMA_LIMIT_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not execute queries
  • Does not attach resolvers or data fetchers
  • Does not fetch remote imports or federation supergraphs
  • Running GraphQL operations
  • Validating federation composition

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "schema.validate_graphql_schema",
  "input": {
    "schema": "type Query { ping: String }"
  }
}

Examples

A Query type with a String field is valid

Inputjson
{
  "schema": "type Query { ping: String }"
}
Expected outputjson
{
  "directiveCount": 0,
  "typeCount": 1,
  "truncated": false,
  "valid": true,
  "engine": "com.graphql-java:graphql-java",
  "diagnostics": []
}
Tip
A minimal Query SDL parses and produces valid true.

A field that names an undefined type is invalid

Inputjson
{
  "schema": "type Query { ping: UnknownType }"
}
Expected outputjson
{
  "directiveCount": 0,
  "typeCount": 1,
  "truncated": false,
  "valid": false,
  "engine": "com.graphql-java:graphql-java",
  "diagnostics": [
    {
      "code": "GRAPHQL_SCHEMA",
      "severity": "ERROR",
      "message": "The field type 'UnknownType' is not present when resolving type 'Query' [@1:1]",
      "path": "/schema"
    }
  ]
}
Tip
Unknown type references become ERROR diagnostics and valid false.
  • Lint a GraphQL schema before publishing it
  • Catch unknown types and duplicate definitions in modular SDL

Avoid for

  • Running GraphQL operations
  • Validating federation composition

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

schemagraphqlvalidation