Skip to main content
Glama

IAseguro: comparador de seguros en España

Comparar precios de seguros de salud

cotizar_salud
Read-onlyIdempotent

Compara el precio del seguro de salud privado en España entre varias aseguradoras con los datos del usuario. Úsala cuando pregunten cuánto cuesta un seguro de salud para una persona o una familia. Si solo preguntan qué cubre, usa consultar_coberturas (line "salud"); para elegir por preferencias sin dar edad, recomendar_salud. Devuelve las 15 ofertas más baratas que cumplen las preferencias; si ninguna las cumple, ignora las preferencias. additionalAges suma al precio a cada asegurado más. No pidas datos médicos: no se usan. Las compañías que no aseguran ese caso no aparecen, las que no dan precio online salen como sin_precio (con teléfono o enlace) y las que fallan van en aseguradorasSinRespuesta. Un precio estimado no vincula: lo confirma la compañía. Si falta un dato o no es válido, devuelve isError e indica cuál. No contrata ni pide nombre, DNI, teléfono ni email.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "birthDate": "<birthDate>",
      "postalCode": "<postalCode>"
    },
    "name": "cotizar_salud"
  }
}

Input Schema

NameRequiredDescriptionDefault
dentalNo"si" si quieren cobertura dental.
noCopayNo"si" si quieren póliza sin copago por acto médico.
modalityNoCuadro médico (red de centros), reembolso (eliges médico) o mixta. Vacío si les da igual.
birthDateYesFecha de nacimiento del titular en formato YYYY-MM-DD (ej. 1990-05-15).
maternityNo"si" si quieren cobertura de maternidad.
postalCodeYesCódigo postal español de 5 dígitos (ej. 28015).
additionalAgesNoEdades del resto de asegurados (pareja, hijos), sin el titular. Ej. [38, 6].

Output Schema

NameRequiredDescriptionDefault
tipoYes
avisoYesAviso legal corto; muéstralo o resúmelo al usuario.
lineaYesId de la línea (vida, coche, hogar…).
monedaYes
formatoYes
ofertasYesDe más barata a más cara; las ofertas sin precio, al final.
resumenYes
generadoEnYesFecha y hora ISO 8601 de la respuesta.
idPeticionYes
etiquetaLineaYes
enlaceComparativaYesComparativa en iaseguro.com con los UTM del canal. En cotizaciones y salud es el enlace directo /comparar/{linea}?<datos enviados, con los nombres de campo de la tool> que abre la comparativa ya calculada (la fecha de nacimiento no viaja en la URL: va como edad=<años cumplidos>, que da el mismo precio); en coberturas, la guía del ramo; en disponibilidad, /comparar.
aseguradorasSinRespuestaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes far beyond the readOnly/idempotent annotations: it discloses the return cap (15 cheapest matching offers), the preference-relaxation fallback, the additionalAges pricing rule, that medical data is never requested, how non-covering insurers are omitted, how no-online-price insurers appear as sin_precio with phone/link, how failures surface in aseguradorasSinRespuesta, that estimates are non-binding, and that invalid input returns isError naming the field. That is an unusually complete behavioral contract.

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?

Front-loaded with purpose, then routing, then return/error semantics. Sentences are dense but every one carries distinct information an agent would otherwise have to discover by trial; no repetition of the annotations or schema.

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

Completeness5/5

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

Despite an output schema existing, the description still names the key result buckets (ofertas, sin_precio, aseguradorasSinRespuesta) and the error path, which is exactly what an agent needs to interpret results. For a 7-parameter quoting tool with 4 enums, nothing material is left unexplained.

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%, so the baseline is 3, but the description adds meaning the schema does not: additionalAges 'suma al precio a cada asegurado más' explains the pricing effect of that array rather than just its format. The 'vacío si les da igual' convention for modality is likewise implied rather than spelled out in the schema.

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?

States a specific verb (compara el precio) and resource (seguro de salud privado en España entre varias aseguradoras) tied to user data. An agent can distinguish it immediately from cotizar_coche, cotizar_vida, and the two consultar/recomendar siblings.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (cuánto cuesta para una persona o familia) plus two named alternatives with the exact condition that routes to each: consultar_coberturas with line 'salud' for coverage questions, recomendar_salud for preference-only selection without age. Exclusions are as clear as inclusions.

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.

Resources