Skip to main content
Glama
kit-trafego-ia

kit-trafego-ia

by MatheusSBPRO

Simular a subida de uma campanha (sem tocar na Meta)

simular_campanha
Read-onlyIdempotent

Validates a Meta campaign plan and previews each upload call, including daily budget in cents, without accessing Meta, requiring tokens, or writing data. Run it before campaign upload.

Instructions

Valida o plano da campanha e mostra cada chamada que a subida faria, com a verba em centavos. Não acessa a Meta, não pede token e não grava nada. Rode sempre antes de subir_campanha.

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": "simular_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.4/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety bar is low. The description still adds real value beyond them by naming the auth implication (no token needed), the absence of side effects (nothing written), and the output shape (each call with budget in cents). It stops short of saying what happens when the plan is invalid, which keeps it off 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?

Three short sentences, zero filler, with the dry-run guarantee front-loaded before the routing rule. Every sentence carries distinct information.

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 read-only simulation with no output schema and a well-documented nested plan object, the description covers the essentials: what it produces, what it does not touch, and when to call it. A brief note on what an invalid plan yields would make it fully complete.

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% and the schema itself points to plano.exemplo.json and explains the pasta_midia/arquivo_plano split, so the heavy lifting is already done structurally. The description adds only one detail beyond the schema — that the budget is surfaced in cents, hinting at a reais-to-centavos conversion — which is a marginal contribution. Baseline 3 applies.

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 states a specific verb and resource — it validates the campaign plan and shows the exact calls the upload would make — and the title reinforces the dry-run framing ('sem tocar na Meta'). An agent can immediately distinguish this from subir_campanha 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 Guidelines5/5

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

It gives an explicit imperative routing rule: 'Rode sempre antes de subir_campanha.' The alternative is named and the condition that selects it is unambiguous, leaving nothing to inference.

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