Stack Exchange · Capability
Stack Exchange API v2.3 — Filters
Filters surface of the Stack Exchange API. 2 operations. Lead operation: Create Filter. Self-contained Naftiko capability covering one Stack Exchange business surface.
What You Can Do
GET
Createfilter
— Create Filter
/v1/filters/create
GET
Getfiltersbyids
— Get Filters by Ids
/v1/filters/{filters}
MCP Tools
create-filter
Create Filter
read-only
idempotent
get-filters-ids
Get Filters by Ids
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Stack Exchange API v2.3 — Filters
description: 'Filters surface of the Stack Exchange API. 2 operations. Lead operation: Create Filter. Self-contained Naftiko capability covering one Stack Exchange business surface.'
tags:
- Stack Exchange
- Q And A
- Filters
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-filters
baseUri: https://api.stackexchange.com/2.3
description: Stack Exchange API v2.3 — Filters business capability. Self-contained, no shared references.
authentication:
type: apikey
key: key
value: '{{env.STACK_EXCHANGE_KEY}}'
placement: query
resources:
- name: filters-create
path: /filters/create
operations:
- name: createFilter
method: GET
description: Create Filter
inputParameters:
- name: include
in: query
type: string
required: false
description: include parameter
- name: exclude
in: query
type: string
required: false
description: exclude parameter
- name: base
in: query
type: string
required: false
description: base parameter
- name: unsafe
in: query
type: boolean
required: false
description: unsafe parameter
- name: key
in: query
type: string
required: false
description: App key from stackapps.com. Raises the daily quota to 10,000/IP.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
- name: filters-filters
path: /filters/{filters}
operations:
- name: getFiltersByIds
method: GET
description: Get Filters by Ids
inputParameters:
- name: filters
in: path
type: string
required: true
description: Up to 20 semicolon-delimited filter ids.
- name: key
in: query
type: string
required: false
description: App key from stackapps.com. Raises the daily quota to 10,000/IP.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
exposes:
- type: rest
namespace: stack-exchange-filters-rest
port: 8080
description: REST adapter for Stack Exchange API v2.3 — Filters. One Spectral-compliant resource per consumed operation, prefixed with /v1.
resources:
- path: /v1/filters/create
name: create
description: REST surface for filters.
operations:
- method: GET
name: createFilter
description: Create Filter
call: stack-exchange-filters.createFilter
with:
include: rest.include
exclude: rest.exclude
base: rest.base
unsafe: rest.unsafe
key: rest.key
outputParameters:
- type: object
mapping: $.
- path: /v1/filters/{filters}
name: filters
description: REST surface for filters.
operations:
- method: GET
name: getFiltersByIds
description: Get Filters by Ids
call: stack-exchange-filters.getFiltersByIds
with:
filters: rest.filters
key: rest.key
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: stack-exchange-filters-mcp
port: 9090
transport: http
description: MCP adapter for Stack Exchange API v2.3 — Filters. One tool per consumed operation, routed inline through this capability's consumes block.
tools:
- name: create-filter
description: Create Filter
hints:
readOnly: true
destructive: false
idempotent: true
call: stack-exchange-filters.createFilter
with:
include: tools.include
exclude: tools.exclude
base: tools.base
unsafe: tools.unsafe
key: tools.key
outputParameters:
- type: object
mapping: $.
- name: get-filters-ids
description: Get Filters by Ids
hints:
readOnly: true
destructive: false
idempotent: true
call: stack-exchange-filters.getFiltersByIds
with:
filters: tools.filters
key: tools.key
outputParameters:
- type: object
mapping: $.