Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_oee_calculate

Read-onlyIdempotent

Calculate OEE from equipment runtime logs and report the lowest factor plus relevant six-big-losses categories to guide causal root cause analysis.

Instructions

Pro+ plan required. Availability x Performance x Quality from equipment runtime logs. Also reports which of the three factors came in lowest and which of the six-big-losses categories are relevant to it -- feed that factor into rca_oee_loss_rca for causal analysis.

Args: params (OEECalculateInput): token, client_id, planned_production_time, run_time, ideal_cycle_time, total_count, good_count

Returns: str: JSON with availability, performance, quality, oee, lowest_factor, relevant_loss_categories, or a bad_input error

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": {
      "params": "<params>"
    },
    "name": "rca_oee_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds useful context beyond them: a plan-tier gate (Pro+) and the fact that a bad_input error is returned on invalid inputs, which is meaningful failure behavior for numeric inputs constrained to be positive.

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

Conciseness4/5

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

The first two sentences are front-loaded with the formula and the follow-up action, which is exactly the priority order an agent needs. The trailing Args/Returns blocks are docstring boilerplate that largely duplicates structured fields, a minor waste in an otherwise efficient definition.

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

Completeness4/5

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

A calculation tool of moderate complexity; the description supplies the formula, the required plan, the output breakdown, and the error mode. Since an output schema exists, the Returns section is somewhat redundant, but nothing an agent needs in order to call it correctly is missing.

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?

The Args section only repeats the parameter names from OEECalculateInput without adding meaning, syntax, or units. The real semantics (run_time = planned minus downtime, good_count = units meeting standards, exclusiveMinimum constraints) live entirely in the schema properties, so the description contributes nothing beyond them.

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

Purpose5/5

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

States a specific verb and resource plus the exact computation: 'Availability x Performance x Quality from equipment runtime logs.' It also names the derived outputs (lowest_factor, relevant_loss_categories), so an agent knows precisely what comes back without opening the schema.

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

Usage Guidelines4/5

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

Gives a concrete next step – 'feed that factor into rca_oee_loss_rca for causal analysis' – which routes the agent to the correct sibling, and states the 'Pro+ plan required' prerequisite up front. It stops short of saying when NOT to use this (e.g., prefer an existing stored result or a batch tool), so it is strong but not fully exclusive.

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