Skip to main content
Glama
Hybrid Recursive Ladder

Hybrid Recursive Ladder

Sum time series

ladder_sum
Idempotent

Sum time-series values over a date range across ThingsBoard or PostgreSQL sources, using segmented requests and optional local caching for verifiable results.

Instructions

Sum time series over a range.

    ``series`` items use ``{"entity": "...", "key": "...", "name": "..."}``
    (``device_id``/``device_name`` are accepted as aliases).  ``mode`` is
    ``tb`` (source only), ``mixed`` (local first) or ``local`` (offline).
    With no series, the built-in demo series are used.
    

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": {
      "series": "<series>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "ladder_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
modeNotb
startYes
finestNominute
seriesYes
materializeNo
verify_on_readNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, idempotentHint=true and destructiveHint=false, so safety is largely covered. The description usefully discloses the fallback behavior that built-in demo series are used when no series are supplied. It does not explain that a write/caching path exists (consistent with readOnlyHint=false), nor what the open-world source access implies.

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?

Three short, front-loaded statements: purpose first, then series shape, then mode values, then the empty-input default. No filler, and the most decision-relevant facts come first, though the ordering of the aliases aside could be tidier.

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

Completeness2/5

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

For a 7-parameter tool with zero schema description coverage, the description covers only series and mode. An output schema exists so return values need no explanation, but the missing semantics for start/end/finest/materialize/verify_on_read leave an agent guessing on most of the surface area.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description is expected to compensate. It documents the series item shape and its device_id/device_name aliases and enumerates the mode values, which is genuinely valuable, but start, end, finest, materialize and verify_on_read are left entirely unexplained, including no date format for start/end or meaning for materialize.

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?

"Sum time series over a range" gives a specific verb (sum) and resource (time series) with a scope qualifier. It does not differentiate itself from siblings like ladder_calc or ladder_decompose, so an agent cannot tell from the text alone which of those to pick when both could aggregate data.

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?

The mode paragraph implicitly conveys source-vs-local usage (tb = source only, mixed = local first, local = offline), which hints at when a given backend is appropriate. However, there is no explicit when-to-use guidance relative to ladder_calc or ladder_decompose, and no prerequisites or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.