SuperAPI AI Directory

legal-mfds-safety

Coding & development

View repository

Updated 10-15 22:09

About this skill

MFDS Medicine·Food Safety Check (Integrated)

We check safety information for medicines and foods through the Ministry of Food and Drug Safety (MFDS) official OpenAPI. It is used for health and F&B commerce product inspection, consumer safety guidance, and checking recall and non-compliance history.

This skill integrates and organizes NomaDamas k-skill's mfds-drug-safety + mfds-food-safety (MIT).

Mandatory interview first — red flag first

If symptoms or medication/consumption situations are mentioned, before stating a conclusion, we must first ask back.

Recommended first question:

  • Who (self/child/pregnant woman/elderly), what and when and how much, foods/alcohol/medicines taken together, current symptoms, underlying conditions/allergies
  • red flag: 호흡곤란, 의식저하, 입술·혀 붓기, 심한 발진, 혈변, 심한 탈수, 심한 복통/고열, 지속되는 구토/흉통

If there is even one red flag, connect immediately to 119, the emergency room, or medical staff rather than API lookupis guided first.

When to use

Medicines:

  • "Can I take this medicine together with this one?"
  • "I'm taking Tylenol, can I also take Pancol?"
  • "I have hives, can I keep taking this medicine?"
  • Check efficacy and precautions with official MFDS medicine information

Foods:

  • "Is it okay to eat this food?" → health functional food ingredient recognition status + inspection non-compliance
  • "Tell me the daily intake of psyllium husk" → functional ingredient recognition status
  • "I ate this gimbap and my stomach hurts; is there a recall history?" → recall and non-compliance list
  • Check new product safety in health/F&B commerce

When not to use

  • Diagnosis, prescription, medication instructions
  • Diagnosis of food poisoning, final determination of permission/prohibition of consumption
  • Emergency situations with red flags or high-risk groups (medical staff first)

Prerequisites

Required user-side secret None. It works as long as there is an internet connection.

  • KSKILL_PROXY_BASE_URL (optional): when using a self-hosted proxy. If left blank, the default hosted https://k-skill-proxy.nomadamas.org is used.
  • Operations side: DATA_GO_KR_API_KEY (medicines + non-compliance), FOODSAFETYKOREA_API_KEY (health functional foods + live recalls) — kept only on the proxy server
  • FOODSAFETYKOREA_API_KEY Issuance: https://www.foodsafetykorea.go.kr Sign up → apply to use OpenAPI. With one key, use all of I-0040, I-0050, I0030, I0490, and I2620

Workflow

A. Medicine safety check

  1. If there are symptoms or medication situations, interview first.
  2. If there is even one red flag, switch immediately to emergency guidance.
  3. If the medicine name is confirmed, /v1/mfds/drug-safety/lookup look up e-drug information and over-the-counter safety medicines with .
  4. Briefly summarize efficacy, usage, precautions, interactions, adverse reactions, and storage method.
  5. For "Can I take them together?", only official interaction wording is the basis. The final judgment is by a pharmacist or medical staff.

B. Food Safety Check

  1. If there are symptoms/consumption circumstances, interview first.
  2. red flag → immediate emergency guidance.
  3. "Can I eat this?" flow:
    • /v1/mfds/food-safety/product-report → Health functional food item manufacturing report details (raw materials, functionality, consumption precautions, standards/specifications, including notified-type ingredients)
    • /v1/mfds/food-safety/health-food-ingredient → Functional ingredient recognition status (individually recognized type daily intake, precautions)
    • /v1/mfds/food-safety/inspection-fail → Domestic inspection non-compliance history
    • /v1/mfds/food-safety/search → Recall/non-compliance public list
  4. Briefly summarize product name, company name, functionality, intake amount, precautions, and reason for non-compliance. We do not determine whether it is safe to eat.
  5. If the proxy FOODSAFETYKOREA_API_KEY operates without it, check via warnings that results may be based on a sample feed.

Endpoints

Category Endpoint
Pharmaceuticals integrated GET /v1/mfds/drug-safety/lookup
Food recall/non-compliance GET /v1/mfds/food-safety/search
Health functional food ingredients GET /v1/mfds/food-safety/health-food-ingredient
Health functional food item manufacturing GET /v1/mfds/food-safety/product-report
Inspection non-compliance GET /v1/mfds/food-safety/inspection-fail

Execution example (curl)

base URL은 KSKILL_PROXY_BASE_URLIf this is configured, use that value; otherwise use the default hosted https://k-skill-proxy.nomadamas.org.

# 1) 의약품 통합 조회 — 제품명으로 e약은요·안전상비의약품 확인
curl -s "https://k-skill-proxy.nomadamas.org/v1/mfds/drug-safety/lookup?q=타이레놀"

# 2) 건강기능식품 기능성 원료 인정현황 — 원료명으로 1일 섭취량·주의사항 확인
curl -s "https://k-skill-proxy.nomadamas.org/v1/mfds/food-safety/health-food-ingredient?q=차전자피"

# 3) 식품 회수·부적합 공개 목록 검색 — 제품명/업체명으로 회수 이력 확인
curl -s "https://k-skill-proxy.nomadamas.org/v1/mfds/food-safety/search?q=김밥"

The response is JSON, and if the proxy FOODSAFETYKOREA_API_KEY operates without it, results may be based on a sample feed (check thewarnings field).

Official surfaces

  • e-drug information: https://apis.data.go.kr/1471000/DrbEasyDrugInfoService/getDrbEasyDrugList
  • Safety emergency medicines: https://apis.data.go.kr/1471000/SafeStadDrugService/getSafeStadDrugInq
  • Food Safety Korea (I-0040/I-0050/I0030/I0490/I2620): https://www.foodsafetykorea.go.kr/api/openApiInfo.do
  • Non-compliant foods: https://apis.data.go.kr/1471000/PrsecImproptFoodInfoService03/getPrsecImproptFoodList01

Response policy

  • This skill does diagnosis, prescription, or dosage instructions.
  • Summarize based only on efficacy, precautions, interactions, and functional claims found in official documents.
  • If interaction wording is ambiguous or there are red flags, refer to a pharmacist or doctor for consultation.
  • Questions with symptoms are not answered immediately without an interview.
  • If recall/non-compliance results are from a sample feed, state that fact.

Related skill chaining

  • before: moai-seller:commerce-integrated-strategy — Safety review during health/F&B new product planning
  • after: moai-seller:commerce-detail-page-copy — Detail page copy reflecting safety information
  • after: moai-seller:commerce-product-detail — Writing safety guidance content

Done when

  • Asked back first about symptoms or medication/consumption circumstances.
  • Checked whether there are red flags.
  • Organized official endpoint query results as JSON through the proxy route.
  • Provided summaries for pharmaceuticals: product name, company name, efficacy, precautions, interactions / for foods: product name, company name, functionality, intake amount, precautions, reason for non-compliance.