Jsonapi Include Optimize
jsonapi_include_optimizeOptimize JSON:API include paths for a Drupal entity type from requested relationship includes to reduce payload size and improve query efficiency.
Instructions
Get optimized include paths for entity type.
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": {
"entity_type": "<entity_type>",
"includes": "<includes>"
},
"name": "jsonapi_include_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includes | Yes | ||
| entity_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||