Skip to main content
Glama
affset

affset MCP server

Cut underperforming zones

cut_zones
Destructive

Identify and blacklist underperforming campaign zones that fail to meet conversion rate, spend, or ROI thresholds. Dry-run preview shows zones to cut; set confirm=true to apply.

Instructions

Blacklist underperforming zones on a campaign based on thresholds (CR, spend, ROI). Evaluates zone stats over the given window and adds matching zones to the campaign's zone blacklist. DRY-RUN by default: it shows which zones would be cut and how the blacklist changes. Pass confirm=true to actually apply. spend means media_cost (your traffic cost). A zone is cut only if it matches ALL provided thresholds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoExplicit end bound: YYYY-MM-DD (tenant-local end of day), ISO timestamp with Z/UTC offset, or epoch ms.
fromNoExplicit start bound: YYYY-MM-DD (tenant-local start of day), ISO timestamp with Z/UTC offset, or epoch ms.
rangeNoEvaluation window. Ignored if from/to are given. Defaults to last 7 days.
cr_maxNoCut zones with conversion rate BELOW this fraction (e.g. 0.002 = 0.2%).
confirmNofalse = dry-run preview (default). true = apply the blacklist changes.
roi_maxNoCut zones with ROI BELOW this fraction (e.g. -0.3 = -30%). Needs cost data.
spend_minNoCut zones with media_cost ABOVE this many dollars (e.g. 5 = $5).
min_clicksNoIgnore zones with fewer clicks than this (significance guard). Default 10.
campaign_idYesCampaign whose zone blacklist to edit.
Behavior4/5

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

The description discloses the destructive nature (blacklist modification), the dry-run default, the AND logic for thresholds, and the significance guard (min_clicks). Annotations already indicate destructiveHint=true, so the description adds context on how the destruction works (adding to blacklist) and the evaluation window. No contradictions.

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?

The description is concise: four sentences that front-load the purpose and key behaviors (dry-run, confirm, threshold logic). No unnecessary words, and every sentence adds essential information. The structure is clear and easy to parse.

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?

Given the tool has 9 parameters and no output schema, the description covers the core behavior well: evaluation window, threshold criteria, dry-run vs confirm, and the significance guard. It could mention what the response looks like (e.g., list of zones to be cut) or error cases (e.g., invalid campaign). Still, it provides enough context for most use cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already described. The description adds value by clarifying that 'spend' means media_cost, explaining the AND logic for multiple thresholds, and noting that range is ignored if from/to are given. This extra context helps the agent understand parameter interactions beyond the schema.

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 clearly states the tool's purpose: blacklisting underperforming zones based on thresholds. The verb 'cut' and resource 'zones' are specific. It distinguishes from sibling tools like list_zones, update_zone, or remove_targeting_rule by focusing on automated performance-based blacklisting with dry-run and confirm modes.

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?

The description explains when to use the tool (to cut underperforming zones), how to use it (dry-run first, then confirm), the logic of threshold matching (ALL conditions), and defines key terms like 'spend'. However, it does not explicitly state when not to use it or contrast with alternatives like manual editing via update_zone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/affset/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server