Skip to main content
Glama

Match policies to answers

match_policies
Read-onlyIdempotent

Filters UK policies by the answers given. Returns a short factual answer (dated, with the criteria in words), the policies that match (alphabetical) with their key facts cited to the insurer's wording, askTheInsurer (policies the documents can't confirm either way, with what to ask), every removed policy with its reasons, notices that apply, example prices with their basis, warnings for any answer that was ignored, and fullBreakdown: a link to enoughcover's checker pre-filled with the same answers. Amount answers (minimum limits) are thresholds the user chooses: ask for one or leave it at 0 (no minimum), never pick one for them.

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": {
      "line": "<line>"
    },
    "name": "match_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesInsurance line id: climbing
checkNoOptional: cover items or sub-limits to check, comma-separated, as in the checker's link: item:<id> or sub:<id> (is_covered names them). Add >=<amount> for a minimum limit the user chose (e.g. sub:phones>=500, and +addons to count cover that is only a paid add-on): it then filters like an amount answer. Never pick an amount for the user.
detailNosummary (default): key facts, terms to check and prices per match. full: also every checked value and catch, each cited.summary
answersNoQuestion id to answer (get_questions lists them). Lists may be arrays or comma-separated strings. Omitted questions use defaults; unknown ids come back in warnings. Example for climbing: {"activities":["sport"],"region":"europe","tripDays":14}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / check
      Added value: +{
      +  "description": "Optional: cover items or sub-limits to check, comma-separated, as in the checker's link: item:<id> or sub:<id> (is_covered names them). Add >=<amount> for a minimum limit the user chose (e.g. sub:phones>=500, and +addons to count cover that is only a paid add-on): it then filters like an amount answer. Never pick an amount for the user.",
      +  "type": "string"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / answers / description
      Previous value: -"Question id to answer. Lists may be arrays or comma-separated strings. Omitted questions use defaults."New value: +"Question id to answer (get_questions lists them). Lists may be arrays or comma-separated strings. Omitted questions use defaults; unknown ids come back in warnings. Example for climbing: {\"activities\":[\"sport\"],\"region\":\"europe\",\"tripDays\":14}"
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "summary",
      +  "description": "summary (default): key facts, terms to check and prices per match. full: also every checked value and catch, each cited.",
      +  "enum": [
      +    "summary",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / line / description
      Previous value: -"Insurance line id, e.g. climbing"New value: +"Insurance line id: climbing"
    • addedInput schema / properties / line / enum
      Added value: +[
      +  "climbing"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds substantial value beyond them: alphabetical ordering of matches, the semantics of askTheInsurer, reasons attached to every removed policy, warnings for ignored answers, and the pre-filled checker link. Remaining gaps are minor (empty-result behavior, cost/latency of a full match).

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence, and the long return-value enumeration is justified because no output schema exists. It is nonetheless a single dense multi-clause sentence whose list of returned fields is harder to scan than a short bulleted structure would be.

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?

With no output schema and a nested answers object, the description does the necessary work of explaining what comes back, including the askTheInsurer and removed-policy sections an agent would otherwise misreport. It stops short of covering failure modes such as invalid answers, empty match sets, or how the fullBreakdown URL should be surfaced to the user.

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 the schema already documents line, check, detail and answers with examples. The description reinforces the amount-as-threshold rule and notes that fullBreakdown mirrors the same answers, but adds no syntax or format detail beyond what the schema states. Baseline 3 is appropriate when the schema carries the parameter burden.

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

Purpose4/5

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

Opens with a specific verb and resource: 'Filters UK policies by the answers given,' and the enumeration of outputs (matches, askTheInsurer, removed policies, prices, fullBreakdown) makes clear this is the end-to-end matching entry point rather than a single lookup. It does not name siblings such as is_covered or compare_policies, so the agent must infer differentiation from the output list alone.

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?

Provides real guidance on amount answers ('ask for one or leave it at 0 (no minimum), never pick one for them'), which tells the agent how to behave when the user has not chosen a threshold. However, there is no explicit statement of when to reach for this tool versus compare_policies or is_covered, so selection against alternatives is left implicit.

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