Skip to main content
Glama
kadam-official

@kadam-net/mcp-server

Official

kadam_adv_create_autorule

Create a CPC campaign autorule to automate bid changes, stops, or area blocks when performance conditions are met. Call once per rule.

Instructions

Create an autorule on a CPC campaign (autorules are CPC-only). Campaigns usually carry several rules (a strategy); call once per rule. bidChange rules require slices + bidRate + bidMax and a spend/clicks condition. A client token holds at most 5 rules per campaign and 300 per account — going over either is refused, so delete a rule before adding one. A token issued to Kadam staff for this account is not bound by those two limits.

Input Schema

NameRequiredDescriptionDefault
typeYesRule type
actionYesAction (must match type): areaBlPut/areaBlRemove (area), campaignStop/dayLimitIncrease (campaign), creoStop/creoActivate (creo), bidChange (bid)
bidMaxNobidChange: max bid cap (>=0.001). REQUIRED for bidChange.
periodYesEvaluation period in days
slicesNobid rules: granularity dimension IDs, e.g. [180,190] = per source x site. REQUIRED for bidChange.
statByNo
bidRateNobidChange: coefficient on the slice EPC (earnings/click ~ eCPC); new bid = EPC x bidRate, capped at bidMax. REQUIRED for bidChange, range 0.1-2. bidRate=1 = set bid to the eCPC (valid, NOT a no-op).
isActiveNo
campaignIdYesCPC campaign ID
conditionsYesConditions ANDed together; each {metric, match, value}. Note: bidChange (bid) rules don't allow the ROI metric, and spend/clicks conditions can't use value 0.
dayLimitTypeNodayLimitIncrease only
dayLimitValueNodayLimitIncrease only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.4

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the lone readOnlyHint=false annotation: the 5-rules-per-campaign and 300-per-account caps, that exceeding either is refused, the delete-before-add workaround, and the staff-token exemption. This is exactly the operational context an agent needs before a write call.

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 dense sentences, each carrying distinct information (scope, one-per-rule, bidChange requirements, quota rules). Front-loads the core purpose and uses no filler despite a 12-parameter tool.

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 mutation tool with no output schema and no destructive/rate annotations, the description covers scope, dependencies, and quotas well. It omits only return-value expectations and whether creation is reversible, which are minor gaps here.

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 already high (83%), but the description adds cross-parameter dependencies the schema cannot express: bidChange requires slices + bidRate + bidMax together with a spend/clicks condition. It does not restate every field, but that dependency mapping is genuine added value.

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?

States a specific verb+resource ('Create an autorule on a CPC campaign') and immediately scopes it with the CPC-only constraint. It is clearly distinguishable from siblings like update_autorule, delete_autorule, list_autorules, and set_autorule_status.

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 concrete usage guidance: 'Campaigns usually carry several rules (a strategy); call once per rule' and 'delete a rule before adding one' when limits are exceeded. It does not explicitly route to update_autorule for modifying an existing rule, so it stops short of full when-vs-alternatives coverage.

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

Deploy Server

Other Tools