Skip to main content
Glama
yandex-direct-mcp

yandex-direct-mcp

by s3rezhkaa

get_ads

Load ad creatives (titles, texts, destination URLs, statuses, image URLs) for campaign or ad IDs, and optionally resolve image hashes into original or preview URLs.

Instructions

Load ad creatives: titles, texts, destination URLs, statuses, and image URLs.

Args: campaign_ids: Optional list of campaign IDs to load ads for. ad_ids: Optional list of specific ad IDs. Provide campaign_ids or ad_ids. include_image_urls: Resolve AdImageHash values to original/preview URLs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idsNo
campaign_idsNo
include_image_urlsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does usefully explain that include_image_urls resolves AdImageHash values into original/preview URLs, but it omits pagination/result-size behavior, whether both campaign_ids and ad_ids may be combined, and what happens when neither is provided. The presence of an output schema covers return-shape concerns.

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 purpose is front-loaded in the first clause, followed by a compact Args block. The per-parameter lines earn their place given zero schema coverage, though the format is slightly repetitive of the parameter names.

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

Completeness3/5

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

For a three-parameter read tool with an output schema and no annotations, the description covers the resource and each argument adequately. It remains thin on edge-case behavior (no IDs supplied, both ID types supplied) that an agent would need to invoke it confidently.

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 0%, so the description must compensate, and it does document all three parameters by name. However it does not state the include_image_urls default (true in the schema) or clarify precedence/union semantics when both ID lists are given, so meaning is only partially added.

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?

"Load ad creatives" is a specific verb plus resource, and the enumeration of returned fields (titles, texts, destination URLs, statuses, image URLs) makes the scope concrete. It is clearly distinguishable from the sibling report tools (get_ad_report, get_campaign_report), though the description never explicitly contrasts itself with them.

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?

"Provide campaign_ids or ad_ids" gives an explicit selection rule between the two filtering modes, which is real usage guidance. It stops short of stating what happens if neither is supplied (all three params are optional) or when to prefer this tool over the report siblings.

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