get_answers
Pack: stackexchange · Endpoint: https://gateway.pipeworx.io/stackexchange/mcp
Get answers for a specific StackExchange question by ID. Returns answer body, score, and whether it is accepted.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
question_id | number | yes | The numeric question ID from the question URL |
site | string | no | StackExchange site slug (default: stackoverflow) |
Example call
Arguments
{
"question_id": 419163
}
curl
curl -X POST https://gateway.pipeworx.io/stackexchange/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_answers","arguments":{"question_id":419163}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_answers', {
"question_id": 419163
});
More examples
{
"question_id": 927358,
"site": "serverfault"
}
Response shape
Always returns: site, question_id, count, quota_remaining, answers
| Field | Type | Description |
|---|---|---|
site | string | The StackExchange site slug used |
question_id | number | The question ID for which answers were retrieved |
count | number | Number of answers returned |
quota_remaining | number | null | Remaining API quota for this user |
answers | array | Array of answers to the question |
Full JSON Schema
{
"type": "object",
"properties": {
"site": {
"type": "string",
"description": "The StackExchange site slug used"
},
"question_id": {
"type": "number",
"description": "The question ID for which answers were retrieved"
},
"count": {
"type": "number",
"description": "Number of answers returned"
},
"quota_remaining": {
"type": [
"number",
"null"
],
"description": "Remaining API quota for this user"
},
"answers": {
"type": "array",
"description": "Array of answers to the question",
"items": {
"type": "object",
"properties": {
"answer_id": {
"type": "number",
"description": "Unique answer identifier"
},
"body": {
"type": [
"string",
"null"
],
"description": "Answer body HTML content"
},
"score": {
"type": "number",
"description": "Answer score (votes)"
},
"is_accepted": {
"type": "boolean",
"description": "Whether this is the accepted answer"
},
"owner_name": {
"type": [
"string",
"null"
],
"description": "Display name of the answer author"
},
"owner_reputation": {
"type": [
"number",
"null"
],
"description": "Reputation score of the answer author"
},
"created": {
"type": "string",
"description": "ISO 8601 creation timestamp"
},
"last_activity": {
"type": "string",
"description": "ISO 8601 last activity timestamp"
}
},
"required": [
"answer_id",
"body",
"score",
"is_accepted",
"owner_name",
"owner_reputation",
"created",
"last_activity"
]
}
}
},
"required": [
"site",
"question_id",
"count",
"quota_remaining",
"answers"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"stackexchange": {
"url": "https://gateway.pipeworx.io/stackexchange/mcp"
}
}
}
See Getting Started for client-specific install steps.