Skip to main content
Glama

Keep or kill a Meta ad

keep_or_kill
Read-onlyIdempotent

Should I keep, pause or kill this Meta (Facebook/Instagram) ad? Give what one sale leaves the store before ad costs, what the ad has spent, and how many sales it brought, plus days running and link clicks if known. Returns keep, kill or too early, money up or down so far, the chance it really makes money, and the next step.

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": {
      "profit_per_sale": "<profit_per_sale>",
      "amount_spent": "<amount_spent>",
      "sales": "<sales>"
    },
    "name": "keep_or_kill"
  }
}

Input Schema

NameRequiredDescriptionDefault
salesYesSales (purchases) the ad brought.
link_clicksNoOptional. Link clicks on the ad. With no sales, fewer than 53 clicks is too few to judge unless the clicks themselves cost too much.
amount_spentYesWhat the ad has spent so far.
days_runningNoOptional. Days the ad has been running. Under 3 days, a kill is held back unless the loss is already clear.
profit_per_saleYesWhat one sale leaves the store before ad costs: price minus product, shipping, fees and returns (break-even CPA).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / days_running
      Added value: +{
      +  "description": "Optional. Days the ad has been running. Under 3 days, a kill is held back unless the loss is already clear.",
      +  "type": "number"
      +}
    • addedInput schema / properties / link_clicks
      Added value: +{
      +  "description": "Optional. Link clicks on the ad. With no sales, fewer than 53 clicks is too few to judge unless the clicks themselves cost too much.",
      +  "type": "number"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a safe, read-only, idempotent, closed-world operation, so the safety profile is covered. The description adds real value beyond that by disclosing the output vocabulary (keep / kill / too early), the money-direction signal, a confidence figure, and a recommended next step, which tells the agent this is an advisory computation rather than a data fetch.

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?

Two sentences, front-loaded with the decision question, then the required inputs, then the returned verdicts. No filler and no repetition of the title.

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 no output schema, the description carries the burden of explaining return values and does so adequately (verdict, money direction, confidence, next step). Combined with full schema coverage and read-only annotations, an agent has enough to call it correctly; only the relationship to sibling tools is left unstated.

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 every parameter is already documented, including the decision thresholds for link_clicks and days_running. The description restates the same three inputs (profit per sale, spend, sales) without adding format, unit, or edge-case guidance beyond the schema, so the baseline of 3 applies.

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 names a specific decision (keep, pause or kill) on a specific resource (a Meta/Facebook/Instagram ad) and enumerates the inputs it needs and the verdicts it returns. An agent can tell this is an ad-verdict tool rather than a diagnostic or planning tool, though it never names the siblings find_where_ad_breaks or plan_ad_test to sharpen the boundary.

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?

Usage is implied by the framing question and by the note that days_running and link_clicks are supplied 'if known', which tells the agent the call is still valid with partial data. There is no explicit statement of when to prefer this over find_where_ad_breaks or plan_ad_test, and no stated preconditions or exclusions.

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