Skip to main content
Glama

WhyLingxi 保险顾问 Insurance Advisor

compare_products

对比2-5款产品的关键维度(保费、保障、免赔额、续保等),返回结构化对比表。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageNo用于查询精确保费的年龄
genderNo用于查询精确保费的性别
product_idsYes产品ID列表(2-5个)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It mentions comparing 2-5 products and returning a structured table, but lacks details on data freshness, performance implications, or error handling. Basic behavioral info is present, but no depth beyond the stated purpose.

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?

Single, clear sentence front-loading purpose and key details. No filler; every part earns its place.

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 comparison tool with no output schema, description covers main purpose, scope (2-5 products), key dimensions, and output type. Missing error handling or behavior for invalid inputs, but still provides sufficient context for correct invocation.

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

Parameters4/5

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

Schema coverage is 100% with parameter descriptions. The description adds context by linking age and gender to precise premium calculation and listing comparison dimensions, which enriches understanding beyond the schema alone.

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?

Description clearly states verb (compare), resource (2-5 products), key dimensions (premium, coverage, deductible, renewal), and output (structured comparison table). It effectively distinguishes from siblings like get_product_detail (single product) and search_products (search).

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?

Usage is implied by the description (use when comparing multiple products), but it does not explicitly state when not to use or mention alternatives. No exclusions or when-not-to guidance provided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.