Wiktionary · Capability

Wiktionary MediaWiki Core REST API — History

MediaWiki Core REST API — History. 3 operations. Lead operation: Wiktionary Get Page History. Self-contained Naftiko capability covering one Wiktionary business surface.

Run with Naftiko WiktionaryMediaWiki Core REST APIHistory

What You Can Do

GET
Getpagehistory — Wiktionary Get Page History
/v1/page/{title}/history
GET
Getpagehistorycount — Wiktionary Get Page History Count
/v1/page/{title}/history/counts/{type}
GET
Getrevisionbare — Wiktionary Get Revision Bare
/v1/revision/{id}/bare

MCP Tools

get-page-history

Wiktionary Get Page History

read-only idempotent
get-page-history-count

Wiktionary Get Page History Count

read-only idempotent
get-revision-bare

Wiktionary Get Revision Bare

read-only idempotent

Capability Spec

core-rest-api-history.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Wiktionary MediaWiki Core REST API — History
  description: 'MediaWiki Core REST API — History. 3 operations. Lead operation: Wiktionary Get Page History. Self-contained Naftiko capability covering one Wiktionary business surface.'
  tags:
  - Wiktionary
  - MediaWiki Core REST API
  - History
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    WIKTIONARY_MEDIAWIKI_CORE_TOKEN: WIKTIONARY_MEDIAWIKI_CORE_TOKEN
capability:
  consumes:
  - type: http
    namespace: core-rest-api-history
    baseUri: https://en.wiktionary.org/w/rest.php
    description: Wiktionary MediaWiki Core REST API — History business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.WIKTIONARY_MEDIAWIKI_CORE_TOKEN}}'
    resources:
    - name: v1-page-title-history
      path: /v1/page/{title}/history
      operations:
      - name: getPageHistory
        method: GET
        description: Wiktionary Get Page History
        inputParameters:
        - name: older_than
          in: query
          type: integer
          required: false
          description: Return revisions older than this revision id.
        - name: newer_than
          in: query
          type: integer
          required: false
          description: Return revisions newer than this revision id.
        - name: filter
          in: query
          type: string
          required: false
          description: Filter revisions (reverted, anonymous, bot, minor).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-page-title-history-counts-type
      path: /v1/page/{title}/history/counts/{type}
      operations:
      - name: getPageHistoryCount
        method: GET
        description: Wiktionary Get Page History Count
        inputParameters:
        - name: type
          in: path
          type: string
          required: true
          description: Which kind of revisions to count.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-revision-id-bare
      path: /v1/revision/{id}/bare
      operations:
      - name: getRevisionBare
        method: GET
        description: Wiktionary Get Revision Bare
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
          description: Revision id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: core-rest-api-history-rest
    port: 8080
    description: REST adapter for Wiktionary MediaWiki Core REST API — History. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/page/{title}/history
      name: v1-page-title-history
      description: REST surface for Wiktionary Get Page History.
      operations:
      - method: GET
        name: getPageHistory
        description: Wiktionary Get Page History
        call: core-rest-api-history.getPageHistory
        with:
          older_than: rest.older_than
          newer_than: rest.newer_than
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/page/{title}/history/counts/{type}
      name: v1-page-title-history-counts-type
      description: REST surface for Wiktionary Get Page History Count.
      operations:
      - method: GET
        name: getPageHistoryCount
        description: Wiktionary Get Page History Count
        call: core-rest-api-history.getPageHistoryCount
        with:
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/revision/{id}/bare
      name: v1-revision-id-bare
      description: REST surface for Wiktionary Get Revision Bare.
      operations:
      - method: GET
        name: getRevisionBare
        description: Wiktionary Get Revision Bare
        call: core-rest-api-history.getRevisionBare
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: core-rest-api-history-mcp
    port: 9090
    transport: http
    description: MCP adapter for Wiktionary MediaWiki Core REST API — History. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: get-page-history
      description: Wiktionary Get Page History
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-rest-api-history.getPageHistory
      with:
        older_than: tools.older_than
        newer_than: tools.newer_than
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: get-page-history-count
      description: Wiktionary Get Page History Count
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-rest-api-history.getPageHistoryCount
      with:
        type: tools.type
      outputParameters:
      - type: object
        mapping: $.
    - name: get-revision-bare
      description: Wiktionary Get Revision Bare
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-rest-api-history.getRevisionBare
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.