Skip to main content
Glama

Compare two IGs

compare_igs
Read-onlyIdempotent

Compare two implementation guides, each "packageId#version": one guide at two versions (version diff) or two guides (stack compare). Over MCP the answer is a bounded summary (the risk level and, in plain words, the rule that set it; counts per change type, a change-type by impact breakdown, the profiles carrying the most breaking changes, what moved in value set definitions, the most serious findings, and where the whole report is); POST /api/v1/compare returns the whole report.

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": {
      "ig_a": "<ig_a>",
      "ig_b": "<ig_b>"
    },
    "name": "compare_igs"
  }
}

Input Schema

NameRequiredDescriptionDefault
ig_aYese.g. "hl7.fhir.us.davinci-pas#2.0.1"
ig_bYese.g. "hl7.fhir.us.davinci-pas#2.1.0"

Output Schema

NameRequiredDescriptionDefault
ig_aYes
ig_bYes
modeYes
riskNo
countsYes
noticeYes
summaryYes
breakdownNo
truncatedYes
full_reportYes
top_findingsYes
top_profilesNo
findings_listedYes
comparison_notesNo
findings_omittedYes
comparison_statusNo
valueset_definition_changesNo
valueset_unchanged_unlistedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / risk / properties / rule
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / risk / properties / rule_text
      Added value: +{
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • addedOutput schema / properties / breakdown
      Added value: +{
      +  "properties": {
      +    "by_type_impact": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "type": "object"
      +      },
      +      "type": "object"
      +    },
      +    "family": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "family",
      +    "by_type_impact"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / risk / properties / overlap
      Added value: +{
      +  "properties": {
      +    "multi_tagged": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "tagged": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "untagged": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "tagged",
      +    "multi_tagged",
      +    "untagged"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / risk / properties / workflows
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "needing_attention": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "workflow": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "workflow",
      +      "needing_attention"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / top_profiles
      Added value: +{
      +  "properties": {
      +    "profiles": {
      +      "items": {
      +        "properties": {
      +          "breaking": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "potentially_breaking": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "profile": {
      +            "type": "string"
      +          },
      +          "total": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "profile",
      +          "breaking",
      +          "potentially_breaking",
      +          "total"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "profiles_total": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "profiles",
      +    "profiles_total"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / valueset_definition_changes
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "canonical": {
      +        "type": "string"
      +      },
      +      "summary": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "canonical",
      +      "summary"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / valueset_unchanged_unlisted
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description adds real value by disclosing that the MCP response is a bounded summary while the API returns the whole report. It also sketches what the summary contains, which is behavior beyond the structured fields. Minor gap: no mention of size limits or latency.

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 clause and the mode distinction follows immediately. The trailing enumeration of summary contents is long and dense, though it does carry information; trimming it would improve scannability without losing the core.

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 an output schema present, the description needn't enumerate return values, yet it still describes the summary shape while correctly deferring detail to the schema. The only omission is guidance on how large or slow a comparison is, which is minor for a read-only, idempotent tool.

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% and the schema already supplies example values, so the baseline is 3. The description earns extra credit by naming the exact accepted format, "packageId#version", which clarifies how the two string parameters must be composed.

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 and resource ("Compare two implementation guides") and immediately disambiguates the two modes: version diff within one guide versus stack compare across two guides. An agent can tell this apart from compare_payloads or validate_bundle without opening the schema.

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?

The description makes the usage condition clear (one guide at two versions, or two guides) and explicitly routes an agent wanting the full report to the POST /api/v1/compare endpoint instead of the tool. It does not name sibling tools or state exclusions, so it falls short of a 5.

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