Skip to main content
Glama
Rezlazy

yandex-metrika-mcp

by Rezlazy

mgmt_segment_create

Create a new segment for a specified Yandex Metrika counter by sending a JSON body with segment parameters, such as name and conditions, to configure audience targeting.

Instructions

https://yandex.ru/dev/metrika/ru/management/ Create segment. Body: {"segment": {...}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON request body. For POST/PUT use the structure from API docs (e.g. {"counter": {...}}).
prettyNoPretty-print response (1)
counterIdYesCounter ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.3/5.0
Behavior2/5

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

Annotations are absent, so the description carries the full burden. 'Create segment' implies a write/mutation operation, but it discloses nothing about side effects (e.g., new segment appears in list), whether the operation can be undone, required permissions, or response format. The URL points to docs but the description itself is silent on behavior. This is a significant gap for a mutation tool.

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

Conciseness3/5

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

The description is concise (two short phrases) but poorly structured: the URL is placed first, burying the purpose. The second sentence 'Body: {"segment": {...}}' is a fragment that adds some context but could be clearer. There's no wasted prose, but the front-loading is wrong—purpose should lead, not a URL. This is acceptable conciseness, not excellent.

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

Completeness2/5

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

For a create operation with a nested object body and no output schema, the description is too thin. It doesn't mention that the body requires a 'segment' object with properties like name and expression, doesn't specify the response (likely the created segment object), and doesn't mention any constraints or requirements (e.g., segment limits). Agents would need to consult external docs, which the URL provides, but the description's job is to make tool use self-contained. The URL is a pointer to docs, but with no annotations and an opaque body, this is insufficient.

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%: body is described as a JSON request body with the structure from API docs, counterId as 'Counter ID', pretty as 'Pretty-print response'. The description adds minimal value beyond that—it hints at the body shape for segment, but doesn't specify which fields are required (e.g., name, expression). With full schema coverage, a 3 is a fair baseline; the description doesn't introduce any confusion but also doesn't enrich the parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Create segment' which is a clear verb+resource, but it stumbles by starting with a raw URL instead of the tool's purpose, and it gives no field detail beyond the name. The phrase 'Body: {"segment": {...}}' is a fragment that doesn't explain what the body should contain. It does minimally distinguish from siblings like mgmt_segment_get, but the leading URL is noise that hurts clarity.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus the many sibling CRUD operations. With siblings like mgmt_segment_list, get, update, delete, the description provides no conditions for when creating is appropriate, no mention of required counterId or permissions, and no mention of alternatives. The URL is a documentation link but doesn't say when to use this tool.

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