Skip to main content
Glama

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
NameRequiredDescriptionDefault
claim_idYesThe claim ID to check
emailYesEmail address associated with the claim

Implementation Reference

  • 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"],
      },
    },

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/markswendsen-code/mcp-lemonade'

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