Skip to main content
Glama

Health referral check

wever_health-referral-check
Read-only

Agent Healthcare: submit a referral with the order and the appointment record: the referral with its id, the day referred, the referring and receiving providers, the specialty, the service, the reason, the dates it is valid from and through and the visits it allows; optionally the order with the day ordered, the specialty, the service and the reason; and optionally each appointment with its id, day, provider, specialty and status (scheduled, completed, cancelled or no show). The signed report gives the referral, the order with its service read as matching or differing, the specialty and reason on each side, the validity window with the visits allowed and the appointments counted, and the appointments with another provider, outside the window or under another specialty, and counts them, and names a mismatched referral: a specialty unlike the order, an appointment with a provider the referral does not name, an appointment outside the validity window and more scheduled or completed appointments than the visits allowed; then a reason unlike the order, a service named otherwise, an appointment under another specialty and a referral dated after the first appointment, with the fix for each and what would change the verdict. No order, no appointment record, appointments with no receiving provider, no validity window or no visit count, or a specialty on one side only leaves the referral unverified. Scheduled and completed appointments count; cancelled and missed ones do not. A window that ends before it starts is refused. This reads a care referral: wever_referral-rail creates and attributes payment referral codes and their earnings, which shares only the word, while the referral check reads the referred specialty, reason, window and receiving provider against the order and the appointments. Verdict health_referral_mismatched, health_referral_partial, health_referral_unverified or health_referral_matched. POST /api/health-referral-check. Reads the care paperwork supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; it reads paperwork consistency only, with no diagnosis, clinical reading of results, medical necessity judgment or treatment advice, and the paperwork stays in the report, with no network request, fetch, message, payment or external write. Agent Healthcare reads supplied care paperwork after the fact and checks it for consistency against the related records and the summary given to the patient or principal: an itemized bill, a claim as submitted, a prior authorization, a referral, a prescription record and label, a discharge summary, a lab report and an after-visit summary. Beside it, the Agent Insurance checks such as wever_insurance-coverage-check read insurance policies and coverage, what a policy covers, excludes and limits, and where the question is what a policy covers, that is the insurance family’s read, not a healthcare check’s; wever_insurance-evidence-check reads a counterparty’s insurance certificate or policy excerpt for DiligenceOps; wever_callback-health-monitor probes a service’s HTTPS callback endpoint for uptime and reads no care document; and the Agent Consent checks such as wever_consent-scope-check read agent permission and consent records for data handling, not medical consent forms or care documents, while a healthcare check reads no agent permission. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-healthcare-contract. Human page: https://weverlabs.com/agent-healthcare/.

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": {
      "referral": "<referral>"
    },
    "name": "wever_health-referral-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name recorded in the report.
orderNo
referralYes
appointmentsNoEach appointment as recorded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only and closed-world, but the description adds behavior the annotations cannot convey: pricing (0.10 USDC per call via x402 exact, 10 free signed-wallet calls per 30 days), the X-Wever-Wallet-Proof binding to exact JSON arguments, an Ed25519 signed receipt, and the explicit guarantee of no network request, fetch, message, payment or external write. It also enumerates the four possible verdicts and the counting rule (scheduled and completed count; cancelled and missed do not).

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?

The core purpose is front-loaded, but the text is a single sprawling block of run-on sentences, and a large share is shared family boilerplate (the full Agent Healthcare catalogue, the insurance and consent family comparisons, the payment/x402 paragraph) that is not specific to a referral check. Substantive guidance is present but buried in repetition and would benefit from being split and trimmed.

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, naming the signed report's verdict, evidence, findings with fixes, and what would change the verdict, plus the four verdict values and refusal cases. For a four-parameter nested-input tool it is functionally complete; the only small gap is the unspecified optional label field.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 50% schema description coverage and three nested objects, the schema alone leaves most fields bare; the description compensates by mapping every field to its role — referral id, day referred, from/to provider, specialty, service, reason, valid-from/through, visits allowed; order ordered-on, specialty, service, reason; appointment id, day, provider, specialty, status. It also supplies meaning the schema cannot, such as which appointment statuses are counted and that cancelled/no-show ones are ignored. Only the optional "label" parameter goes unmentioned.

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?

"Submit a referral with the order and the appointment record" states a specific verb plus resource, and the closing line "This reads a care referral" pins the scope precisely. It also explicitly rules out the nearest name collision (wever_referral-rail "creates and attributes payment referral codes ... which shares only the word"), so an agent can distinguish it 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 Guidelines5/5

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

The description gives explicit routing: the insurance family handles policy coverage questions, wever_insurance-evidence-check handles certificates, wever_callback-health-monitor reads no care document, and consent checks read agent permissions not medical consent. It also states the negative conditions — "No order, no appointment record, appointments with no receiving provider, no validity window or no visit count, or a specialty on one side only leaves the referral unverified" — and what is refused outright.

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