Skip to main content
Glama

Compare policies side by side

compare_policies
Read-onlyIdempotent

Compares 2 to 4 policies and returns only the rows where they differ (checked values, then normalised cover items), each cell with its clause, plus a list of what they share. In the order given; not a ranking.

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>",
      "policy_ids": "<policy_ids>"
    },
    "name": "compare_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesInsurance line id: climbing
fieldsNoOptional: only these attributes or cover items (ids or words from their labels)
policy_idsYes2 to 4 policy ids

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral value beyond that: which rows are returned (only differences), the comparison order (checked values then normalised cover items), per-cell clause attribution, and a shared-items list. With annotations doing the safety work, a 3 fits the modest remaining gap (no mention of size limits or failure modes).

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?

Two tight sentences with no filler, and the core contract (what is returned) is front-loaded before the ordering caveat. The parenthetical 'checked values, then normalised cover items' is dense jargon but earns its space by defining comparison semantics.

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?

There is no output schema, so the description must describe returns, and it does: differing rows with per-cell clauses plus a shared-items list. Combined with fully documented annotations and a 100%-covered schema, an agent has enough to call it correctly, though the shape of the shared-items list stays abstract.

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, policy_ids and fields. The description adds only marginal meaning, clarifying that differences are computed on checked values then normalised cover items, which contextualises what 'fields' filters over. Baseline 3 is correct when the schema carries the parameter detail.

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?

States a specific verb (compares) and resource (policies), plus the scope constraint (2 to 4) and the exact output shape (only differing rows). It implicitly separates itself from ranking tools with 'not a ranking', but never names a sibling such as match_policies, so differentiation relies on inference.

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?

'In the order given; not a ranking' hints that a ranking tool is the alternative, and the 2-to-4 constraint defines a valid call. However, there is no explicit when-to-use versus when-not guidance and no named alternative, so the agent must infer the routing.

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