Skip to main content

Droost: Entities & Fields

droost_entities Read-only

Module: Droost core

The content model: entity types, bundles, and per-bundle field definitions (types, cardinality, requiredness, settings). The first call before creating content or composing displays.

Example call
{
    "tool": "droost_entities",
    "arguments": {
        "entity_type_id": "node"
    }
}
Example response — captured live on this site
{
    "success": true,
    "message": "node: 3 bundle(s), 26 base field(s).",
    "data": {
        "entity_type": {
            "id": "node",
            "label": "node",
            "group": "content",
            "provider": "node",
            "fieldable": true
        },
        "bundles": [
            {
                "id": "event",
                "label": "Event"
            },
            {
                "id": "page",
                "label": "Utility page"
            },
            {
                "id": "tool",
                "label": "MCP tool"
            }
        ],
        "base_fields": [
            {
                "name": "nid",
                "type": "integer",
                "label": "nid",
                "required": false,
                "translatable": false,
                "cardinality": 1,
                "target_type": null
            },
            {
                "name": "uuid",
                "type": "uuid",
                "label": "uuid",
                "required": false,
                "translatable": false,
                "cardinality": 1,
                "target_type": null
            },
            {
                "name": "vid",
                "type": "integer",
                "label": "vid",
                "required": false,
                "translatable": false,
                "cardinality": 1,
                "ta
… (truncated — run it yourself for the rest)

Introspects Drupal entity types, their bundles, and field definitions. No arguments: list all entity types. With entity_type_id: that type plus its bundles and base fields. With entity_type_id and bundle: the full field definitions for that bundle. Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "entity_type_id": {
            "type": "string",
            "description": "Entity type machine name, e.g. \"node\", \"taxonomy_term\", \"user\"."
        },
        "bundle": {
            "type": "string",
            "description": "Bundle machine name, e.g. \"article\". Requires entity_type_id."
        }
    }
}