drupal · Capability

Drupal REST API — Taxonomy Terms

Drupal REST API — Taxonomy Terms. 4 operations. Lead operation: Create a taxonomy term. Self-contained Naftiko capability covering one Drupal business surface.

Run with Naftiko DrupalTaxonomy Terms

What You Can Do

POST
Createtaxonomyterm — Create a taxonomy term
/v1/taxonomy/term
GET
Gettaxonomyterm — Get a taxonomy term
/v1/taxonomy/term/{id}
PATCH
Updatetaxonomyterm — Update a taxonomy term
/v1/taxonomy/term/{id}
DELETE
Deletetaxonomyterm — Delete a taxonomy term
/v1/taxonomy/term/{id}

MCP Tools

create-taxonomy-term

Create a taxonomy term

get-taxonomy-term

Get a taxonomy term

read-only idempotent
update-taxonomy-term

Update a taxonomy term

idempotent
delete-taxonomy-term

Delete a taxonomy term

idempotent

Capability Spec

rest-taxonomy-terms.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Drupal REST API — Taxonomy Terms
  description: 'Drupal REST API — Taxonomy Terms. 4 operations. Lead operation: Create a taxonomy term. Self-contained Naftiko
    capability covering one Drupal business surface.'
  tags:
  - Drupal
  - Taxonomy Terms
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DRUPAL_API_KEY: DRUPAL_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-taxonomy-terms
    baseUri: https://example.com
    description: Drupal REST API — Taxonomy Terms business capability. Self-contained, no shared references.
    resources:
    - name: taxonomy-term
      path: /taxonomy/term
      operations:
      - name: createtaxonomyterm
        method: POST
        description: Create a taxonomy term
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: taxonomy-term-id
      path: /taxonomy/term/{id}
      operations:
      - name: gettaxonomyterm
        method: GET
        description: Get a taxonomy term
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatetaxonomyterm
        method: PATCH
        description: Update a taxonomy term
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletetaxonomyterm
        method: DELETE
        description: Delete a taxonomy term
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.DRUPAL_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-taxonomy-terms-rest
    port: 8080
    description: REST adapter for Drupal REST API — Taxonomy Terms. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/taxonomy/term
      name: taxonomy-term
      description: REST surface for taxonomy-term.
      operations:
      - method: POST
        name: createtaxonomyterm
        description: Create a taxonomy term
        call: rest-taxonomy-terms.createtaxonomyterm
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/taxonomy/term/{id}
      name: taxonomy-term-id
      description: REST surface for taxonomy-term-id.
      operations:
      - method: GET
        name: gettaxonomyterm
        description: Get a taxonomy term
        call: rest-taxonomy-terms.gettaxonomyterm
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatetaxonomyterm
        description: Update a taxonomy term
        call: rest-taxonomy-terms.updatetaxonomyterm
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletetaxonomyterm
        description: Delete a taxonomy term
        call: rest-taxonomy-terms.deletetaxonomyterm
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-taxonomy-terms-mcp
    port: 9090
    transport: http
    description: MCP adapter for Drupal REST API — Taxonomy Terms. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-taxonomy-term
      description: Create a taxonomy term
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-taxonomy-terms.createtaxonomyterm
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-taxonomy-term
      description: Get a taxonomy term
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-taxonomy-terms.gettaxonomyterm
      outputParameters:
      - type: object
        mapping: $.
    - name: update-taxonomy-term
      description: Update a taxonomy term
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-taxonomy-terms.updatetaxonomyterm
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-taxonomy-term
      description: Delete a taxonomy term
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-taxonomy-terms.deletetaxonomyterm
      outputParameters:
      - type: object
        mapping: $.