Skip to main content
Glama

get_downtime

Read downtime events for a production line across an ISO-8601 date range, returning historian rows for the state tag or a hint when no tag is configured.

Instructions

Read downtime events for a line.

Args: line: Production line label. start_date: ISO-8601 start. end_date: ISO-8601 end. state_tag: Tag path holding machine state.

Returns: Historian rows for the state tag, or a hint when no tag is configured.

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": "get_downtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYes
end_dateYes
state_tagNo
start_dateYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 burden; it does disclose the useful fallback behavior of returning "a hint when no tag is configured" and the shape of the return (historian rows). It stays silent on permissions, row limits/pagination, and how downtime is derived from the state tag, which matters for a data-extraction 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 definition is front-loaded with a single purpose sentence and then organized into Args and Returns sections, with no filler. The Args lines mostly restate parameter names, but the date-format and state-tag notes earn their 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 a four-parameter read tool with no annotations, the description covers purpose, parameter formats, and the no-tag edge case, and an output schema exists so return details need not be expanded. It is still incomplete on prerequisites (does a state tag need configuring first?), access requirements, and volume of rows returned.

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 supply parameter meaning, and it does give one line per parameter, notably adding ISO-8601 format for the date bounds and clarifying that state_tag is a tag path holding machine state. It does not explain that state_tag is optional and defaults to null, nor what the fallback resolution is when it is omitted.

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?

"Read downtime events for a line" gives a specific verb and resource, and the Returns section clarifies it materializes historian rows for a machine-state tag. The purpose is understandable without opening the schema, though it does not explicitly distinguish itself from siblings like get_historian or get_machine_runtime.

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 or when-not-to-use guidance, and no mention of alternatives such as get_historian or calculate_availability, despite these appearing in the sibling list. The only contextual hint is that state_tag holds machine state, implying a prerequisite rather than stating one.

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