协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
yandex-metrika【开发与工程】Анализировать Яндекс Метрику и AppMetrica и безопасно управлять целями через LidFly MCP v3. Использовать для счётчиков, целей, UTM, CPA, конверсий, страниц, сравнений с точным counter_id и без client_login, а также установок и событий мобильных приложений.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use for counters, goal reads and safe goal create/update/delete, traffic sources, UTM, Direct reports, CPA, conversion health, popular pages, ecommerce, and period comparisons.
counter_id; it does not use client_login.get_provider_context({ provider: "yandex", query? }) and use returned Metrika scope.workspace_project_id.search_tools({ provider: "yandex", query: "metrika ..." }).get_tool_schema.call_tool for metrika_get_counters, metrika_get_counter, metrika_get_goals, reports.lastsign; do not leave the model implicit.lastsign. Every report answer must name the data source, attribution model, whether it was explicit or default, and whether it is single-device, cross-device, or automatic.first, last, lastsign, last_yandex_direct_click, cross_device_first, cross_device_last, cross_device_last_significant, cross_device_last_yandex_direct_click, and automatic.first to cross_device_first, lastsign to cross_device_last_significant, and both Direct-click variants to automatic. Keep the requested key in the call and report the provider-effective model shown by the tool methodology; do not describe legacy lastsign as currently single-device.ym:s:<attribution>TrafficSource. Never introduce a hardcoded last* dimension when the tool can use <attribution>.<attribution>.preset is expanded by Yandex and is opaque to LidFly's expression analyzer. The tool still sends the selected/default attribution for parameterized preset dimensions, but its methodology warns that fixed attribution expressions inside the preset cannot be verified locally.TrafficSource='ad' means all paid advertising traffic, not only Yandex Direct. Direct-specific dimensions can still be empty for traffic from other ad systems.get_custom_report with the same dates, timezone, goals, revenue metric, and matching Direct attribution. Direct supports Revenue, PurchaseRevenue, Profit, GoalsRoi, purchase variants, and LSCCD. Profit stays aggregate even when goals is supplied; calculate goal-specific profit from that goal's Revenue - Cost. Purchase metrics use the separate purchase_goals filter, not goals. If a configured report omits a field, do not replace it with zero or claim the API cannot return revenue.metrika_get_goal; read the list with metrika_get_goals.metrika_create_goal, metrika_update_goal, and metrika_delete_goal. Before a write, resolve the exact counter. Owners may write without a project; members need a selected or sole granted project. A selected project strictly limits access to linked counters. Then call get_tool_schema for the selected tool.changes object, reads the full current goal internally, and preserves unspecified fields; do not reconstruct a whole goal from prose. For type-specific changes, pass settings.type matching the stored goal type.call_write_tool. In built-in chat, the exact sealed ChangeSet is confirmed by the user's next text or its server-issued confirmation action. Do not generate confirmation buttons yourself. External MCP uses its existing explicit-confirmation workflow. Never claim success before the tool result.reconnect_required, stop the write and ask the user to reconnect Yandex. Read tools remain available.operation_id and outcome as authoritative. deduplicated=true means the exact goal already existed and no POST was sent; updated=false means the requested values already matched and no PUT was sent.unknown or ambiguous, never repeat the same goal write. Call top-level get_write_operation_status({ operation_id }); if ambiguity remains, require manual verification.goal_id; reread it with metrika_get_goal when subsequent work depends on the exact saved state. After delete, reread metrika_get_goals if later work depends on absence.DirectClickOrder and DirectBannerGroup IDs against campaigns/groups actually read in that account, then inspect its tracking configuration and UTM values. A UTM string alone does not prove ownership; TrafficSource=ad also includes other paid platforms. Account for lastsign attribution and repeat visits when reconciling counts. Sources: https://yandex.ru/support/metrica/ru/general/direct, https://yandex.ru/support/direct/ru/statistics/url-tags (checked 2026-09-26). If the IDs cannot be verified in the connected scope, state that ownership is unconfirmed.Save analytics snapshots, documents, or decisions only with resolved workspace_project_id. Memory writes for a counter linked to several projects require the exact selected project; personal provider writes by its owner do not.
When the user asks to export a Metrika report to Google Sheets or Google Docs, keep this skill for counter scope and report reads, then hand the verified Google write and reread to $export-ad-reports.
The export handoff applies only when this host exposes the skill and a Google write connector. If either is unavailable, state the exact missing capability and return the requested report as a draft; do not claim a saved Google file or silently switch to Workspace.
Owners may create personal Logs API exports without a project. Members need a selected or sole granted project and its linked counter. A selected project always restricts the counter scope. Personal exports belong only to their owner; do not share the one-time download capability URL. Project memory and knowledge operations still require a project.
Для отчётов о заявках/CPA используй подтверждённый числовой primary_conversion_goal_id из metadata точного проекта. Если его нет, один раз выясни, какая цель означает отправленную заявку, проверь ID через metrika_get_goals и предложи сохранить его в проект с сохранением остальных metadata. Открытие формы и другие микроцели не называй заявками. В Директе передавай get_campaign_stats.goals=[primary_conversion_goal_id]; агрегат без goals означает достижения всех целей, включая микроцели. Не добавляй микроцели в стратегию без явного согласия. Прогнозы сопровождай источником; без истории — «оценка без данных» и диапазон. Применение и сохранение подтверждай по результатам записи, а не по обещанию модели.