The Thyroid-Stimulating Hormone (TSH) test measures the level of TSH in the blood. TSH is produced by the pituitary gland and regulates the production of thyroid hormones (T3 and T4) by the thyroid gland. This test is commonly used to assess thyroid function and diagnose thyroid disorders such as hypothyroidism and hyperthyroidism.