Skip to main content
Glama
fda-accessgudid-medical-devices-mcp

fda-accessgudid-medical-devices-mcp

Parse medical device UDI barcode string

parse_udi_string
Read-onlyIdempotent

Parses GS1, HIBCC, or ICCBBA UDI barcode strings to extract device identifier, expiration date, lot, and serial number for fast device identification.

Instructions

Parse a GS1, HIBCC, or ICCBBA Unique Device Identifier (UDI) string using the official AccessGUDID parser into DI, expiration date, lot, and serial number.

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": {
      "udi": "<udi>"
    },
    "name": "parse_udi_string"
  }
}

Input Schema

NameRequiredDescriptionDefault
udiYesFull UDI barcode string (e.g. "(01)08717648200274(17)141120(10)7654321D(21)10987654d321").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: it delegates to the official AccessGUDID parser (explaining the openWorld hint) and enumerates the output fields. However, it says nothing about failure modes for malformed or non-UDI strings, partial parses where, e.g., no lot exists, or validation of the check digit.

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

Conciseness5/5

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

A single front-loaded sentence with no filler: the action, supported formats, parser source, and returned fields each earn their place. Nothing is repeated from the title or schema.

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?

For a one-parameter, read-only tool with no output schema, the description effectively documents return values by naming the four extracted components, and the annotations cover safety. The remaining gap is error/partial-parse behavior, which an agent would need when a scan is truncated or uses an unsupported format.

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% and the schema includes a concrete example with AI (01)/(17)/(10)/(21) qualifiers plus a minLength constraint, so the parameter is already well documented. The description adds no syntax or format guidance for the udi field beyond what the schema provides, making the baseline 3 appropriate.

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?

States a specific verb ('Parse') and resource ('Unique Device Identifier (UDI) string'), names the supported symbologies (GS1, HIBCC, ICCBBA), the parser used (AccessGUDID), and the extracted components (DI, expiration date, lot, serial). This makes it clearly a string-decomposition tool, though it never explicitly contrasts itself with lookup_device_by_di, which is the natural next step after obtaining a DI.

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?

Usage is only implied: an agent can infer it should call this when holding a raw barcode string rather than a DI. There is no explicit when-to-use, when-not-to-use, or pointer to lookup_device_by_di as the follow-up, and no statement about what happens with a combined human-readable + barcode payload.

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