Skip to main content
Glama
manolaz

Emergency Medicare Planner MCP Server

by manolaz

get_emergency_contacts

Retrieve emergency contact details for a specific location using the Emergency Medicare Planner MCP Server. Specify location and service types to access relevant emergency services.

Instructions

Retrieves emergency contact information for a specific location

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationYesLocation to get emergency contacts for
serviceTypeNoTypes of emergency services needed

Implementation Reference

  • Handler function that validates input using GetEmergencyContactsSchema and returns mock emergency contact information including 911, nearest hospital, poison control, and Medicare hotline.
    case "get_emergency_contacts": { const validatedArgs = GetEmergencyContactsSchema.parse(args); return { content: [ { type: "text", text: `Emergency contacts for ${validatedArgs.location}:\n` + `Emergency Services: 911\n` + `Nearest Hospital: General Hospital - (555) 123-4567\n` + `Poison Control: (800) 222-1222\n` + `Medicare Hotline: 1-800-MEDICARE`, }, ], }; }
  • Zod schema defining input for get_emergency_contacts tool: location (string) and optional serviceType (array of strings).
    const GetEmergencyContactsSchema = z.object({ location: z.string().describe("Location to get emergency contacts for"), serviceType: z.array(z.string()).optional().describe("Types of emergency services needed"), });
  • index.ts:274-278 (registration)
    Registration of the get_emergency_contacts tool in the ListToolsRequestHandler response, including name, description, and input schema.
    { name: "get_emergency_contacts", description: "Retrieves emergency contact information for a specific location", inputSchema: zodToJsonSchema(GetEmergencyContactsSchema), },

Other Tools

Related Tools

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/manolaz/emergency-medicare-planner-mcp-server'

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