Skip to main content
Glama

Reject a held conversion

reject_conversion
Idempotent

Performance ads. Rejects a conversion while it is on hold: nothing is paid for it and its amount returns to the ad's budget. reject_code is one of duplicate, fraud, bonus_abuse, chargeback, terms_violation, other; other needs a reject_note of 10 to 500 characters.

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": {
      "ad_id": "<ad_id>",
      "conversion_id": "<conversion_id>",
      "reject_code": "<reject_code>"
    },
    "name": "reject_conversion"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYesThe id of an ad of this account.
api_keyNoThe API key of the account (can_live_...). Optional when this MCP connection sends it as the Authorization: Bearer header.
reject_codeYes
reject_noteNo
conversion_idYesThe id of a conversion (cnv_...), from list_ad_conversions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: nothing is paid and the amount returns to the ad's budget, which tells the agent the financial consequence of the mutation. It does not cover permissions/API-key requirements or failure behavior, and the 'Performance ads.' fragment is unexplained context.

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 dense sentences, front-loaded with the action and precondition, then the effect, then the parameter rules. No filler beyond the slightly cryptic opening fragment.

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 and a mutation tool, the description covers the action, its precondition, the financial effect, and the code/note rules, which is close to complete. Minor gaps remain around idempotency wording (covered by annotations) and error/permission behavior.

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 only 60% and reject_code/reject_note have no schema descriptions, so the description does the heavy lifting: it enumerates the six codes and specifies the conditional rule that 'other' requires a reject_note of 10-500 characters. It still doesn't say whether a note is allowed for other codes or when a code is appropriate.

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?

States a specific verb and resource ('Rejects a conversion') plus a scoping precondition ('while it is on hold'). Sibling approve_conversion is the natural counterpart, but the description never names it explicitly, so differentiation is implicit rather than stated.

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?

Gives a clear condition for use ('while it is on hold') and implies the reverse case via the sibling approve_conversion. It does not say what to do if the conversion is no longer on hold, nor name the approve path as the alternative.

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