WordPress · Capability

WordPress REST API — Tags

WordPress REST API — Tags. 1 operations. Lead operation: WordPress List Tags. Self-contained Naftiko capability covering one Wordpress business surface.

Run with Naftiko WordpressTags

What You Can Do

GET
Listtags — WordPress List Tags
/v1/wp/v2/tags

MCP Tools

wordpress-list-tags

WordPress List Tags

read-only idempotent

Capability Spec

rest-tags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WordPress REST API — Tags
  description: 'WordPress REST API — Tags. 1 operations. Lead operation: WordPress List Tags. Self-contained Naftiko capability
    covering one Wordpress business surface.'
  tags:
  - Wordpress
  - Tags
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WORDPRESS_API_KEY: WORDPRESS_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-tags
    baseUri: https://{site}/wp-json
    description: WordPress REST API — Tags business capability. Self-contained, no shared references.
    resources:
    - name: wp-v2-tags
      path: /wp/v2/tags
      operations:
      - name: listtags
        method: GET
        description: WordPress List Tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Current page of the collection.
        - name: per_page
          in: query
          type: integer
          description: Maximum number of items.
        - name: search
          in: query
          type: string
          description: Limit results to matching tags.
        - name: hide_empty
          in: query
          type: boolean
          description: Whether to hide terms not assigned to any posts.
    authentication:
      type: apikey
      key: wordpress_logged_in
      value: '{{env.WORDPRESS_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: rest-tags-rest
    port: 8080
    description: REST adapter for WordPress REST API — Tags. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/wp/v2/tags
      name: wp-v2-tags
      description: REST surface for wp-v2-tags.
      operations:
      - method: GET
        name: listtags
        description: WordPress List Tags
        call: rest-tags.listtags
        with:
          page: rest.page
          per_page: rest.per_page
          search: rest.search
          hide_empty: rest.hide_empty
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-tags-mcp
    port: 9090
    transport: http
    description: MCP adapter for WordPress REST API — Tags. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: wordpress-list-tags
      description: WordPress List Tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-tags.listtags
      with:
        page: tools.page
        per_page: tools.per_page
        search: tools.search
        hide_empty: tools.hide_empty
      outputParameters:
      - type: object
        mapping: $.