graphql_get_example
Generate example GraphQL queries for a content type. Use these examples to construct valid queries.
Instructions
IMPORTANT: Use this tool AFTER using graphql_get_content_type_schema to see example GraphQL queries for a specific content type. Learning from these examples will help you construct valid queries. The space ID and CDA token are automatically retrieved from environment variables.
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": {
"contentType": "<contentType>"
},
"name": "graphql_get_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentType | Yes | The name of the content type for the example query | |
| includeRelations | No | Whether to include related content types in the example (defaults to false) | |
| spaceId | No | Optional override for the space ID (defaults to SPACE_ID environment variable) | |
| environmentId | No | Optional override for the environment ID (defaults to ENVIRONMENT_ID environment variable or 'master') |