Skip to main content
Glama

Add a sync point at a word + timestamp

add_sync_point

Insert one sync marker on a clip's transcript.

Use this when:

  • The user is explicit about WHERE the camera should pause / cut (e.g. "sync the word 'submit' to 4.2s of the demo").

  • auto_sync ran but missed a step you care about.

How matching works:

  • word: case-insensitive; punctuation and apostrophe style don't matter ("here's" matches "Here’s,").

  • occurrence: 1-indexed, to pin a repeated word by count. Omit it and the occurrence spoken nearest timestamp_seconds is used (the first one when the clip has no word timings yet); the reply says which (occurrence, occurrence_chosen_by).

  • timestamp_seconds: clip-relative seconds, measured from the clip's OWN start (a split clip's right half starts at 0 too). The server maps it to original-recording seconds: through the TTS retime when the clip has run TTS, plus the clip's source in-point. The reply's timestamp_seconds_original is that recording second and source_start_seconds the in-point; mapped_from_generated is true only when a TTS retime actually moved the value.

Constraints: the clip MUST be a video clip with a source recording; a slide or blank clip answers not_a_video_clip. The transcript must already contain the word — if not, you'll get word_not_found with a 200-char excerpt of the transcript and close_matches to retry with. The reply's order is the new marker's number: the N of its <SYNC_MARKER N> in voiceover_text, what get_clip(select:['sync_points']) lists and what remove_sync_point takes. warnings flags a marker already on that word (stacked markers leave no speech between them: remove one or pick another word) and a timestamp outside the clip's source range.

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>",
      "word": "<word>",
      "timestamp_seconds": "<timestamp_seconds>"
    },
    "name": "add_sync_point"
  }
}

Input Schema

NameRequiredDescriptionDefault
wordYesTarget word (case-insensitive; trailing punctuation is stripped).
clip_idNoClip ID (preferred). If omitted, clip_index is used.
clip_indexNoZero-based clip index. Ignored if clip_id is provided.
occurrenceNo1-indexed match number when the word repeats. Omit to use the occurrence spoken nearest timestamp_seconds.
project_idYesProject ID.
sync_point_nameNoOptional label (e.g. 'Click submit'). Defaults to 'Sync point N' using the next order number.
timestamp_secondsYesClip-relative timestamp in seconds. Auto-mapped to original-recording seconds when the clip has generated_timestamps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / occurrence / default
      Removed value: -1
    • changedInput schema / properties / occurrence / description
      Previous value: -"1-indexed match number when the word repeats. Defaults to 1 (first occurrence)."New value: +"1-indexed match number when the word repeats. Omit to use the occurrence spoken nearest timestamp_seconds."
  2. Changed4 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "word",
      -  "timestamp_seconds",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "project_id",
      +  "word",
      +  "timestamp_seconds"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "word",
      -  "timestamp_seconds"
      -]New value: +[
      +  "project_id",
      +  "word",
      +  "timestamp_seconds",
      +  "context",
      +  "llm_model"
      +]
  4. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / clip_index / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / occurrence / maximum
      Added value: +9007199254740991
  5. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the safe-mutation profile (readOnlyHint=false, destructiveHint=false), and the description goes far beyond: it documents constraint failures (`not_a_video_clip`, `word_not_found` with excerpt and `close_matches`), the meaning of reply fields (`order`, `occurrence_chosen_by`, `timestamp_seconds_original`, `mapped_from_generated`), and a stacking warning that leaves no speech between markers. This is exactly the mutation-side context annotations cannot supply.

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-loaded with purpose then headed sections ("Use this when", "How matching works", "Constraints") so an agent can stop reading early. It is dense — the `order` sentence and the TTS-mapping sentence pack several facts into one line — but nearly every clause carries actionable information.

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

Completeness5/5

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

There is no output schema, so the description carries the full return-value burden, and it does: it names the response fields an agent needs (`order`, `occurrence`, `occurrence_chosen_by`, `timestamp_seconds_original`, `source_start_seconds`, `mapped_from_generated`, `warnings`). For a 7-parameter mutation tool, nothing needed to call or interpret it correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, so baseline is 3, but the description adds genuine meaning: it explains `occurrence` as 1-indexed pinning and the fallback heuristic when omitted (nearest to timestamp, first when no timings exist), and clarifies that `timestamp_seconds` is clip-relative from the clip's own start — including the split-clip right-half edge case — which the schema does not state.

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?

"Insert one sync marker on a clip's transcript" gives a specific verb and resource, and the surrounding text makes clear this is a manual, single-marker operation distinct from bulk `auto_sync` and from `remove_sync_point`. An agent can place it among siblings without opening any schema.

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?

An explicit "Use this when" block names two concrete conditions (user-specified word+time, or `auto_sync` missed a step), which implicitly routes bulk cases to `auto_sync`. The `word_not_found` path even tells the agent to retry with `close_matches`, turning a failure mode into guidance.

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.