Skip to main content
Glama
sovereign-verify-mcp

sovereign-verify-mcp

by pjrpjr

scrub_hipaa_safe_harbor_835

Read-onlyIdempotent

De-identifies X12 835/837P EDI under HIPAA Safe Harbor offline, applying 18-identifier scrubbing, HMAC join keys, and a fail-closed self-audit to prevent data leaks.

Instructions

Offline HIPAA 45 CFR §164.514(b)(2) 18-identifier X12 835/837P de-identifier with fail-closed zero-leak self-audit (17 restricted ZIP3 -> '000', AGE90PLUS DOB generalization, HMAC join keys) and post-June-2026 $15 / 50-item NSA-IDR batch recoverable EV & state fee-splitting compliance estimator.

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": {
      "raw_edi": "<raw_edi>"
    },
    "name": "scrub_hipaa_safe_harbor_835"
  }
}

Input Schema

NameRequiredDescriptionDefault
saltNoOptional deterministic session salt for cross-file 837P<->835 HMAC join keys.
raw_ediYesRaw X12 835 or 837P EDI text.
date_modeNoSafe Harbor date transformation mode.relative_offset
reference_yearNoReference year for >89 age generalization (AGE90PLUS).
state_overrideNoOptional 2-letter U.S. provider state override for fee-splitting ban checks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and non-open-world, so the safety profile is largely structured. The description still adds genuine behavior: 'fail-closed zero-leak self-audit' signals it errors rather than emitting PHI, and it enumerates concrete transformations (17 restricted ZIP3 mapped to '000', AGE90PLUS DOB generalization, HMAC join keys). It stops short of stating what happens when the self-audit fails or how the salt must be shared across runs.

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

Conciseness2/5

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

A single run-on sentence dense with unexpanded acronyms (NSA-IDR, EV, AGE90PLUS, ZIP3) and a second capability clause appended after 'and'. It is front-loaded, but the tail bloats the definition without helping an agent decide or call correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All five parameters are documented in the schema and the description explains the transformation semantics, so the core is covered. With no output schema, the description should still indicate the return shape (de-identified EDI versus an audit report plus estimator output) and the fail-closed error contract, and it does neither.

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 every parameter including the date_mode enum and reference_year is already documented, making 3 the baseline. The description adds indirect linkage — HMAC join keys to salt, AGE90PLUS to reference_year, fee-splitting bans to state_override — but never names the parameters, so it adds little beyond the schema text.

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?

The description names a specific verb and resource: a HIPAA Safe Harbor (45 CFR §164.514(b)(2)) 18-identifier de-identifier for X12 835/837P EDI, run offline. An agent can identify it as the EDI de-identification tool. However, the purpose is buried under a compound tail claiming a second role ('NSA-IDR batch recoverable EV & state fee-splitting compliance estimator'), which blurs whether this is one tool or two.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not-to-use guidance, and no named alternatives among the audit_* / verify_* siblings. 'Offline' implies no network dependency but is not framed as a selection criterion. Nothing tells an agent when 835 versus 837P input is appropriate or when date_mode variants should be preferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.