Skip to main content
Glama

segment_episodes

Read-only

Split episodes into moving and idle segments using feature-speed percentiles to label phases and trim dead time.

Instructions

Split episodes into moving/idle segments using feature-speed percentiles. Useful for phase labelling and for trimming dead time.

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": {
      "path": "<path>"
    },
    "name": "segment_episodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
episodeNo
featureNo
min_framesNo

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?

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds the algorithmic basis (percentile thresholds on feature speed) but does not say whether segments are returned inline or written to disk, whether original data is preserved, or how episode/feature selection behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences with the core operation front-loaded and the use case trailing. Nothing is repeated or wasted, and no structural clutter is present.

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?

With no output schema, no parameter descriptions, and a moderately complex operation, the description should clarify what the result looks like and how episode/feature parameters scope the work. It omits both, so an agent can form an intent but lacks enough to call it confidently with correct arguments.

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 coverage is 0% and all four parameters are undocumented in the schema. The description only obliquely hints at the 'feature' parameter through 'feature-speed' and never explains path, episode scoping, or what min_frames controls, leaving most parameter meaning to guesswork.

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?

States a specific verb and resource ('Split episodes into moving/idle segments') plus the mechanism ('feature-speed percentiles'), which no sibling tool replicates. It is clearly distinguishable from validate_dataset or plan_windows, though it never names a sibling explicitly.

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 second sentence gives two downstream use cases (phase labelling, trimming dead time), which implies when the tool is appropriate. However, there is no guidance on when not to use it, no prerequisites, and no mention of alternatives for segmentation-adjacent tasks like plan_windows.

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