FDA device adverse events (MAUDE)
GET /api/device-adverse-eventsSummarize FDA medical device adverse event reports (openFDA MAUDE) for a device name, brand, product code or manufacturer: total matching reports, counts by event type (death, injury, malfunction)...
Details
Summarize FDA medical device adverse event reports (openFDA MAUDE) for a device name, brand, product code or manufacturer: total matching reports, counts by event type (death, injury, malfunction), the most reported device problems, and the newest reports with date, event type, device, manufacturer, problems and a short excerpt of the event description. Counts cover every matching report; the report list is a capped sample and says so. Optional since date. Live FDA data, no key.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
device | string | no | Generic device name as reported, e.g. insulin pump Up to 100 characters. The example sends insulin pump. |
brand | string | no | Brand name as reported Up to 100 characters. |
productCode | string | no | Three-letter FDA product code, e.g. LZG Up to 3 characters. |
manufacturer | string | no | Device manufacturer name as reported Up to 100 characters. |
since | string | no | Only reports received on or after this date (YYYY-MM-DD) |
limit | number | no | Newest reports to list, 0-10 (default 5) The example sends 3. |
problems | number | no | Top device problems to rank, 1-25 (default 10) |
Example request
curl -i "https://agent402.tools/api/device-adverse-events?device=insulin+pump&limit=3"
Watch a call get paid
GET /api/device-adverse-events$0.004 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"query": {
"device": "insulin pump",
"brand": null,
"productCode": null,
"manufacturer": null,
"since": null
},
"totalReports": 171622,
"eventTypes": [
{
"eventType": "Malfunction",
"reports": 120000
},
{
"eventType": "Injury",
"reports": 50000
},
{
"eventType": "Death",
"reports": 300
}
],
"topProblems": [
{
"problem": "Unintended Movement",
"reports": 41009
}
],
"recentReports": [
{
"reportNumber": "2032227-2026-01234",
"mdrReportKey": "21000000",
"dateReceived": "2026-10-01",
"dateOfEvent": "2026-09-20",
"eventType": "Malfunction",
"brandName": "EXAMPLE PUMP",
"genericName": "INSULIN PUMP",
"manufacturer": "Example Medical",
"productCode": "LZG",
"deviceClass": "2",
"problems": [
"Unintended Movement"
],
"excerpt": "IT WAS REPORTED THAT THE PUMP ...",
"excerptChars": 640,
"excerptTruncated": true
}
],
"returned": 1,
"matched": 171622,
"complete": false,
"truncated": true,
"maxExcerptChars": 280,
"disclaimer": "openFDA data is unvalidated and is not medical advice; do not rely on it to make decisions regarding medical care.",
"source": "api.fda.gov (openFDA device adverse events, public domain)",
"credit": "Data provided by the U.S. Food and Drug Administration (https://open.fda.gov)."
}| Field | Type | Always present | In the example |
|---|---|---|---|
query | object | yes | 5 fields: device, brand, productCode, manufacturer, since |
totalReports | number | yes | 171622 |
eventTypes | array of objects | yes | 3 items in the example |
topProblems | array of objects | yes | 1 item in the example |
recentReports | array of objects | yes | 1 item in the example |
returned | number | yes | 1 |
matched | number | yes | 171622 |
complete | boolean | yes | false |
truncated | boolean | yes | true |
maxExcerptChars | number | yes | 280 |
disclaimer | string | yes | openFDA data is unvalidated and is not medical advice; do not rely on it to m... |
source | string | yes | api.fda.gov (openFDA device adverse events, public domain) |
credit | string | yes | Data provided by the U.S. Food and Drug Administration (https://open.fda.gov). |
From an MCP client
catalog.call {
"slug": "device-adverse-events",
"params": {
"device": "insulin pump",
"limit": 3
}
}Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.17.2): pays from a wallet or an AGENT402_CREDITS_KEY issued earlier.
Errors and behavior
- Pay $0.004 per call over x402 or MPP. Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - Every field is optional; a rejected input answers 4xx with
error,tool,expected,requiredandexample. - On this route, a call ending in any status of 400 or above is not charged over x402, MPP or a credits key. A Tempo push credential pays before the call; a failure is a refund owed.
- A
POSTwith a JSON body is served as this GET. - An
Idempotency-Keyreplays the first 200 uncharged (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.004" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/device-adverse-events?device=insulin+pump&limit=3");Get a wallet or run npx -y agent402-mcp@0.17.2 wallet new.
The quote (Python)
import base64, json, urllib.error, urllib.request
req = urllib.request.Request("https://agent402.tools/api/device-adverse-events?device=insulin+pump&limit=3", method="GET", headers={})
try:
urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]]) # the price, per chain, in base units