get_collection_response
Get details of a specific response in a collection by providing collection and response IDs. Optionally populate full response contents.
Instructions
Get details of a specific response in a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Collection ID | |
| response_id | Yes | Response ID | |
| ids | No | Return only properties that contain ID values | |
| uid | No | Return all IDs in UID format | |
| populate | No | Return all response contents |
Implementation Reference
- Core handler function for 'get_collection_response'. Makes a GET request to /collections/{collection_id}/responses/{response_id} with optional query params (ids, uid, populate) and returns the response data.
/** * Get details of a specific response in a collection */ async getCollectionResponse(args: any): Promise<ToolCallResponse> { const { collection_id, response_id, ...params } = args; const response = await this.client.get( `/collections/${collection_id}/responses/${response_id}`, { params } ); return this.createResponse(response.data); } - src/types/collection.ts:39-44 (schema)TypeScript interface defining input arguments: extends CollectionIdArg with response_id, ids, uid, populate.
export interface GetCollectionResponseArgs extends CollectionIdArg { response_id: string; ids?: boolean; uid?: boolean; populate?: boolean; } - Tool definition schema for 'get_collection_response' — includes name, description, and JSON Schema input with collection_id, response_id (required), and optional ids, uid, populate.
{ name: 'get_collection_response', description: 'Get details of a specific response in a collection', inputSchema: { type: 'object', properties: { collection_id: { type: 'string', description: 'Collection ID', }, response_id: { type: 'string', description: 'Response ID', }, ids: { type: 'boolean', description: 'Return only properties that contain ID values', }, uid: { type: 'boolean', description: 'Return all IDs in UID format', }, populate: { type: 'boolean', description: 'Return all response contents', }, }, required: ['collection_id', 'response_id'], }, }, - src/tools/api/collections/index.ts:63-64 (registration)Case statement in handleToolCall that routes 'get_collection_response' to the getCollectionResponse method.
case 'get_collection_response': return await this.getCollectionResponse(args); - src/types/common.ts:9-11 (helper)CollectionIdArg interface providing the collection_id field that GetCollectionResponseArgs extends.
export interface CollectionIdArg { collection_id: string; }