Skip to main content
Glama

Aitvar

Make the final video (uses the balance)

approve_video
Destructive

Approves a draft and makes the final video, using videos from the person’s Aitvar balance (the cost is in get_video as cost_in_videos). Only call this after the person has seen the script and agreed to the cost. Pass that cost as expected_cost; nothing is charged if the price is higher.

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": {
      "video_id": "<video_id>",
      "expected_cost": "<expected_cost>"
    },
    "name": "approve_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYesThe video’s id (from write_video_script or list_my_videos).
expected_costYesThe cost_in_videos the person agreed to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description goes further by naming what is consumed (the balance) and adding a price-protection rule: nothing is charged if the actual price exceeds the passed value. That failure semantics is non-obvious and materially changes how an agent should call it.

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?

Three sentences with no filler: the action and its cost source come first, the consent precondition second, the parameter contract third. Every clause carries information an agent needs.

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 destructive, balance-spending, two-parameter tool with rich annotations, the definition covers prerequisites, cost semantics, and failure behavior. It does not say what is returned after approval (the sibling get_new_video_link implies a follow-up step), which is a minor gap since no output schema exists.

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 100%, so the baseline is 3, but the description adds real meaning: expected_cost must be the specific cost the person consented to, sourced from get_video's cost_in_videos, and it acts as a ceiling rather than an estimate. video_id's provenance is already in the schema, so the gain is partial.

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 pair and resource ('approves a draft and makes the final video') plus the distinguishing scope: it spends the person's Aitvar balance. That balance-spending framing is what separates it from free-path siblings such as make_free_preview, so an agent can route without opening schemas.

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 precondition — 'Only call this after the person has seen the script and agreed to the cost' — which functions as both when-to-use and when-not-to-use. It also tells the caller where the value comes from (cost_in_videos in get_video), leaving no inference needed to assemble the call.

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