Skip to main content
Glama

calculate_availability

Calculates production line availability as run time divided by planned time for a date range, returning both a fraction and percentage.

Instructions

Calculate availability (run time ÷ planned time).

Args: line: Production line label. start_date: ISO-8601 start. end_date: ISO-8601 end. planned_time_minutes: Scheduled production time. run_time_minutes: Actual running time.

Returns: Availability 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_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes
end_dateYes
start_dateYes
run_time_minutesNo
planned_time_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose the computation and the return shape (fraction and percentage). However, it is silent on important behavior for a calculation tool: what happens when planned_time_minutes is zero or omitted, and whether run_time_minutes/planned_time_minutes are auto-derived when left null despite being optional.

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 in a single sentence and the Args/Returns blocks are compact and scannable. The Returns block partly duplicates the existing output schema and the Args lines largely restate parameter names, but nothing is bloated.

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?

Since an output schema exists, the return explanation is optional and its redundancy is harmless. What leaves the definition incomplete for a 5-parameter calculation tool is the unaddressed null/omitted handling of run_time_minutes and planned_time_minutes and the implied division-by-zero edge case.

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 description must compensate, and it does give each of the five parameters a meaningful label plus a format the schema lacks ('ISO-8601 start/end', 'Actual running time'). The gap is that the two nullable, default-null parameters are never explained in terms of fallback behavior when omitted.

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?

The description names a specific verb and resource and, crucially, states the formula ('run time ÷ planned time'), which is what separates it from siblings like calculate_oee, calculate_performance and calculate_quality. An agent can identify exactly which metric this computes 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 Guidelines2/5

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

There is no when-to-use guidance, no mention of when to prefer calculate_oee/calculate_performance instead, and no prerequisites or exclusions. The Args block documents parameters, not usage, so the agent must infer context from the formula alone.

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