Skip to main content
Glama
A1-x-Tech

Yandex Audience MCP

Сохранить загруженный сегмент

confirm_segment

Complete the creation of a file-uploaded audience segment by assigning a name, content type, and hashing settings, finalizing it for use in Yandex Audience.

Instructions

Сохраняет сегмент, созданный из файла (второй шаг после upload_segment_file / upload_segment_csv_file): задаёт имя, тип содержимого и параметры хеширования. content_type: idfa_gaid (идентификаторы мобильных устройств), mac (MAC-адреса) или crm (CSV с CRM-данными). hashing_alg — только SHA256 (MD5 не поддерживается API с 01.01.2025). device_matching_type: CROSS_DEVICE (по умолчанию) или IN_DEVICE (только для idfa_gaid). check_size=false позволяет сохранить сегмент меньше 100 записей (его нельзя использовать в Директе, пока размер не превысит 100). Ответ — {"segment": {...}}; обработка занимает время, статус смотрите через list_segments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesНазвание сегмента.
hashedNoЗахешированы ли данные в файле.
check_sizeNofalse — разрешить сохранение сегмента меньше 100 записей (по умолчанию true).
segment_idYesИдентификатор сегмента (id из list_segments или из ответа создания).
hashing_algNoАлгоритм хеширования — только SHA256 (MD5 не поддерживается с 01.01.2025).
content_typeYesТип содержимого файла: idfa_gaid | mac | crm.
device_matching_typeNoРежим сопоставления устройств: CROSS_DEVICE (по умолчанию) | IN_DEVICE (только для idfa_gaid).
Behavior4/5

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

Annotations indicate write operation (readOnlyHint=false), not destructive. Description adds async processing behavior ('обработка занимает время, статус смотрите через list_segments') and discloses size restrictions (check_size=false allows <100 records, unusable in Direct until >100). These go beyond annotations and help agent set expectations.

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?

Description is information-dense but efficient: two sentences pack purpose, workflow position, parameter details, constraints, and response format. No filler, but slightly long given that some info duplicates schema descriptions. Still earns its place by providing context.

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 7-parameter mutation tool with no output schema, description covers workflow, parameter semantics, response format, and follow-up status check. It does not cover error scenarios or permissions, but those are not mandatory. Overall, agent has enough context to invoke correctly.

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 100%, but description adds context: explains enum meanings for content_type (idfa_gaid, mac, crm), defaults (CROSS_DEVICE), and special constraints (IN_DEVICE only for idfa_gaid, SHA256 only). It also clarifies check_size behavior with real-world implication, adding value over schema.

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?

Description states a specific action: 'Сохраняет сегмент, созданный из файла' (saves a segment created from a file), and clearly positions it as the second step after upload tools. It differentiates from siblings like rename_segment and delete_segment by describing the save/confirm workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use: 'второй шаг после upload_segment_file / upload_segment_csv_file' (second step after uploading). Also tells agent to check status via list_segments, implying not to use this for status. Provides constraints like check_size and hashing algorithm choices.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-yandex-audience'

If you have feedback or need assistance with the MCP directory API, please join our Discord server