Stack Overflow · Capability
Stack Overflow API — Search
Stack Overflow API — Search. 3 operations. Lead operation: Search Questions. Self-contained Naftiko capability covering one Stack Overflow business surface.
What You Can Do
GET
Searchquestions
— Search Questions
/v1/search
GET
Searchadvanced
— Advanced Search
/v1/search/advanced
GET
Findsimilarquestions
— Find Similar Questions
/v1/similar
MCP Tools
search-questions
Search Questions
read-only
idempotent
advanced-search
Advanced Search
read-only
idempotent
find-similar-questions
Find Similar Questions
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Stack Overflow API — Search
description: 'Stack Overflow API — Search. 3 operations. Lead operation: Search Questions. Self-contained Naftiko capability
covering one Stack Overflow business surface.'
tags:
- Stack Overflow
- Search
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
STACK_OVERFLOW_API_KEY: STACK_OVERFLOW_API_KEY
capability:
consumes:
- type: http
namespace: stack-overflow-search
baseUri: https://api.stackexchange.com/2.3
description: Stack Overflow API — Search business capability. Self-contained, no shared references.
resources:
- name: search
path: /search
operations:
- name: searchquestions
method: GET
description: Search Questions
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: intitle
in: query
type: string
description: Text that must appear in question titles
- name: nottagged
in: query
type: string
description: Semicolon-delimited tags to exclude from results
- name: search-advanced
path: /search/advanced
operations:
- name: searchadvanced
method: GET
description: Advanced Search
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: q
in: query
type: string
description: Full-text search query
- name: accepted
in: query
type: boolean
description: Filter for questions with accepted answers
- name: answers
in: query
type: integer
description: Minimum number of answers required
- name: body
in: query
type: string
description: Text that must appear in the question body
- name: closed
in: query
type: boolean
description: Filter for closed or open questions
- name: title
in: query
type: string
description: Text that must appear in the question title
- name: user
in: query
type: integer
description: Filter by user ID
- name: views
in: query
type: integer
description: Minimum number of views required
- name: similar
path: /similar
operations:
- name: findsimilarquestions
method: GET
description: Find Similar Questions
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: title
in: query
type: string
description: Question title to find similar questions for
required: true
authentication:
type: bearer
token: '{{env.STACK_OVERFLOW_API_KEY}}'
exposes:
- type: rest
namespace: stack-overflow-search-rest
port: 8080
description: REST adapter for Stack Overflow API — Search. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/search
name: search
description: REST surface for search.
operations:
- method: GET
name: searchquestions
description: Search Questions
call: stack-overflow-search.searchquestions
with:
intitle: rest.intitle
nottagged: rest.nottagged
outputParameters:
- type: object
mapping: $.
- path: /v1/search/advanced
name: search-advanced
description: REST surface for search-advanced.
operations:
- method: GET
name: searchadvanced
description: Advanced Search
call: stack-overflow-search.searchadvanced
with:
q: rest.q
accepted: rest.accepted
answers: rest.answers
body: rest.body
closed: rest.closed
title: rest.title
user: rest.user
views: rest.views
outputParameters:
- type: object
mapping: $.
- path: /v1/similar
name: similar
description: REST surface for similar.
operations:
- method: GET
name: findsimilarquestions
description: Find Similar Questions
call: stack-overflow-search.findsimilarquestions
with:
title: rest.title
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: stack-overflow-search-mcp
port: 9090
transport: http
description: MCP adapter for Stack Overflow API — Search. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: search-questions
description: Search Questions
hints:
readOnly: true
destructive: false
idempotent: true
call: stack-overflow-search.searchquestions
with:
intitle: tools.intitle
nottagged: tools.nottagged
outputParameters:
- type: object
mapping: $.
- name: advanced-search
description: Advanced Search
hints:
readOnly: true
destructive: false
idempotent: true
call: stack-overflow-search.searchadvanced
with:
q: tools.q
accepted: tools.accepted
answers: tools.answers
body: tools.body
closed: tools.closed
title: tools.title
user: tools.user
views: tools.views
outputParameters:
- type: object
mapping: $.
- name: find-similar-questions
description: Find Similar Questions
hints:
readOnly: true
destructive: false
idempotent: true
call: stack-overflow-search.findsimilarquestions
with:
title: tools.title
outputParameters:
- type: object
mapping: $.