Skip to main content
Glama
kit-trafego-ia

kit-trafego-ia

by MatheusSBPRO

Subir campanha na Meta, tudo PAUSADO

subir_campanha
Idempotent

Creates paused Meta campaigns, ad sets, creatives, and ads from a JSON plan via Graph API, and resumes from the last completed step when rerun with the same plan.

Instructions

Cria campanha, conjuntos, criativos e anúncios pela Graph API. Tudo nasce PAUSADO e não existe opção para ligar: quem liga é a pessoa, no Gerenciador. Se cair no meio, chamar de novo com o mesmo plano continua de onde parou. Precisa de META_TOKEN no ambiente do servidor.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "subir_campanha"
  }
}

Input Schema

NameRequiredDescriptionDefault
planoNoO plano em JSON, no formato de plano.exemplo.json: conta (act_...), pagina, instagram, pixel, url_tags, campanha {nome, objetivo, tipo CBO|ABO, orcamento_dia em reais} e conjuntos [{nome, evento, publico, anuncios [{nome, midia, texto, titulo, link, cta}]}].
pasta_midiaNoCom 'plano': pasta onde estão as mídias com caminho relativo. Padrão: a pasta em que o servidor foi aberto.
arquivo_planoNoCaminho de um plano .json no disco, no lugar de 'plano'. As mídias são lidas em relação à pasta do arquivo.

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 annotations, it discloses that everything is created PAUSED and cannot be activated via API, that retrying with the same plan resumes from where it stopped, and that META_TOKEN is required. It does not cover rate limits or what happens if the plan differs.

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 the purpose and then the key safety and resume behavior. No unnecessary wording.

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 complex multi-entity creation tool with nested plan data, the description covers purpose, paused safety, idempotent resume, and auth. It lacks return-value expectations and explicit verification routing to conferir_campanha, but no output schema exists to carry that.

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 the schema already documents the parameters. The description reinforces 'plano' and 'mesmo plano' but does not add format or syntax details beyond what the schema provides.

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?

The description uses a specific verb and names all created resources: 'Cria campanha, conjuntos, criativos e anúncios pela Graph API.' This distinguishes it from media-upload, simulation, and checking siblings without needing to name them.

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

Usage Guidelines3/5

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

It gives clear context for use: create a campaign paused, and retry with the same plan if interrupted. However, it does not explicitly say when to use this instead of simular_campanha or conferir_campanha, so alternatives remain implied.

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