Skip to main content
Glama

Create kb video

create_kb_video

Cria e indexa um VÍDEO na base de conhecimento a partir de uma URL pública (http/https) ou de base64. Diferente de imagem, não existe descrição automática por IA — a descrição é obrigatória e deve ser escrita por quem chama a tool (é o texto usado na busca semântica pra decidir quando o agente manda o vídeo). Limite de 16MB (mesmo teto que o WhatsApp impõe para vídeo). Fica disponível em /api/kb/video/[id] (URL pública) — o agente pode enviar durante conversas ativas, e também serve como header_video_url de create_whatsapp_template para cadências de prospecção. Sem target_user_id, cria na PRÓPRIA conta autenticada; o administrador da plataforma pode passar target_user_id.

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": {
      "name": "<name>",
      "description": "<description>"
    },
    "name": "create_kb_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNome/título do vídeo (ex: "Vídeo institucional 40s")
tagsNoTags separadas por vírgula, ex: "institucional,vendas"
video_urlNoURL pública do vídeo (http/https, mp4) a ser baixado e indexado. Ignorado se video_base64 vier junto.
descriptionYesOBRIGATÓRIO. Descrição detalhada do conteúdo do vídeo — não há geração automática por IA. É o texto usado pra busca semântica saber quando enviar esse vídeo.
video_base64NoAlternativa a video_url quando o vídeo NÃO está hospedado em nenhuma URL pública — data URL base64 completa ("data:video/mp4;base64,...."). Tem prioridade sobre video_url.
target_user_idNoID da conta-alvo (opcional; APENAS o admin da plataforma pode usar). Padrão: a conta autenticada.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: 16MB hard limit, description is mandatory and manually authored (no AI fallback), the record becomes reachable at /api/kb/video/[id], and target_user_id is restricted to platform admins with self-account as default. These are exactly the failure modes and auth constraints an agent needs. Minor note: the tool downloads from a public URL while annotations declare openWorldHint=false, but this is consistent with the schema's own wording, so it is not a contradiction.

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 what is created and from what sources; the mandatory-description warning follows immediately. It is dense with parentheticals and runs long, but each sentence carries distinct information (size limit, endpoint, sibling tool, auth default).

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 6-parameter mutation tool with full schema coverage and no output schema, the description covers sources, limits, auth scoping, and downstream consumption. It does not state what is returned (presumably the video id/URL), which an agent would need to chain into create_whatsapp_template; the /api/kb/video/[id] hint partially compensates.

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 coverage is 100%, so every parameter already carries its own explanation including the base64-over-URL priority and the admin-only target_user_id. The description's main added fact is the 16MB ceiling; most other parameter-level content restates the schema. Baseline 3 is appropriate.

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+resource ("Cria e indexa um VÍDEO na base de conhecimento") and immediately distinguishes it from the sibling create_kb_image ("Diferente de imagem, não existe descrição automática"). It also positions the artifact relative to create_whatsapp_template (header_video_url), so an agent can place it in the tool graph 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 Guidelines4/5

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

Gives concrete usage contexts (send during active conversations, use as header_video_url in prospecting cadences) and the source alternative (public URL vs base64 when nothing is hosted). It stops short of an explicit exclusion (when NOT to create a KB video, e.g. reuse an existing one via list_kb_documents), so it is clear context rather than a complete decision rule.

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