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

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. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, so the write nature is covered. The description adds the wire-level behavior (POST endpoint, 201 response, request body shape), which is genuinely useful, but omits practical behavioral facts: authentication/CSRF requirements, permission implications, and side effects such as field validation or auto-generated UUIDs/aliases. No contradiction with destructiveHint=true.

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

Conciseness5/5

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

Extremely compact and front-loaded: the core action leads, followed by endpoint and body contract. Every clause carries information and nothing is padded or repeated from the schema.

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

Completeness5/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 stating the success status (201). Combined with the full 100%-covered input schema including nested-object examples for attributes and relationships, an agent has enough to invoke the tool correctly.

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 description coverage is 100%, so the baseline is 3, but the description goes further by mapping the parameters onto the JSON:API payload structure: 'type: entity_type--bundle, attributes, relationships?'. This clarifies how entity_type/bundle are recombined and where attributes/relationships sit, which is real added meaning beyond the schema.

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

Purpose4/5

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

States a specific verb+resource ('Create a new resource (content entity)') and scopes it to an entity_type/bundle, plus gives the exact JSON:API endpoint ('POST /jsonapi/{entity_type}/{bundle} → 201'). The create semantics implicitly separate it from get/list/update/delete siblings, but no sibling is named for explicit differentiation.

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 only implied by the verb 'create' and the POST endpoint mapping. There is no guidance on when to prefer this over drupal_update_resource, no prerequisite/auth context, and no exclusions. An agent can infer the intent but must guess at preconditions.

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.