Skip to main content
Glama

calculate_oee

Calculates OEE from availability, performance, and quality inputs for a production line over a date range, returning each factor as a ratio and percentage.

Instructions

Calculate OEE = Availability × Performance × Quality.

Args: line: Production line label (echoed in the result). start_date: ISO-8601 window start. end_date: ISO-8601 window end. planned_time_minutes: Scheduled production time. run_time_minutes: Actual running time. total_count: Total units produced. good_count: Units that passed quality checks. ideal_cycle_seconds: Ideal seconds per unit.

Returns: Availability, performance, quality and OEE (0–1 and percentages).

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_oee"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes
end_dateYes
good_countNo
start_dateYes
total_countNo
run_time_minutesNo
ideal_cycle_secondsNo
planned_time_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does confirm that the line label is echoed in the result and that output includes all four metrics as both fractions and percentages, which is useful behavioral context, but it says nothing about permissions, error conditions, or what happens when the optional inputs are null.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The formula is correctly front-loaded, but the Args block and Returns block are raw docstring formatting that spend space restating parameter names. The Returns section partly duplicates the existing output schema, so not every line earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter tool with no annotations, the description covers the inputs and the general output shape, which is a reasonable minimum. It still omits how null optionals are handled, whether any inputs are interdependent, and the conditions under which the calculation fails, which an agent would need before calling it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does list all eight parameters with a short gloss for each. However, several glosses largely restate the parameter names (run_time_minutes as 'Actual running time', planned_time_minutes as 'Scheduled production time'), and nothing explains how the optional count and time parameters interact, such as which subset is needed to derive each component.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-and-resource statement plus the exact formula (Availability x Performance x Quality), which makes the composite nature of the calculation unambiguous. It does not explicitly contrast with the sibling tools calculate_availability, calculate_performance, and calculate_quality, so the agent must infer that this tool combines them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance and no mention of the alternatives, even though the sibling names calculate_availability, calculate_performance, and calculate_quality strongly suggest overlapping functionality. Usage is only implied by the formula, leaving the agent to guess whether this tool supersedes or complements the individual metric tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools