list_matches
List matched suppliers and products for a procurement intent, showing match score and price to compare and select a supplier for negotiation.
Instructions
查看意图匹配到的商品和商家。返回列表含 match_id、商家名称、价格、匹配度评分。选中商家后用 select_and_negotiate 开始议价。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent_id | Yes | 意图 ID |
Implementation Reference
- src/index.ts:346-355 (schema)Tool registration/definition for 'list_matches' including name, description, and inputSchema requiring intent_id
name: 'list_matches', description: '查看意图匹配到的商品和商家。返回列表含 match_id、商家名称、价格、匹配度评分。选中商家后用 select_and_negotiate 开始议价。', inputSchema: { type: 'object' as const, properties: { intent_id: { type: 'number', description: '意图 ID' }, }, required: ['intent_id'], }, }, - src/index.ts:881-884 (handler)Handler routing for 'list_matches': parses args with IntentIdSchema and calls client.listMatches(intent_id)
case 'list_matches': { const p = S.IntentIdSchema.parse(args); result = await client.listMatches(p.intent_id); break; - src/acap-client.ts:224-226 (handler)Actual API client method listMatches(intentId) that sends GET request to /acap/v1/intents/{intentId}/matches
async listMatches(intentId: number) { return this.request('GET', `/acap/v1/intents/${intentId}/matches`); } - src/schemas.ts:43-45 (schema)Zod schema IntentIdSchema used for parsing the intent_id parameter in list_matches handler
export const IntentIdSchema = z.object({ intent_id: z.number().int().positive(), }); - src/index.ts:124-124 (registration)Feature group registration including 'list_matches' in the 'intent' tool group
'get_sourcing_status', 'list_matches', 'list_responses',