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
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | Location to get emergency contacts for | |
| serviceType | No | Types of emergency services needed |
Implementation Reference
- index.ts:410-424 (handler)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`, }, ], }; }
- index.ts:236-239 (schema)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), },