Skip to main content
Glama

Controlled substance log check

wever_vet-controlled-substance-log-check
Read-only

Agent Veterinary Records: submit controlled substance log records with the prescription and treatment entries, period totals and inventory counts they answer to: each prescription or treatment entry with its id, reference, its kind (prescription or treatment), the animal, the controlled substance, the amount prescribed or ordered and the moment recorded; each log entry with its id, reference, the prescription or treatment entry it dispenses under, the animal, the substance, the amount dispensed and the moment dispensed; each period total and inventory count the log states with its id, reference, the substance, the moments its period starts and ends, the amount on hand at the start, the amount received, the amount the log totals as dispensed and the inventory count at the end. The signed report gives the log and the records behind it, each log entry against the prescription or treatment entry behind it, each dispensed total against the log entries dated in its period, each entry against an animal, a substance and an amount, and each inventory count against the opening count, the amount received and the entries dispensed, and counts them, and names divergent controlled substance logs: a log entry with no prescription or treatment entry behind it, a dispensed quantity the log’s own totals do not reflect, a log entry missing the animal, the substance or the amount, and an inventory count in the log that the entries do not support; then a prescription or treatment entry dispensed past the amount it records and an opening count unlike the prior period’s count, with the fix for each and what would change the verdict. No log entries, no prescription or treatment entries beside them, or no log totals or counts beside them leaves those points unverified. Entries, sources and animals match by letters and digits, substances by their words with plurals folded, so Ketamine injections and ketamine injection are one substance, amounts read to the hundredth in the unit the log uses, periods read by the day, and a count reads as the opening count plus receipts less the entries dispensed. This reads whether every dose in the practice’s controlled substance log rests on a prescription or treatment, is fully recorded and is carried into the log’s totals and inventory counts. Verdict vet_controlled_substance_log_divergent, vet_controlled_substance_log_partial, vet_controlled_substance_log_unverified or vet_controlled_substance_log_consistent. POST /api/vet-controlled-substance-log-check. Reads the veterinary practice records 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 the records as supplied only: it treats no animal, contacts no regulator, pharmacy or other practice and issues no license, prescription or certification, which stay with the practice, its veterinarians and its regulators, and the records stay in the report, with no network request, fetch, message, payment or external write. Agent Veterinary Records reads a veterinary practice’s own records: animal records, vaccination records, treatment records with dental procedures as treatment entries, surgery records, prescription records, lab records, veterinarian license records and controlled substance log records, each against the vaccination, treatment, visit and identity records, the rabies currency dates and booster schedule the record states, the visit, diagnosis, discharge and prescription records, the admission, anesthesia and recovery entries, the refill counts and the controlled substance log, the lab orders, the signed practice records and license classes, or the log’s own totals and inventory counts on record. The family’s ground is the paper trail behind the practice: what the animal record shows, what the treatment and surgery records support, what the license record covers, and whether the prescription records and controlled substance logs hold up; it reads records held by a veterinary practice or clinic, whatever the species, not farm production records and not human healthcare records: the Agent Agriculture Records family reads a farm’s production records, herd treatments the farm itself recorded included, and the Agent Healthcare family reads human healthcare records, while this family reads a veterinary practice’s own records and reads neither. 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-veterinary-records-contract. Human page: https://weverlabs.com/agent-veterinary-records/.

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": {
      "sources": "<sources>",
      "entries": "<entries>",
      "balances": "<balances>"
    },
    "name": "wever_vet-controlled-substance-log-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name recorded in the report.
entriesYesEach controlled substance log entry.
sourcesYesEach prescription or treatment entry the log answers to.
balancesYesEach period total and inventory count the log states.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description adds substantial context on top: the missing-data behavior (missing log entries, sources, totals, or counts leave those points unverified), the full verdict set, the signed Ed25519 receipt, the absence of any network request, message, payment, or external write, and the fact that no regulator or pharmacy is contacted and no license is issued. It also discloses the paid pricing model (0.10 USDC per call, 10 free signed-wallet calls per 30 days) and the X-Wever-Wallet-Proof binding requirement. This is rich disclosure well beyond what annotations provide.

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 description is a dense wall of run-on sentences with the actual purpose statement arriving near the end, after long enumerations of record fields. Large blocks of family boilerplate (agriculture and healthcare scope exclusions, contract path, human page URL, pricing) crowd out what an agent needs for selection. Volume is high and front-loading is poor, though the information is not random.

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 no output schema, the description carries the burden of describing returns, and it does: a signed report with verdict, evidence read, findings with fixes, what would change the verdict, an Ed25519 signed receipt, and the record-matching outcomes per log entry, per dispensed total, and per inventory count. Combined with the named verdicts and the unverified-state rule, an agent has enough to interpret results. Only pagination and result-size behavior are unaddressed, and those are bounded by maxItems in the schema.

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%, so the schema already documents each field of sources, entries, and balances. The description nevertheless adds meaning the schema does not: matching keys (entries, sources, and animals match by letters and digits; substances by words with plurals folded, so 'Ketamine injections' and 'ketamine injection' are one substance), amount precision to the hundredth, day-based period reading, and the count identity (opening plus receipts less dispensed). Those are genuine interpretive semantics for how the inputs are consumed.

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 states a specific verb and resource: it reads whether every dose in a practice's controlled substance log rests on a prescription or treatment entry, is fully recorded, and is carried into the log's totals and inventory counts, and it names the four verdicts that result. It also distinguishes scope from adjacent families (agriculture and human healthcare), though it does not sharply contrast with the sibling vet tools such as the prescription record check. The purpose is clear but buried far into the text.

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?

It tells the reader what the tool reads — a veterinary practice's own controlled substance log records — and states the negative scope (not farm production records, not human healthcare records), which is useful routing. However, there is no explicit when-to-use guidance relative to the vet siblings, nor any statement of prerequisites beyond the required arrays. Usage is implied rather than directed.

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