schedule_emergency_transport
Arrange emergency medical transport by specifying patient location, medical condition, and urgency level. Connects with medical facilities for efficient patient transfer.
Instructions
Arranges emergency medical transportation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination | No | Destination hospital or clinic | |
| medicalCondition | Yes | Brief description of medical condition | |
| patientLocation | Yes | Patient's current location | |
| urgency | Yes | Level of urgency |
Implementation Reference
- index.ts:426-442 (handler)Handler function for schedule_emergency_transport tool. Validates input args using the schema and returns a formatted response simulating emergency transport scheduling with details like ETA and transport ID.
case "schedule_emergency_transport": { const validatedArgs = ScheduleEmergencyTransportSchema.parse(args); return { content: [ { type: "text", text: `Emergency transport scheduled from ${validatedArgs.patientLocation}\n` + `${validatedArgs.destination ? `To: ${validatedArgs.destination}\n` : ''}` + `Urgency: ${validatedArgs.urgency}\n` + `Condition: ${validatedArgs.medicalCondition}\n` + `ETA: 12 minutes\n` + `Transport ID: EMT-${Math.floor(Math.random() * 10000)}\n` + `Please stand by and keep patient stable.`, }, ], }; } - index.ts:241-246 (schema)Zod schema defining the input structure for the schedule_emergency_transport tool, including patient location, optional destination, medical condition, and urgency level.
const ScheduleEmergencyTransportSchema = z.object({ patientLocation: z.string().describe("Patient's current location"), destination: z.string().optional().describe("Destination hospital or clinic"), medicalCondition: z.string().describe("Brief description of medical condition"), urgency: z.enum(["critical", "urgent", "standard"]).describe("Level of urgency"), }); - index.ts:279-283 (registration)Tool registration in the ListToolsRequestSchema handler, providing the tool's name, description, and converted JSON schema for MCP protocol compliance.
{ name: "schedule_emergency_transport", description: "Arranges emergency medical transportation", inputSchema: zodToJsonSchema(ScheduleEmergencyTransportSchema), },