Skip to main content
Glama

video_relate_product

Idempotent

Link a video to a product listing as its main or detail video. Numeric IDs convert automatically, and repeating the same link is safe.

Instructions

Associate a video with a product. target: "main" (main-image video) or "detail" (detail video). Numeric ids are auto-converted to the encrypted ids the API needs. Re-relating the same pair is idempotent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNomain
video_idYes
product_idYes
account_keyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
errorNo
successNo
msg_codeNo
msg_infoNo
video_idNo
error_typeNo
product_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description's idempotency statement merely reinforces that. The genuinely new behavioral content is the auto-conversion of numeric ids into the encrypted form the API expects, which is not covered by any annotation and materially affects how callers pass ids.

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?

Three tight sentences, front-loaded with the core action and then the target semantics and id conversion. Minimal waste, though the idempotency clause partly duplicates the annotation.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. What remains is a simple associate operation, and the description covers the non-obvious pieces (target values, id conversion); only account_key's role is left unaddressed.

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 description coverage is 0% and target has no enum in the schema, so the description's enumeration of 'main' (main-image video) and 'detail' (detail video) adds real semantic value. However, video_id, product_id, and especially account_key (default "") remain unexplained, so compensation for the coverage gap is only partial.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Associate a video with a product'), which cleanly distinguishes it from the sibling read tools video_list_related and video_query. It never explicitly names those siblings or defines boundaries against them, so sibling differentiation is present only by implication.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no reference to alternatives such as video_list_related for verification. Usage is only inferable from the purpose statement itself.

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