Skip to main content
Glama

PostReach

Give a video its script and captions

set_video_lines
Idempotent

Gives a video its script (voice-over lines) and captions (words burnt into the picture), each with when it's spoken or shows, so a reviewer can fix a word in place instead of describing it. Call it for each video you made, once it's in PostReach: after finish_upload, or with the media_id that create_draft or open_review shows. Every time is in milliseconds from the video's start (a cover's at_seconds is the one place that's seconds). Give exactly what the video says and shows: PostReach never listens to a video to find them. A call replaces what the video had, so give every line again; a list left out is taken off. It refuses a picture or PDF, voice lines that overlap (captions may), and, once the video's length is measured, a line that starts after its end, saying which. Before it's measured the lines are kept, and any past its end won't show once it is: the answer says which case it is. It makes no new version of the post. Example: media_id "med_1", lines {voice: [{start_ms: 0, end_ms: 4200, text: "Croissants out of the oven at six."}], captions: [{start_ms: 500, end_ms: 3500, text: "Fresh at six"}]}.

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": {
      "media_id": "<media_id>",
      "lines": "<lines>"
    },
    "name": "set_video_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
media_idYesThe video's media_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

It goes well beyond the annotations: replacement rather than merge semantics ('give every line again; a list left out is taken off'), the refusal conditions (picture/PDF, overlapping voice lines, lines past a measured end), and the difference in behavior before vs after the video length is measured. It also discloses that the operation creates no new post version, which matters for a write tool with destructiveHint=false whose omitted-list behavior is effectively removing data.

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?

Purpose is front-loaded and most sentences carry distinct information (prerequisites, units, replace semantics, refusals). It is dense and runs long, with multi-clause sentences that slow parsing, and the 'a cover's at_seconds' aside references something outside this tool's surface and briefly muddies the unit rule.

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 nested two-parameter write tool with no output schema, the description covers the risky cases: partial replacements, validation refusals with which line is at fault, and the pre-measurement edge case where the answer reports which case applied. It does not sketch the success response shape, but the error reporting is described well enough to act on.

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

Parameters4/5

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

Schema coverage is only 50%, and the description fills the most important gap: 'Every time is in milliseconds from the video's start', which the schema never states, plus the ordering expectations for voice and captions. It does not explain the id, sentences, size, colour, or position sub-fields, so gaps remain, but the highest-risk semantic (time units) is covered.

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 — 'Gives a video its script (voice-over lines) and captions (words burnt into the picture)' — and immediately disambiguates the two payload types. An agent can tell this apart from siblings like change_post_words or create_draft without opening the 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?

Explicit sequencing and prerequisites: 'Call it for each video you made, once it's in PostReach: after finish_upload, or with the media_id that create_draft or open_review shows.' It also states the negative case implicitly via 'It makes no new version of the post', which tells the agent this is not a publishing step.

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