Skip to main content
Glama

calculate_performance

Calculate production line performance from ideal cycle time, unit count, and run time, returning results as a fraction and percentage for a specified date range.

Instructions

Calculate performance ((ideal cycle × count) ÷ run time).

Args: line: Production line label. start_date: ISO-8601 start. end_date: ISO-8601 end. run_time_minutes: Actual running time. total_count: Total units produced. ideal_cycle_seconds: Ideal seconds per unit.

Returns: Performance 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_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes
end_dateYes
start_dateYes
total_countNo
run_time_minutesNo
ideal_cycle_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the computation formula and the return shape (fraction and percentage), which is genuinely useful. It says nothing about division-by-zero handling when run_time_minutes is 0, what happens with null metric inputs, or how the date range interacts with the supplied counts, leaving real behavioral gaps for a math tool.

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 formula is front-loaded and the Args/Returns structure is easy to scan with no filler prose. There is mild redundancy between the symbolic formula (ideal cycle × count ÷ run time) and the fully spelled-out parameter names below it, which forces the reader to do a small mapping.

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 a six-parameter tool with no annotations and 0% schema coverage, the description covers the inputs and formula adequately, and an output schema exists so return values need not be spelled out. It is still incomplete on the optional-parameter contract and error behavior, which matter for a numeric computation an agent may invoke with partial inputs.

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

Parameters4/5

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

Schema description coverage is 0%, so the Args block is doing all the work, and it documents all six parameters with meaning, notably the ISO-8601 format for start_date/end_date and the units for run_time_minutes and ideal_cycle_seconds. It falls short of a 5 by not explaining the roles of the nullable metric parameters or what the line label is used for.

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 gives a specific verb (calculate) plus the exact formula, so an agent knows precisely what is computed: performance = (ideal cycle × count) ÷ run time. It does not distinguish this from sibling calculators such as gateway_performance, calculate_oee, or calculate_availability, leaving the agent to guess which performance entry point fits.

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 guidance on when to use this tool versus the sibling calculate_* or gateway_performance tools. It also never explains that the three metric inputs (total_count, run_time_minutes, ideal_cycle_seconds) are optional in the schema yet required by the formula, so the agent gets no signal about what to do when they are omitted.

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