Skip to main content
Glama

End a Performance ad

end_ad
DestructiveIdempotent

Performance ads. Starts the wind-down of an ad: no new promoters, conversions already attributed are still paid, and what is not spent returns to the balance at the final settlement. It cannot be started again.

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>"
    },
    "name": "end_ad"
  }
}

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint and idempotentHint, yet the description still earns credit by disclosing the financial mechanics the annotations cannot convey: no new promoters, already-attributed conversions still paid, unspent funds returned at final settlement. It does not say what happens on a second call to an already-ended ad, which is the one behavioral gap given idempotentHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the outcome and the irreversibility front-loaded, and no filler. The leading 'Performance ads.' fragment is the only wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with no output schema and rich annotations, the description supplies everything an agent needs to judge the consequence of calling it: settlement timing, retained conversions, and the fact that it is one-way.

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 ad_id and api_key are fully documented in the schema, including the optional bearer-header alternative. The description adds no additional meaning about either parameter, which is the expected baseline when the schema does the work.

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 definition pairs the name 'end_ad' with a concrete explanation of what ending does ('starts the wind-down of an ad'), and the closing line 'It cannot be started again' separates it from a reversible operation like pause. The opening fragment 'Performance ads.' adds little, and it never names pause_ad or archive_ad as the contrasting siblings.

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 rather than stated: the irreversibility clause signals this is the terminal option versus a pausable one, but there is no explicit when-to-use/when-not-to-use guidance and no named alternative among the many sibling ad-lifecycle tools.

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