Skip to main content
Glama

Assurs LAMal comparator

Check a contact request without sending

test_adviser_request
Read-onlyIdempotent

Checks a contact request and returns a preview of what would be sent, without sending anything: no email, no request created. Same input as request_adviser_contact. Meant for integration tests with fictitious details.

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": {
      "request_id": "<request_id>",
      "comparison_id": "<comparison_id>",
      "contact": "<contact>",
      "client_consent": "<client_consent>"
    },
    "name": "test_adviser_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoOptional. Who is calling; self-declared, used for statistics only.
contactYesThe person’s own details: an email address or a phone number, and optionally a name and a message.
languageNoLanguage of the person; defaults to the comparison language. fr, de, it, en have localised texts and pages; es, pt, zh are recorded for SPI (preview and pages fall back to en/fr).
offer_idNooffers[].offer_id or source_offer_id; alternative to insurer_id.
insurer_idNoinsurer_id of the chosen offer, from offers[].
request_idYesIdentifier of this request, as returned by the comparison (any UUID is accepted). The same request sent again with the same identifier within 24 hours is not sent twice.
comparison_idYescomparison_id from the quote; valid 30 days. Preferred.
client_consentYestrue when the person has agreed that their contact details, the comparison criteria and the chosen offer are sent to Swiss Premium Insurance. The request is refused without it.
subsidy_requestedNoThe person wants information on premium subsidies.
supplementary_interestNoThe person also wants offers for supplementary insurance (LCA).

Output Schema

NameRequiredDescriptionDefault
statusYes
previewYesWhat a real send would contain: the offer, the criteria, the names of the contact fields filled and the consent statement.
email_sentYes
request_idNo
request_createdNo
would_be_sent_toNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed32 schema fields changed
    • removedInput schema / anyOf
      Removed value: -[
      -  {
      -    "required": [
      -      "comparison_id"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "comparison",
      -      "comparison_token"
      -    ]
      -  }
      -]
    • changedInput schema / description
      Previous value: -"Send exactly one of comparison_id or comparison + comparison_token. Copy request_id, comparison_id and insurer_id from the quote."New value: +"The comparison_id of a comparison, the insurer chosen, the person’s contact details and their agreement."
    • changedInput schema / properties / agent / description
      Previous value: -"Who is calling: { name:\"chatgpt\" } etc. Self-declared, not authentication."New value: +"Optional. Who is calling; self-declared, used for statistics only."
    • removedInput schema / properties / agent / properties / cashbackRequested
      Removed value: -{
      -  "default": true,
      -  "description": "Records a request for SPI to consider a benefit. Not a claim, eligibility, approval, amount or payment promise. Does not change prices or ranking.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / agent / properties / cashback_requested
      Removed value: -{
      -  "default": true,
      -  "description": "Records a request for SPI to consider a benefit. Not a claim, eligibility, approval, amount or payment promise. Does not change prices or ranking.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / agent / properties / displayName
      Removed value: -{
      -  "description": "Optional custom agent name, no client name or conversation content.",
      -  "maxLength": 80,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / agent / properties / display_name
      Removed value: -{
      -  "description": "Optional custom agent name, no client name or conversation content.",
      -  "maxLength": 80,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / agent / properties / integrationId
      Removed value: -{
      -  "description": "Self-declared integration identifier, NOT authentication.",
      -  "pattern": "^[a-zA-Z0-9._-]{1,80}$",
      -  "type": "string"
      -}
    • removedInput schema / properties / agent / properties / integration_id
      Removed value: -{
      -  "description": "Self-declared integration identifier, NOT authentication.",
      -  "pattern": "^[a-zA-Z0-9._-]{1,80}$",
      -  "type": "string"
      -}
    • removedInput schema / properties / agent / properties / kind
      Removed value: -{
      -  "description": "Optional. Accepted values: personal_assistant, conversational_assistant, coding_agent (personal_agent and chat_assistant are read as personal_assistant and conversational_assistant).",
      -  "enum": [
      -    "personal_assistant",
      -    "conversational_assistant",
      -    "coding_agent"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / agent / properties / name / description
      Previous value: -"Agent name, lower-cased by the server (spaces become _; a literal <placeholder> counts as other). Known names: chatgpt, claude, gemini, grok, openclaw, muse, codex, claude_code, copilot, perplexity, mistral, coding_agent, other; any other short identifier is accepted."New value: +"Name of the assistant or product making the call."
    • removedInput schema / properties / cashback_terms_version
      Removed value: -{
      -  "description": "cashback.version shown to the client; 409 cashback_terms_outdated when stale.",
      -  "type": "string"
      -}
    • changedInput schema / properties / client_consent / description
      Previous value: -"true only after the client explicitly answered yes to consent_request. Never infer consent from a comparison."New value: +"true when the person has agreed that their contact details, the comparison criteria and the chosen offer are sent to Swiss Premium Insurance. The request is refused without it."
    • removedInput schema / properties / comparison
      Removed value: -{
      -  "description": "submission.comparison copied unchanged; only with comparison_token.",
      -  "type": "object"
      -}
    • removedInput schema / properties / comparison_token
      Removed value: -{
      -  "description": "submission.comparisonToken with the identical submission.comparison; alternative to comparison_id.",
      -  "maxLength": 1000,
      -  "type": "string"
      -}
    • changedInput schema / properties / contact / description
      Previous value: -"Fill email or phone; leave the other as an empty string or omit it. Never invent a client name, email or phone."New value: +"The person’s own details: an email address or a phone number, and optionally a name and a message."
    • changedInput schema / properties / contact / properties / email / description
      Previous value: -"Client email such as client@example.ch; an empty string or an omitted key means the client gave a phone instead."New value: +"Email address such as client@example.ch; an empty string or an omitted key means a phone number is given instead."
    • changedInput schema / properties / contact / properties / phone / description
      Previous value: -"Client telephone, 8-15 digits, optional spaces and + country code; an empty string or an omitted key means the client gave an email instead."New value: +"Telephone, 8-15 digits, optional spaces and + country code; an empty string or an omitted key means an email address is given instead."
    • changedInput schema / properties / insurer_id / description
      Previous value: -"insurer_id of the offer the client chose, from offers[]."New value: +"insurer_id of the chosen offer, from offers[]."
    • changedInput schema / properties / language / description
      Previous value: -"Client language; defaults to the comparison language. fr, de, it, en have localised client texts and pages; es, pt, zh are recorded for SPI (preview and pages fall back to en/fr)."New value: +"Language of the person; defaults to the comparison language. fr, de, it, en have localised texts and pages; es, pt, zh are recorded for SPI (preview and pages fall back to en/fr)."
    • changedInput schema / properties / request_id / description
      Previous value: -"Copy submission.request_id from the quote (any RFC 4122 UUID). Reuse the same value and body on every retry."New value: +"Identifier of this request, as returned by the comparison (any UUID is accepted). The same request sent again with the same identifier within 24 hours is not sent twice."
    • changedInput schema / properties / subsidy_requested / description
      Previous value: -"Client wants information on premium subsidies."New value: +"The person wants information on premium subsidies."
    • changedInput schema / properties / supplementary_interest / description
      Previous value: -"Client also wants supplementary (LCA) offers; enables the LCA cashback."New value: +"The person also wants offers for supplementary insurance (LCA)."
    • changedInput schema / required
      Previous value: -[
      -  "request_id",
      -  "contact",
      -  "client_consent"
      -]New value: +[
      +  "request_id",
      +  "comparison_id",
      +  "contact",
      +  "client_consent"
      +]
    • removedOutput schema / properties / payment_created
      Removed value: -{
      -  "const": false
      -}
    • changedOutput schema / properties / preview / description
      Previous value: -"What a real send would contain."New value: +"What a real send would contain: the offer, the criteria, the names of the contact fields filled and the consent statement."
    • removedOutput schema / properties / preview / properties
      Removed value: -{
      -  "cashback_line": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "consent_confirmation": {
      -    "description": "The confirmation a real send returns, filled.",
      -    "type": "string"
      -  },
      -  "consent_statement": {
      -    "type": "string"
      -  },
      -  "contact_fields": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "criteria_summary": {
      -    "type": "string"
      -  },
      -  "household_monthly_chf": {
      -    "type": "number"
      -  },
      -  "insurer_name": {
      -    "type": "string"
      -  },
      -  "language": {
      -    "type": "string"
      -  },
      -  "members_count": {
      -    "type": "integer"
      -  },
      -  "model_name": {
      -    "type": "string"
      -  },
      -  "model_name_official": {
      -    "type": "string"
      -  },
      -  "people": {
      -    "description": "Household only: each member with model and monthly premium.",
      -    "items": {
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "premium_monthly_chf": {
      -    "description": "Monthly premium; for a household the household total.",
      -    "type": "number"
      -  }
      -}
    • removedOutput schema / properties / recipient
      Removed value: -{
      -  "const": "contact@sp-insurance.ch"
      -}
    • addedOutput schema / properties / request_created
      Added value: +{
      +  "const": false
      +}
    • removedOutput schema / properties / request_id / format
      Removed value: -"uuid"
    • addedOutput schema / properties / would_be_sent_to
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "request_id",
      -  "email_sent",
      -  "payment_created",
      -  "recipient",
      -  "preview"
      -]New value: +[
      +  "status",
      +  "email_sent",
      +  "preview"
      +]
  2. Changed7 schema fields changed
    • addedInput schema / properties / agent / properties / kind / description
      Added value: +"Optional. Accepted values: personal_assistant, conversational_assistant, coding_agent (personal_agent and chat_assistant are read as personal_assistant and conversational_assistant)."
    • addedOutput schema / properties / preview / properties / consent_confirmation
      Added value: +{
      +  "description": "The confirmation a real send returns, filled.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / preview / properties / household_monthly_chf
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / preview / properties / members_count
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / preview / properties / model_name_official
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / preview / properties / people
      Added value: +{
      +  "description": "Household only: each member with model and monthly premium.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / preview / properties / premium_monthly_chf / description
      Added value: +"Monthly premium; for a household the household total."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered structurally; the description earns credit for specifying exactly which side effects are suppressed (no email, no request created) and that a preview is returned. It does not mention rate limits, auth requirements, or whether the preview payload matches the real send exactly, which would be valuable for a test harness.

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?

Two short sentences that front-load the core behavior and the no-side-effects guarantee, followed by the sibling equivalence and intended context. Every clause carries information; nothing is padded or restated from the title.

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 ten-parameter nested tool, the description covers purpose, safety, and intended use, and an output schema exists so return values need no explanation. It could go further by stating whether validation errors are surfaced identically to the real call, but nothing essential to invoking it correctly is absent.

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

Parameters3/5

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

Schema description coverage is 100%, so all ten parameters, including nested contact fields and the client_consent const, are already documented in the schema. The description adds only the cross-reference that the input contract matches request_adviser_contact, which is useful but not parameter-level meaning beyond 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?

The description opens with a specific verb and resource ("Checks a contact request and returns a preview") and immediately scopes it with "without sending anything: no email, no request created." It also explicitly distinguishes itself from request_adviser_contact by noting identical input, so an agent can tell the dry-run variant apart from the real submission tool.

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

Usage Guidelines4/5

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

"Meant for integration tests with fictitious details" gives a clear when-to-use condition, and pairing it with request_adviser_contact implicitly signals which tool actually sends. What's missing is an explicit statement of when NOT to use it (e.g. never with real client data in production), which would make routing unambiguous.

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