check_claim_status
Check the status of an existing Lemonade insurance claim by providing the claim ID and associated email address.
Instructions
Check the status of an existing Lemonade insurance claim
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claim_id | Yes | The claim ID to check | |
| Yes | Email address associated with the claim |
Implementation Reference
- src/index.ts:344-371 (handler)Handler function for the "check_claim_status" tool.
async function handleCheckClaimStatus(args: { claim_id: string; email: string; }): Promise<string> { return withBrowser(async (browser, page) => { await page.goto(`${LEMONADE_BASE_URL}/claims`, { waitUntil: "domcontentloaded", timeout: 30000, }); await page.waitForTimeout(1500); return JSON.stringify({ status: "action_required", message: "Claim status requires authentication.", claims_url: `${LEMONADE_BASE_URL}/claims`, claim_id: args.claim_id, email: args.email, instructions: [ `1. Visit ${LEMONADE_BASE_URL}/login and sign in with ${args.email}`, "2. Navigate to 'My Claims'", `3. Find claim ID: ${args.claim_id}`, "4. View the current status and any updates", "", "Alternatively, check your email for claim updates from Lemonade.", ], }); }); } - src/index.ts:91-107 (registration)Tool registration for "check_claim_status".
name: "check_claim_status", description: "Check the status of an existing Lemonade insurance claim", inputSchema: { type: "object", properties: { claim_id: { type: "string", description: "The claim ID to check", }, email: { type: "string", description: "Email address associated with the claim", }, }, required: ["claim_id", "email"], }, },