get_question_answers
Retrieve answers to daily check-in questions using project and question IDs. Supports paginated responses for efficient data management on Basecamp projects.
Instructions
Get answers on daily check-in question
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for paginated response | |
| project_id | Yes | The project ID | |
| question_id | Yes | The question ID |
Implementation Reference
- src/index.ts:525-537 (registration)Registration of the 'get_question_answers' tool in the listTools handler, including input schema{ name: 'get_question_answers', description: 'Get answers on daily check-in question', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'The project ID' }, question_id: { type: 'string', description: 'The question ID' }, page: { type: 'number', description: 'Page number for paginated response' }, }, required: ['project_id', 'question_id'], }, },
- src/types/basecamp.ts:186-191 (schema)TypeScript interface defining the structure of QuestionAnswer objects returned by the toolexport interface QuestionAnswer { id: string; content: string; created_at: string; creator: Person; }
- src/lib/basecamp-client.ts:424-430 (helper)Core helper function in BasecampClient that performs the API call to retrieve question answersasync getQuestionAnswers(projectId: string, questionId: string, page = 1): Promise<QuestionAnswer[]> { const response = await this.client.get( `/buckets/${projectId}/questions/${questionId}/answers.json`, { params: { page } } ); return response.data; }