send_feedback
Report data quality issues for businesses in the Discava directory, including incorrect information, duplicates, or missing entries.
Instructions
Report data quality issues for a business.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| business_id | Yes | Business ID | |
| type | Yes | Feedback type | |
| comment | No | Description of the issue |
Implementation Reference
- server.ts:90-104 (handler)The 'send_feedback' tool is defined and implemented directly using server.tool in server.ts. It validates inputs via Zod and sends a POST request to the /feedback endpoint.
server.tool( 'send_feedback', 'Report data quality issues for a business.', { business_id: z.string().describe('Business ID'), type: z.enum(['POSITIVE', 'NEGATIVE', 'NOT_FOUND', 'PHONE_INVALID', 'WEB_INVALID', 'HOURS_WRONG', 'DUPLICATE']).describe('Feedback type'), comment: z.string().optional().describe('Description of the issue'), }, async ({ business_id, type, comment }) => { return jsonContent(await api('/feedback', { method: 'POST', body: JSON.stringify({ business_id, type, comment }), })); } );