Skip to main content
Glama

Simpler.Asia

studio.insert_product_card

Put a stock item's name and selling price on the video as a product card: a price_tag text clip on the first text track (or the one track_id names), from start_ms for duration_ms. It reads the stock record as you, so the card shows what stock_item_read shows; the values are copied into the project, and later stock edits do not change a card already placed. The price prints with the currency code (SGD 12.90), taken from the business's sales_settings default_currency unless you pass currency. style: tag (name over price, lower left), banner (name and price on one line, bottom centre), price_only (the price alone, large, top right). Free. The result names the clip, its track and the text shown. Refuses, placing nothing: an unknown stock_item_id (stock_item_list lists the ids), a retired item (restore it with stock_item_update, is_active 1), an item with no sell_price_cents (set it with stock_item_update), no currency (pass currency, or save one with sales_settings_upsert), a token without the stock namespace (reconnect with stock in scope, or pass the values yourself to studio.place_product_card), a locked, unknown or non-text track, and an overlap with another clip (the refusal gives the nearest start_ms that fits).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleNoThe card's layout; tag when left out.
currencyNoThe ISO code the price prints with; the business's sales_settings default_currency when left out.
start_msYesTimeline millisecond where the card appears.
track_idNoA text track (vtr_) from studio.get_composition; the first text track when left out.
project_idYesThe studio project (vp_...) the card goes into.
duration_msNoHow long the card shows, in milliseconds; 4000 when left out.
stock_item_idYesThe stock item to show, from stock_item_list; its name and sell_price_cents are copied onto the card.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Far beyond the single readOnlyHint=false: it discloses snapshot semantics ('the values are copied into the project, and later stock edits do not change a card already placed'), cost ('Free'), the shape of the result (clip, track, text shown), and an exhaustive enumerated set of refusal conditions with the fix for each (retired item, missing sell_price_cents, missing currency, missing namespace, locked/unknown/non-text track, overlap with nearest-fit start_ms). This is exactly the operational context annotations cannot carry.

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 action in the first clause, then behavior, then style options, then the refusal list — a logical order. It is a dense paragraph rather than scannable structure, and the style layouts partly overlap the enum, but nearly every sentence 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?

For a 7-parameter mutation with no output schema, the description covers inputs, defaults, side effects, return shape, cost, and all failure modes with remediation. An agent has everything needed to call it correctly and to interpret refusals without further tooling.

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; the description still adds value by explaining what each style actually renders and where ('tag: name over price, lower left', 'banner: one line, bottom centre', 'price_only: price alone, large, top right') and by tying currency to the business sales_settings default. It also connects stock_item_id and track_id to their resolving tools.

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?

Opens with a concrete verb and resource ('Put a stock item's name and selling price on the video as a product card') and then specifies exactly what is created: a price_tag text clip on the first text track. It also names the sibling it is distinct from (studio.place_product_card for raw values), so an agent can separate the two without opening either schema.

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?

Gives clear routing context: requires a stock item id (stock_item_list for ids) and a token with the stock namespace, and explicitly names studio.place_product_card as the fallback when you want to pass values yourself. It does not spell out a full when-not-to-use-this-tool rule, but the alternatives are surfaced inline.

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