Skip to main content
Glama

Validate a PAS bundle

validate_bundle
Read-onlyIdempotent

Validate a synthetic Da Vinci PAS Submit Bundle with the ImOnFHIR validator. Synthetic payloads only. Never send real patient data. Findings describe a synthetic Bundle. Body cap 2 MB, 10 calls per minute. Over MCP every answer carries verdict: the validator's own readiness verdict, the one its Lab shows (readiness, a one-sentence statement, its readiness dimensions and its consolidated counts); read it first. Then summary: false means the whole OperationOutcome is in outcome; true means it was over 100,000 characters, so the answer is a bounded summary instead (the coverage note; distinct problems by severity, a problem the validator's layers report twice counted once, with the raw counts beside them; counts by issue code, rule family and resource; the PAS profile versions the issues cite; the 25 most serious kinds of finding, and how many were not listed). A summary's findings (never the bundle) are kept 1 hour: get_validation_findings pages every issue with the result_id it gives. POST /api/v1/validate returns the whole OperationOutcome.

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": {
      "bundle": "<bundle>"
    },
    "name": "validate_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
igNo
bundleYesA FHIR Bundle (resourceType "Bundle"). Synthetic only.
versionNoA PAS version the validator allows; omitted, the default.

Output Schema

NameRequiredDescriptionDefault
igYes
countsNo
noticeYes
outcomeNoPresent only when summary is false.
summaryYesfalse: the whole OperationOutcome is in outcome. true: it was too long to send whole; this is a bounded summary.
verdictYesThe validator product's own readiness verdict, the one its Lab shows; read verdict.statement first.
versionYes
coverageNo
requestIdYes
result_idNoThe id get_validation_findings reads; null when the result could not be kept (see store_note).
truncatedNo
expires_atNo
next_stepsNo
store_noteNo
full_reportNo
key_findingsNo
version_noteNo
summary_noticeNo
findings_digestNo
findings_listedNo
findings_omittedNo
instruction_blockNo
pas_profile_versions_citedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / verdict / properties / terminology
      Added value: +{
      +  "description": "off_on_this_site: this site does not check codes against terminology, by design, so no bundle reads Ready.",
      +  "enum": [
      +    "off_on_this_site",
      +    "unavailable",
      +    "checked",
      +    "unknown"
      +  ]
      +}
    • changedOutput schema / properties / verdict / required
      Previous value: -[
      -  "readiness",
      -  "label",
      -  "coverage_complete",
      -  "statement",
      -  "dimensions",
      -  "consolidated",
      -  "caveat"
      -]New value: +[
      +  "readiness",
      +  "label",
      +  "coverage_complete",
      +  "terminology",
      +  "statement",
      +  "dimensions",
      +  "consolidated",
      +  "caveat"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / verdict
      Added value: +{
      +  "description": "The validator product's own readiness verdict, the one its Lab shows; read verdict.statement first.",
      +  "properties": {
      +    "caveat": {
      +      "type": "string"
      +    },
      +    "consolidated": {
      +      "properties": {
      +        "actionable_defects": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "best_practice": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "data_quality": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "findings": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "needs_review": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "raw_issues": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "validation_incomplete": {
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "coverage_complete": {
      +      "type": "boolean"
      +    },
      +    "dimensions": {
      +      "type": "object"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "readiness": {
      +      "enum": [
      +        "READY",
      +        "READY_WITH_WARNINGS",
      +        "DEGRADED",
      +        "INDETERMINATE",
      +        "NOT_READY",
      +        "NOT_EVALUATED",
      +        "UNKNOWN"
      +      ]
      +    },
      +    "statement": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "readiness",
      +    "label",
      +    "coverage_complete",
      +    "statement",
      +    "dimensions",
      +    "consolidated",
      +    "caveat"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "summary",
      -  "notice",
      -  "ig",
      -  "version",
      -  "requestId"
      -]New value: +[
      +  "summary",
      +  "notice",
      +  "ig",
      +  "version",
      +  "requestId",
      +  "verdict"
      +]
  3. Changed5 schema fields changed
    • addedOutput schema / properties / expires_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / findings_digest
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / next_steps
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "arguments": {
      +        "properties": {
      +          "result_id": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "result_id"
      +        ],
      +        "type": "object"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "get_validation_findings"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "arguments",
      +      "note"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / result_id
      Added value: +{
      +  "description": "The id get_validation_findings reads; null when the result could not be kept (see store_note).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / store_note
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed7 schema fields changed
    • addedOutput schema / properties / counts / properties / by_severity / description
      Added value: +"As reported: one per OperationOutcome issue, as REST returns them; larger than problems_by_severity when layers report the same problem."
    • addedOutput schema / properties / counts / properties / problems
      Added value: +{
      +  "description": "Distinct problems: one per severity, code, message and place, so a problem two validator layers report counts once. Lead with this.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / counts / properties / problems_by_severity
      Added value: +{
      +  "description": "Distinct problems by severity.",
      +  "type": "object"
      +}
    • changedOutput schema / properties / counts / required
      Previous value: -[
      -  "issues",
      -  "distinct_findings",
      -  "by_severity",
      -  "by_code",
      -  "by_rule_family",
      -  "by_severity_code",
      -  "by_resource",
      -  "resources_total"
      -]New value: +[
      +  "issues",
      +  "distinct_findings",
      +  "problems",
      +  "problems_by_severity",
      +  "by_severity",
      +  "by_code",
      +  "by_rule_family",
      +  "by_severity_code",
      +  "by_resource",
      +  "resources_total"
      +]
    • addedOutput schema / properties / key_findings / items / properties / count / description
      Added value: +"Issues of this kind as reported, layer twins included."
    • addedOutput schema / properties / key_findings / items / properties / places
      Added value: +{
      +  "description": "Distinct places this kind occurs: its problems, layer twins merged.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / key_findings / items / required
      Previous value: -[
      -  "severity",
      -  "code",
      -  "message",
      -  "message_clipped",
      -  "count",
      -  "rule_families",
      -  "where",
      -  "where_omitted"
      -]New value: +[
      +  "severity",
      +  "code",
      +  "message",
      +  "message_clipped",
      +  "count",
      +  "places",
      +  "rule_families",
      +  "where",
      +  "where_omitted"
      +]
  5. Changed14 schema fields changed
    • addedOutput schema / properties / counts
      Added value: +{
      +  "properties": {
      +    "by_code": {
      +      "type": "object"
      +    },
      +    "by_resource": {
      +      "items": {
      +        "properties": {
      +          "issues": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "resource": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "resource",
      +          "issues"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    "by_rule_family": {
      +      "type": "object"
      +    },
      +    "by_severity": {
      +      "type": "object"
      +    },
      +    "by_severity_code": {
      +      "type": "object"
      +    },
      +    "distinct_findings": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "issues": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "resources_total": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "issues",
      +    "distinct_findings",
      +    "by_severity",
      +    "by_code",
      +    "by_rule_family",
      +    "by_severity_code",
      +    "by_resource",
      +    "resources_total"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / coverage
      Added value: +{
      +  "properties": {
      +    "complete": {
      +      "type": "boolean"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "complete",
      +    "text"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / findings_listed
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / findings_omitted
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / full_report
      Added value: +{
      +  "properties": {
      +    "note": {
      +      "type": "string"
      +    },
      +    "rest": {
      +      "properties": {
      +        "method": {
      +          "const": "POST"
      +        },
      +        "send": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "method",
      +        "url",
      +        "send"
      +      ],
      +      "type": "object"
      +    },
      +    "site_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "site_url",
      +    "rest",
      +    "note"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / instruction_block
      Added value: +{
      +  "properties": {
      +    "rules": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "version": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "version",
      +    "rules"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / key_findings
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "count": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "message_clipped": {
      +        "type": "boolean"
      +      },
      +      "rule_families": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "severity": {
      +        "type": "string"
      +      },
      +      "where": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 3,
      +        "type": "array"
      +      },
      +      "where_omitted": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "severity",
      +      "code",
      +      "message",
      +      "message_clipped",
      +      "count",
      +      "rule_families",
      +      "where",
      +      "where_omitted"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 25,
      +  "type": "array"
      +}
    • addedOutput schema / properties / outcome / description
      Added value: +"Present only when summary is false."
    • addedOutput schema / properties / pas_profile_versions_cited
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "issues": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "version": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "version",
      +      "issues"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "description": "false: the whole OperationOutcome is in outcome. true: it was too long to send whole; this is a bounded summary.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / summary_notice
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / version_note
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "notice",
      -  "ig",
      -  "version",
      -  "outcome",
      -  "requestId"
      -]New value: +[
      +  "summary",
      +  "notice",
      +  "ig",
      +  "version",
      +  "requestId"
      +]
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds genuinely non-obvious behavior: a 2 MB body cap, a 10 calls/minute rate limit, a 1-hour retention window for summary findings (never the bundle), and the truncation threshold at 100,000 characters. The dual response shape (complete OperationOutcome vs. bounded summary) is exactly the kind of trait an agent cannot get from annotations.

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?

The safety constraint and the 'read verdict first' instruction are correctly front-loaded, and every sentence carries substantive information. The middle section describing the summary's contents is dense and parenthetical-heavy, which slows parsing, but nothing is truly padding.

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?

Although an output schema exists, the `verdict` and `summary` fields have non-obvious semantics that the description must explain, and it does so thoroughly — including what is lost on truncation and how to recover it. Combined with the rate/size limits and data-handling policy, an agent has everything needed to call this correctly.

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?

With schema coverage at 67% and three parameters, the description never mentions `ig`, `version`, or what `bundle` must contain beyond 'synthetic'. It spends its words on response semantics instead. That is acceptable given partial schema coverage, but it adds no meaning beyond the structured fields for the inputs themselves.

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: 'Validate a synthetic Da Vinci PAS Submit Bundle with the ImOnFHIR validator.' That is clearly distinguishable from siblings like get_validation_findings (which pages results) or compare_payloads/compare_igs. An agent can route to this tool without inspecting 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?

It gives a firm precondition ('Synthetic payloads only. Never send real patient data') and points to get_validation_findings as the follow-up path for paging a truncated result. It also instructs the agent to read `verdict` first. What it does not do is state when to prefer this over a comparison tool, so it stops short of explicit when/when-not guidance.

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