一键导入
fh-usage
Reference guide for Function Health MCP data model, auth flow, and tool patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reference guide for Function Health MCP data model, auth flow, and tool patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | fh-usage |
| description | Reference guide for Function Health MCP data model, auth flow, and tool patterns |
| user-invocable | false |
Background context for working with Function Health lab data. This skill is loaded automatically to help you use the FH tools effectively.
Function Health runs comprehensive lab panels requiring 1-3 lab visits over several weeks. All visits within one test round share the same requisitionId.
2026-01-20/)round-meta.json in each directory contains: requisitionId, visitDates, resultCountQuery tools read from ~/.function-health/exports/ — they never hit the API:
fh_results, fh_biomarker, fh_summary, fh_categories, fh_changes, fh_recommendations, fh_reportOnly two tools make API calls:
fh_sync — full data pull, writes to local storefh_check — lightweight requisition count checkLogin is CLI-only (password requires hidden terminal input):
npx -y -p function-health-mcp function-health login
The fh_login MCP tool only checks auth status and directs users to the CLI command. Never attempt to collect credentials through the MCP tool.
Credentials are stored at ~/.function-health/credentials.json (0o600 permissions). Tokens auto-refresh via Firebase JWT. If the refresh token is revoked, the server falls back to re-login using FH_EMAIL and FH_PASSWORD (from environment variables or ~/lifeos/.env / ~/.env files). Check authHint in fh_status output for guidance when auth fails.
fh_results accepts status ("in_range" | "out_of_range"), category, biomarker, and visit filters.fh_changes accepts from and to date strings; defaults to comparing the two most recent rounds.fh_sync has a 1-hour cooldown. Pass force: true to override.When fh_sync detects changes between rounds, it writes notification files to ~/.function-health/changes/:
fh_notifications reads pending notifications (call without acknowledge)fh_notifications with acknowledge: true clears themfh_status — confirms auth, data availability, and last sync timefh_status shows hasData: false when exports are empty/results-report — the biomarkerResultsRecord field, NOT the /results endpoint (which returns PDFs)fh_changes compares all markers across entire rounds, not individual visitsfh_notifications first, present changes, then acknowledge