Skip to main content
Glama

interval_merge

Merge overlapping [start, end] intervals, then report gaps, coverage, and the consolidated interval set.

Instructions

Merge overlapping intervals and report gaps, coverage, and the consolidated set.

Input Schema

NameRequiredDescriptionDefault
intervalsYesIntervals as [start, end] pairs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

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 bears the full burden, and it does disclose that the operation both merges and derives gaps and coverage rather than merely merging. However, it omits behavioral specifics such as handling of unsorted input, touching vs overlapping endpoints, or empty input, and gives no sense of the response shape.

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?

A single tight sentence with the action and resource front-loaded ahead of the output list. No filler, though it is arguably under-specified rather than optimally concise.

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 one-parameter computational tool with no output schema and no annotations, the description covers the operation and names the three outputs, which is reasonable. But it leaves 'coverage' and 'gaps' undefined and says nothing about ordering assumptions or return format, so an agent still has gaps to fill.

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 coverage is 100%, and the schema already documents the single parameter as '[start, end] pairs'. The description adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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?

Specific verb (merge) plus resource (intervals) and a concrete enumeration of outputs (gaps, coverage, consolidated set). It is unambiguous what the tool does, though it does not distinguish itself from any specific sibling, since none in the list compete for interval merging.

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 stated when-to-use, precondition, or alternative. The description only says what the tool does, leaving the agent to infer that it is appropriate whenever intervals need consolidating.

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