Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Calc Cylinder Speed

calc_cylinder_speed

Calculate hydraulic cylinder extend and retract speeds from oil flow and bore/rod areas, plus optional stroke time and return-line flow for sizing valves and lines.

Instructions

Extend and retract speed of a single-rod hydraulic cylinder from the oil flow into it (v = Q/A), with the stroke time if the stroke is given and the oil flow returning from the other side (to size the return line and valves).

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": {
      "bore": "<bore>",
      "flow_rate": "<flow_rate>"
    },
    "name": "calc_cylinder_speed"
  }
}

Input Schema

NameRequiredDescriptionDefault
rodNoRod diameter with unit, e.g. '50 mm'. Empty string = no rod (retract area = bore area).
boreYesCylinder bore (piston) diameter with unit, e.g. '100 mm'
strokeNoOptional stroke length, e.g. '500 mm'. Given: stroke times are also returned.
flow_rateYesOil flow fed to the cylinder with unit, e.g. '60 L/min'
speed_unitNoUnit for the speeds, e.g. 'mm/s', 'm/s', 'in/s'mm/s

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the physical model (v = Q/A), the conditional behavior that stroke times are only returned when stroke is supplied, and that a return-side flow is produced for sizing return lines and valves. It does not state simplifying assumptions (incompressible fluid, steady flow) or what happens on invalid geometry such as rod larger than bore, leaving a small gap.

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?

One dense but well-ordered sentence front-loads the primary output and then appends the conditional extras, with no filler. The parenthetical formula earns its place by removing ambiguity about the calculation, though the trailing clause about sizing the return line is slightly tangential.

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

Completeness5/5

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

An output schema exists, so return values need not be spelled out in prose; the description still flags the extra stroke-time and return-flow outputs. Combined with a fully documented 5-parameter schema, an agent has everything needed to select and invoke it correctly.

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 100%, so every parameter is already documented with units and examples, which sets the baseline at 3. The description adds only the derived relationships (flow in, return flow out, stroke enabling stroke time) and nothing about unit conversion or boundary conditions beyond the schema.

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 names a specific verb-and-resource pair (extend/retract speed of a single-rod hydraulic cylinder) and even gives the governing relation v = Q/A, so the computation is unambiguous. It also enumerates secondary outputs (stroke time, return-side flow), which further separates it from a force-sizing tool like calc_cylinder_force. It never explicitly names that sibling, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the tool for cylinder velocity/sizing, and the phrase 'if the stroke is given' tells it when stroke-time results appear. There is no explicit when-not guidance or named alternative for related tasks such as force or pressure-drop calculations, so the routing signal is only moderate.

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