Skip to content

get_task_status

Check status and retrieve results of LCA calculations.

Purpose

Monitor calculation progress and get environmental impact results when complete.

Parameters

Parameter Type Required Description
task_id string Yes Task ID from calculate_standard or calculate_custom

Returns

When SUCCESS:

{
  "task_id": "task_abc123",
  "status": "SUCCESS",
  "result": {
    "lca_score": 45.2,
    "unit": "kg CO2-eq",
    "method_specification": "ecoinvent-3.11 > IPCC 2013...",
    "activity_details": {...},
    "calculation_time": 12.5
  }
}

When PENDING: Returns progress percentage if available.

When FAILURE: Returns error message.

Example Usage

Prompt:

Check the status of calculation task_abc123

Tips

  • Call repeatedly until status = "SUCCESS"
  • Typical wait: 10-30 seconds
  • Store lca_score and unit for reporting