Skip to main content
Glama

Список рекламных кампаний

list_campaigns
Read-onlyIdempotent

List ad campaigns from your Avito account with pagination and filters by status, type, payment model, dates, and more. Retrieve detailed campaign data and API point balance.

Instructions

Перечисляет рекламные кампании аккаунта постранично. Возвращает {total, items, page, limit, hasNextPage} плюс apiPointBalance — остаток недельных баллов API, которые пополняются по понедельникам в 00:00 UTC. У каждой кампании есть id, name, status, budget (рубли), paymentModel (CPM/CPC), campaignType, startDate/endDate, advertiserId, contractId, managerID и отметки времени. Поля фильтра объединяются по И, и каждый список оставляет только перечисленные в нём значения. Через этот API нельзя создать, изменить, приостановить, возобновить, заархивировать или удалить кампанию и нельзя тронуть её таргетинг — единственные доступные где-либо изменения это change_group_budget и change_group_price для группы объявлений.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNoОставить кампании с этими id.
pageNoНомер страницы, нумерация с 1. По умолчанию 1.
limitNoРазмер страницы, 1..100. По умолчанию 20.
filterNoУниверсальный фильтр: дополнительные ключи, которые подмешиваются в фильтр запроса как есть (в написании API). При конфликте побеждают именованные поля выше.
managersNoОставить кампании этих менеджеров — пользователей аккаунта (по id).
statusesNoОставить кампании с этими статусами: draft, in_moderation, moderation_failed, partial_moderation, active, paused, stopped, finished, archived.
createdAtNoОставить кампании, созданные в этом диапазоне: {from, to}, YYYY-MM-DD.
timeFrameNoОставить кампании, период размещения которых попадает в этот диапазон: {from, to}, YYYY-MM-DD.
advertisersNoОставить кампании этих рекламодателей (по id).
contractIdsNoОставить кампании по этим договорам (по id).
campaignTypesNoОставить только эти типы кампаний: textImage, HTML, video.
paymentModelsNoОставить только эти модели оплаты: CPM, CPC.
additionalAgreementIdsNoОставить кампании по этим дополнительным соглашениям (по id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv1.1.0
    • changedInput schema / properties / additionalAgreementIds / description
      Previous value: -"Additional-agreement ids whose campaigns to keep."New value: +"Оставить кампании по этим дополнительным соглашениям (по id)."
    • changedInput schema / properties / advertisers / description
      Previous value: -"Advertiser ids whose campaigns to keep."New value: +"Оставить кампании этих рекламодателей (по id)."
    • changedInput schema / properties / campaignTypes / description
      Previous value: -"Campaign types to keep: textImage, HTML, video."New value: +"Оставить только эти типы кампаний: textImage, HTML, video."
    • changedInput schema / properties / contractIds / description
      Previous value: -"Contract ids whose campaigns to keep."New value: +"Оставить кампании по этим договорам (по id)."
    • changedInput schema / properties / createdAt / description
      Previous value: -"Keep campaigns created in this range: {from, to}, YYYY-MM-DD."New value: +"Оставить кампании, созданные в этом диапазоне: {from, to}, YYYY-MM-DD."
    • changedInput schema / properties / createdAt / properties / from / description
      Previous value: -"Range start, YYYY-MM-DD."New value: +"Начало диапазона, YYYY-MM-DD."
    • changedInput schema / properties / createdAt / properties / to / description
      Previous value: -"Range end, YYYY-MM-DD."New value: +"Конец диапазона, YYYY-MM-DD."
    • changedInput schema / properties / filter / description
      Previous value: -"Escape hatch: extra filter keys merged as-is into the request filter (API spelling). The named fields above win on conflict."New value: +"Универсальный фильтр: дополнительные ключи, которые подмешиваются в фильтр запроса как есть (в написании API). При конфликте побеждают именованные поля выше."
    • changedInput schema / properties / ids / description
      Previous value: -"Campaign ids to keep."New value: +"Оставить кампании с этими id."
    • changedInput schema / properties / limit / description
      Previous value: -"Page size, 1..100. Default 20."New value: +"Размер страницы, 1..100. По умолчанию 20."
    • changedInput schema / properties / managers / description
      Previous value: -"Manager (account user) ids whose campaigns to keep."New value: +"Оставить кампании этих менеджеров — пользователей аккаунта (по id)."
    • changedInput schema / properties / page / description
      Previous value: -"1-based page number. Default 1."New value: +"Номер страницы, нумерация с 1. По умолчанию 1."
    • changedInput schema / properties / paymentModels / description
      Previous value: -"Payment models to keep: CPM, CPC."New value: +"Оставить только эти модели оплаты: CPM, CPC."
    • changedInput schema / properties / statuses / description
      Previous value: -"Campaign statuses to keep: draft, in_moderation, moderation_failed, partial_moderation, active, paused, stopped, finished, archived."New value: +"Оставить кампании с этими статусами: draft, in_moderation, moderation_failed, partial_moderation, active, paused, stopped, finished, archived."
    • changedInput schema / properties / timeFrame / description
      Previous value: -"Keep campaigns whose flight window falls in this range: {from, to}, YYYY-MM-DD."New value: +"Оставить кампании, период размещения которых попадает в этот диапазон: {from, to}, YYYY-MM-DD."
    • changedInput schema / properties / timeFrame / properties / from / description
      Previous value: -"Range start, YYYY-MM-DD."New value: +"Начало диапазона, YYYY-MM-DD."
    • changedInput schema / properties / timeFrame / properties / to / description
      Previous value: -"Range end, YYYY-MM-DD."New value: +"Конец диапазона, YYYY-MM-DD."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already carry readOnlyHint, idempotentHint, and destructiveHint=false, and the description consistently reinforces this by stating that no modifications are possible through this API. It adds extra transparency by disclosing the API point balance mechanism, the AND-combination of filters, and the precise boundaries of allowable actions (only via change_group_budget and change_group_price). No contradictions with annotations.

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?

The description is informative but not bloated. It front-loads the core purpose and pagination, then lists the returned fields, then explains filtering semantics, and finally clarifies limitations. Each sentence carries useful information. The length is justified given the number of parameters and the need to explain the generic filter's behavior. No redundancy or filler.

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 complex tool with 13 parameters and no output schema, the description is remarkably complete. It details the return structure (total, items, page, limit, hasNextPage, apiPointBalance), enumerates the campaign fields, explains filter combination rules, and sets clear boundaries on what cannot be done. The presence of the openWorldHint annotation is supported by the description of pagination but not fully explored; still, the core information an agent needs to select and call this tool correctly is all present.

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 description coverage is 100%, so each parameter is individually documented. The description adds meaning beyond the schema by explaining the universal 'filter' parameter's pass-through behavior (additional keys are mixed in as-is) and the precedence rule between named fields and the generic filter. It also clarifies the AND logic across filter lists, which is not in the schema. This is valuable semantic context that goes beyond field descriptions.

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 opens with a clear verb ('Перечисляет') and object ('рекламные кампании аккаунта') and specifies pagination. It distinguishes this tool from siblings like campaign_stats and list_groups by focusing on campaign listing and explicitly stating what it cannot do. The return structure and key fields are enumerated, making the tool's role unambiguous.

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 clearly defines the tool's scope (read-only listing) and explicitly lists what cannot be done (create/update/pause/resume/archive/delete campaigns, modify targeting). It does not compare against sibling read tools such as campaign_stats, but the purpose is evident from the name and first sentence. The mention of alternative modification tools (change_group_budget, change_group_price) helps set expectations but does not directly guide when to use this list tool versus others.

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