list_responses
Retrieve active seller quotations for a given procurement intent. Returns list with prices, quantities, delivery dates, and seller information.
Instructions
查看卖家主动报价。返回列表含报价金额、数量、交期、卖家信息。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent_id | Yes | 意图 ID |
Implementation Reference
- src/index.ts:886-889 (handler)Handler case in the main tool dispatch that calls client.listResponses(p.intent_id) with parsed IntentIdSchema.
case 'list_responses': { const p = S.IntentIdSchema.parse(args); result = await client.listResponses(p.intent_id); break; - src/acap-client.ts:228-230 (helper)The low-level API client method listResponses that sends a GET request to /acap/v1/intents/{intentId}/responses.
async listResponses(intentId: number) { return this.request('GET', `/acap/v1/intents/${intentId}/responses`); } - src/schemas.ts:43-45 (schema)The Zod schema IntentIdSchema used for input validation: requires intent_id as a positive integer.
export const IntentIdSchema = z.object({ intent_id: z.number().int().positive(), }); - src/index.ts:357-366 (registration)Tool registration block defining the 'list_responses' tool with name, description, and inputSchema.
name: 'list_responses', description: '查看卖家主动报价。返回列表含报价金额、数量、交期、卖家信息。', inputSchema: { type: 'object' as const, properties: { intent_id: { type: 'number', description: '意图 ID' }, }, required: ['intent_id'], }, }, - src/index.ts:122-125 (registration)Tool grouping registration listing 'list_responses' under the 'intent' category.
intent: [ 'publish_intent', 'get_intent_status', 'cancel_intent', 'get_sourcing_status', 'list_matches', 'list_responses', ],