Skip to main content
Glama
kit-trafego-ia

kit-trafego-ia

by MatheusSBPRO

Subir vídeo ou imagem para a conta de anúncio

subir_midia

Uploads local media files to a Meta ad account library and returns a video ID with cover or an image hash, using resumable transfer for large videos. Does not create ads; requires META_TOKEN.

Instructions

Sobe arquivos locais para a biblioteca da conta e devolve o id do vídeo (com a capa) ou o hash da imagem. Vídeo grande vai pelo envio resumável. Não cria anúncio. Precisa de META_TOKEN.

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": {
      "conta": "<conta>",
      "arquivos": "<arquivos>"
    },
    "name": "subir_midia"
  }
}

Input Schema

NameRequiredDescriptionDefault
contaYesConta de anúncio com o prefixo act_.
arquivosYesCaminhos dos arquivos locais.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the supplied annotations, the description discloses the auth requirement (META_TOKEN), the return shape (video id + cover, or image hash), and that large videos route to a resumable upload path — meaningful behavioral context not present in annotations. It does not address duplication on retry (relevant given idempotentHint=false) or size/format limits, keeping it short of a 5.

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?

Four short sentences, front-loaded with what the tool does and what it returns, followed by the upload-mode note, scope exclusion, and prerequisite. Every sentence carries distinct information with no filler.

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?

With only two fully documented parameters, no output schema, and annotations covering the safety profile, the description covers auth, return values, and scope — enough to call it correctly. Minor gaps remain on partial-failure behavior for batch file arrays and any per-file size limits before the resumable path kicks in.

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 100%, so the schema already documents 'conta' (requires act_ prefix) and 'arquivos' (local paths). The description adds no syntax or formatting detail beyond that, so the baseline of 3 applies per the rubric for fully covered schemas.

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?

States a specific verb and resource (upload local files to the account library) and explicitly declares the output (video id with thumbnail or image hash), which immediately tells an agent what it gets back. The scope exclusion 'Não cria anúncio' narrows the purpose, but it does not contrast with any named sibling, so differentiation is left implicit.

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 a clear boundary condition ('Não cria anúncio') and a stated prerequisite ('Precisa de META_TOKEN'), which is exactly what an agent needs before invoking. It stops short of naming an alternative tool for the adjacent ad-creation or campaign-upload tasks, so the when-instead guidance is inferred rather than explicit.

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