Skip to main content
Glama

Count clips

count_clips
Read-onlyIdempotent

Count sequence clips without listing them: get video/audio totals, per-track stats, and source usage to see which sources are used often or which tracks are empty.

Instructions

Count the clips of a sequence without listing them: totals for video and audio, per track (clip_count, disabled_count and total_duration in seconds), and per source project item (how many timeline clips use it, most used first). Use it to see which sources are used most or which tracks are empty.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "count_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add output behavior — which it does by enumerating the aggregate fields (clip_count, disabled_count, total_duration in seconds) and stating the per-source ordering is "most used first." Since there is no output schema, this return-value disclosure is genuinely load-bearing; what's missing is any note on cost or performance for large sequences.

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?

Two sentences, front-loaded with the core action and followed by the return-value detail and the use case — a sensible ordering with no filler. The middle parenthetical is dense but every item in it is substantive, so it earns its length; only minor trimming would be possible.

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

Completeness4/5

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

For a zero-required-parameter read-only counting tool with full schema coverage and no output schema, the description covers the essential ground by describing what the counts contain and their ordering. It leaves open whether disabled clips are excluded from clip_count and how durations are aggregated, which a caller might reasonably want to know.

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%, and the schema already explains that sequence_id comes from list_sequences, that omitting it uses the active sequence, and that sequence_name only applies when no id is given. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The definition opens with a specific verb and resource ("Count the clips of a sequence") and immediately scopes it against the obvious sibling by saying "without listing them," which separates it from list_clips and list_track_clips. The parenthetical breakdown of what gets counted (video/audio totals, per-track metrics, per-source usage) makes the tool's output shape unambiguous.

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

Usage Guidelines4/5

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

The final sentence gives concrete selection guidance: "Use it to see which sources are used most or which tracks are empty," which tells an agent the analytical questions this tool answers. It doesn't explicitly name a fallback tool or state when-not to use it, so it falls short of a 5, but the contrast with listing tools is clear.

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