Skip to main content
Glama

Create resource

drupal_create_resource
Destructive

Create a new resource (content entity) for an entity_type/bundle. JSON:API: POST /jsonapi/{entity_type}/{bundle} → 201. Body is { data: { type: entity_type--bundle, attributes, relationships? } }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bundleYesThe bundle machine name, e.g. "article", "tags", "user".
attributesYesField values, e.g. { "title": "Hello", "body": { "value": "…", "format": "plain_text" } }.
entity_typeYesThe entity type machine name, e.g. "node", "taxonomy_term", "user".
relationshipsNoOptional relationships, e.g. { "field_tags": { "data": [{ "type": "taxonomy_term--tags", "id": "<uuid>" }] } }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With only destructiveHint=true provided, the description goes beyond annotations by disclosing the endpoint, the HTTP method, the success status (201), and the exact request body contract including the composite type format. It stops short of auth/permission needs or error behavior, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then two dense clauses covering endpoint and payload with zero filler. Slightly telegraphic (arrow notation, shorthand) but nothing wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by naming the 201 status; the nested payload shape is explained. It is complete enough to invoke correctly, though failure modes and auth requirements are absent for a mutating tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real value by showing how the parameters combine inside the payload ({ data: { type: entity_type--bundle, attributes, relationships? } }), clarifying that entity_type+bundle form the type string and that relationships is optional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Create) and resource (content entity) scoped by entity_type/bundle, and the JSON:API mapping (POST /jsonapi/{entity_type}/{bundle}) makes the operation unambiguous. An agent can immediately separate it from the get/list/update/delete siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the CRUD verb and the 'new resource' framing, but there is no explicit when-to-use vs drupal_update_resource, no note on prerequisites (auth, existing bundle), and no exclusions. Adequate context, but inference is required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.