graphql_generate_schema
Generate GraphQL type definitions and schema from data models. Provide model names and relationships to create complete types, including mutation inputs.
Instructions
Generate GraphQL type definitions and schema from data models
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": {
"models": "<models>"
},
"name": "graphql_generate_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | List of model names to generate types for (e.g. 'User', 'Post') | |
| api_key | No | API key for authentication | |
| relationships | No | Relationships between models (e.g. 'User hasMany Post') | |
| include_inputs | No | Whether to generate input types for mutations |