Renal Transtubular Potassium Gradient (TTKG) Skill
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Renal Transtubular Potassium Gradient (TTKG) Skill
Renal Transtubular Potassium Gradient (TTKG) and Distal Tubular Secretion Evaluator based on nephrological electrolyte physiology.
flowchart TD
A[Urine & Plasma Potassium + Osmolality] --> B[Check Validity: U_osm >= P_osm]
B --> C[Compute TTKG = U_K * P_osm / P_K * U_osm]
C --> D{Serum Potassium Level}
D -- Hyperkalemia > 5.0 --> E{TTKG > 7.0?}
E -- Yes --> F[Appropriate Aldosterone Secretion]
E -- No --> G[Hypoaldosteronism / Type IV RTA]
D -- Hypokalemia < 3.5 --> H{TTKG < 3.0?}
H -- Yes --> I[Appropriate Extra-Renal K Loss]
H -- No --> J[Inappropriate Renal K Wasting]Features
Zero PIP Dependencies: Implemented strictly with Python Standard Library (
math,json,sys,typing).Physiological Verification: Automatically validates urine-to-plasma osmolality ratio and distal sodium delivery conditions.
Electrolyte Precision: Rigorous algorithmic discrimination between mineralocorticoid deficiency, excess, and extra-renal losses.
Dual Architecture: Native Python import and Model Context Protocol (MCP) JSON-RPC 2.0 stdio server.
Related MCP server: Personal Agent Hydration Osmolality Electrolyte MCP Server
Quickstart
python example_usage.pyLicense
Apache-2.0
Related MCP Connectors
Cardiopulmonary exercise test (CPET) analysis: ventilatory thresholds, metrics and substrate use.
Patient, meal plan, prescription, chart and anthropometry management for dietitians.
Deterministic peptide reconstitution and dosing math, so assistants compute it instead of guessing.
WHO ICF codes: lookup, search, hierarchy, qualifiers, and 11 scored clinical assessment instruments.
Related MCP Servers
- FlicenseAqualityBmaintenanceEnables pediatric CKD nutrition assessment by calculating PRNT energy/protein targets, evaluating dietary intake against those targets, and screening for PEW risk, with support for dialysis, vegetarian diets, and edema corrections.5-
- AlicenseNot gradedqualityBmaintenanceEnables estimation of sweat rate and sodium loss, modeling of subclinical dehydration cognitive deficits, and generation of personalized hourly fluid and electrolyte replenishment schedules.7MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables estimating sweat rate and sodium loss, modeling subclinical dehydration cognitive deficits, and generating personalized hourly fluid and electrolyte replenishment schedules.7MIT
- FlicenseNot gradedqualityBmaintenanceEnables calculation of fractional sodium and urea excretion from serum and urine chemistries, automatically selecting the appropriate index during diuretic therapy and classifying renal hydration status.7-