Skip to main content
Glama

Quote the clipping cost (Horizon Units)

estimate_hu
Idempotent

Use this when the user wants to know what clipping a video costs before it runs: "how much will it take to clip this stream". Returns the Horizon Units (HU) find_clips, find_moments or clip_range would spend. Show the number, wait for the user's approval, then pass it as max_hu. Not for: starting the job or pricing an edit (edits cost no HU). Free.

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": {
      "project_id": "<project_id>"
    },
    "name": "estimate_hu"
  }
}

Input Schema

NameRequiredDescriptionDefault
range_endNoEnd in seconds; 0 = whole video
project_idYesProject id from list_projects or a finished import
range_startNoStart in seconds; 0 and 0 = whole video
request_keyNoOptional; leave empty

Output Schema

NameRequiredDescriptionDefault
huYes
processed_minutesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / range_end / default
      Removed value: -0
    • removedInput schema / properties / range_start / default
      Removed value: -0
    • removedInput schema / properties / request_key / default
      Removed value: -""
  2. Changed9 schema fields changed
    • addedInput schema / properties / project_id / description
      Added value: +"Project id from list_projects or a finished import"
    • removedInput schema / properties / project_id / title
      Removed value: -"Project Id"
    • addedInput schema / properties / range_end / description
      Added value: +"End in seconds; 0 = whole video"
    • removedInput schema / properties / range_end / title
      Removed value: -"Range End"
    • addedInput schema / properties / range_start / description
      Added value: +"Start in seconds; 0 and 0 = whole video"
    • removedInput schema / properties / range_start / title
      Removed value: -"Range Start"
    • addedInput schema / properties / request_key / description
      Added value: +"Optional; leave empty"
    • removedInput schema / properties / request_key / title
      Removed value: -"Request Key"
    • removedInput schema / title
      Removed value: -"estimate_huArguments"
  3. Changed2 schema fields changed
    • addedInput schema / properties / request_key / default
      Added value: +""
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "request_key"
      -]New value: +[
      +  "project_id"
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the call is free, edits cost no HU, and the returned value is meant to be echoed back as max_hu after user approval. There is mild tension between "Free" and readOnlyHint=false, but that reads as a state/telemetry distinction rather than a contradiction; the description does not say what happens if the user never approves or whether a quote expires.

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?

Front-loads the trigger condition, then the return value, then the workflow, then the exclusions — a sensible order with little waste. Minor blemish: a stray line break inside the quoted user example and the trailing one-word "Free." sentence, which is terse to the point of ambiguity.

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 four-parameter, output-schema-backed estimator this covers purpose, exclusions and the approval handoff, so an agent can call it correctly. The remaining gap is whether the quoted HU figure must be regenerated if the range changes and how long the quote stays valid.

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%, so the schema already documents project_id, range_start, range_end and request_key; baseline 3 applies. The description adds no mapping between this tool's range params and the identical range the following find_clips/clip_range call will use, which is the one piece of semantic guidance that would matter here.

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?

States a specific verb and resource: quote the Horizon Units that clipping would spend before the job runs. It names the three sibling operations whose cost is being estimated (find_clips, find_moments, clip_range), so an agent can distinguish this estimator from the actual clipping tools.

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

Usage Guidelines5/5

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

Gives an explicit trigger with a sample user utterance ("how much will it take to clip this stream"), an explicit exclusion ("Not for: starting the job or pricing an edit"), and the downstream workflow: show the number, wait for approval, then pass it as max_hu. When-to-use, when-not-to-use and the alternative path are all present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources