calculate_quality
Compute production quality as good units divided by total units for a line and date range, returning the result as a fraction and percentage.
Instructions
Calculate quality (good count ÷ total count).
Args: line: Production line label. start_date: ISO-8601 start. end_date: ISO-8601 end. total_count: Total units produced. good_count: Units that passed quality checks.
Returns: Quality as a fraction and percentage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"line": "<line>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "calculate_quality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| end_date | Yes | ||
| good_count | No | ||
| start_date | Yes | ||
| total_count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||