Skip to main content
Glama
discava

discava – Business Directory for AI

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
NameRequiredDescriptionDefault
business_idYesBusiness ID
typeYesFeedback type
commentNoDescription of the issue

Implementation Reference

  • 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 }),
        }));
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/discava/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server