Skip to main content
Glama
saketh12e

GrabInsurance MCP

by saketh12e

classify_deal_intent

Classify deal intent by evaluating merchant, category, and value to return top insurance products with confidence scores, using rule-based classification and AI fallback.

Instructions

Classify deal intent and return top insurance products.

Takes a deal object and returns the top 2 insurance products with confidence scores. Uses rule-based classification first, falls back to Claude API if category is unknown.

Args: merchant: Merchant name e.g. "IndiGo", "Samsung", "Zomato" category: One of travel, electronics, food, health, fashion subcategory: Specific subcategory like flight, hotel, gadget, phone deal_value: Deal amount in INR user_history: Optional dict with risk_tier, total_purchases, categories_bought

Returns: ClassificationResult with top_products, cart_context, show_offer, fallback_used

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
merchantYes
deal_valueYes
subcategoryYes
user_historyNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of disclosure. It reveals a key behavioral trait: uses rule-based classification first, then falls back to Claude API if the category is unknown. This gives the agent insight into the tool's decision process. However, it does not disclose potential side effects, authorization needs, or error handling, which would elevate the score further.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a one-line summary, a brief overview of the algorithm, and a clear Args list. Every sentence serves a purpose, and the format is easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 5 parameters, no output schema, and moderate complexity (classification with fallback), the description provides a thorough overview of inputs and high-level output structure (ClassificationResult fields). It covers the essential mechanics but could improve by detailing edge cases or confidence score semantics. Still, it is largely complete for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the description compensates fully by providing explicit explanations for all 5 parameters in the Args section. It includes example values for merchant, enumerates valid category options, defines subcategory examples, specifies deal value in INR, and describes the optional user_history structure. This adds significant meaning beyond the schema's type and title.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'classify' and resource 'deal intent', and specifies it returns top insurance products. It also outlines the classification approach (rule-based with fallback to Claude API), making the tool's purpose unambiguous and distinct from the sibling tool 'get_insurance_quote' which likely retrieves quotes rather than classifying intent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a deal object is available and classification of intent into insurance products is needed, but it does not explicitly state when to use this tool versus alternatives like 'get_insurance_quote'. No direct guidance on when not to use or prerequisites is provided, leaving room for ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/saketh12e/GrabonInsurance-MCP'

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