Stack Exchange · Capability

Stack Exchange API v2.3 — Revisions

Revisions surface of the Stack Exchange API. 1 operations. Lead operation: Get Revisions by GUIDs. Self-contained Naftiko capability covering one Stack Exchange business surface.

Run with Naftiko Stack ExchangeQ And ARevisions

What You Can Do

GET
Getrevisionsbyguids — Get Revisions by GUIDs
/v1/revisions/{ids}

MCP Tools

get-revisions-ds

Get Revisions by GUIDs

read-only idempotent

Capability Spec

stack-exchange-revisions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stack Exchange API v2.3 — Revisions
  description: 'Revisions surface of the Stack Exchange API. 1 operations. Lead operation: Get Revisions by GUIDs. Self-contained Naftiko capability covering one Stack Exchange business surface.'
  tags:
  - Stack Exchange
  - Q And A
  - Revisions
  created: '2026-05-29'
  modified: '2026-05-29'
binds:
- namespace: env
  keys:
    STACK_EXCHANGE_KEY: STACK_EXCHANGE_KEY
    STACK_EXCHANGE_ACCESS_TOKEN: STACK_EXCHANGE_ACCESS_TOKEN
capability:
  consumes:
  - type: http
    namespace: stack-exchange-revisions
    baseUri: https://api.stackexchange.com/2.3
    description: Stack Exchange API v2.3 — Revisions business capability. Self-contained, no shared references.
    authentication:
      type: apikey
      key: key
      value: '{{env.STACK_EXCHANGE_KEY}}'
      placement: query
    resources:
    - name: revisions-ids
      path: /revisions/{ids}
      operations:
      - name: getRevisionsByGuids
        method: GET
        description: Get Revisions by GUIDs
        inputParameters:
        - name: ids
          in: path
          type: string
          required: true
          description: Up to 100 semicolon-delimited revision GUIDs.
        - name: site
          in: query
          type: string
          required: true
          description: Target Q&A community. Either the api_site_parameter from a `/sites` entry (e.g. `stackoverflow`, `serverfault`, `superuser`) or a full domain (`stackoverflow.com`).
        - name: key
          in: query
          type: string
          required: false
          description: App key from stackapps.com. Raises the daily quota to 10,000/IP.
        - name: filter
          in: query
          type: string
          required: false
          description: Custom response filter id created via /filters/create.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: stack-exchange-revisions-rest
    port: 8080
    description: REST adapter for Stack Exchange API v2.3 — Revisions. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/revisions/{ids}
      name: revisions
      description: REST surface for revisions.
      operations:
      - method: GET
        name: getRevisionsByGuids
        description: Get Revisions by GUIDs
        call: stack-exchange-revisions.getRevisionsByGuids
        with:
          ids: rest.ids
          site: rest.site
          key: rest.key
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stack-exchange-revisions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stack Exchange API v2.3 — Revisions. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: get-revisions-ds
      description: Get Revisions by GUIDs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stack-exchange-revisions.getRevisionsByGuids
      with:
        ids: tools.ids
        site: tools.site
        key: tools.key
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.