Skip to main content
Glama
wvuhskr

mcp-microsoft-ads

by wvuhskr

upload_image_asset

Upload PNG/JPEG images to the Microsoft Advertising media library, specifying aspect ratio, and receive a media ID for use in PMax asset groups.

Instructions

Draft an image upload to the account media library (for image extensions / PMax asset groups). Returns media id on apply. PNG/JPEG.

media_type is the image's aspect ratio, one of:

  • Image1x1: square (e.g. 1200x1200)

  • Image191x100: 1.91:1 landscape (e.g. 1200x628)

  • GenericImage

  • Image4x1

Live-verified 2026-07-30, after fixing two live faults (MediaType is an aspect-ratio label; the AddMedia response comes back unwrapped — both noted above). AddMedia also dedupes byte-identical images: re-uploading returns the existing media id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
media_typeYes
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it discloses the 'Draft... on apply' two-phase semantics, the dedupe behavior (byte-identical re-uploads return the existing media id), and the unwrapped AddMedia response quirk. This is far beyond a bare 'upload' claim, though it does not state authorization or reversibility requirements.

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 front-loaded with the primary purpose and enumerates media_type values as a scannable bullet list. The live-verification note and dedupe behavior add genuine value despite some verbosity in the fault-fixing narrative. Every major section earns its place, though it runs slightly long.

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?

Given no output schema and no annotations, the description correctly explains the return value (media id on apply) and documents the enum-like media_type values. But with 2 required parameters, file_path remains ambiguous (format, source, extension constraints), which could lead to incorrect calls, and the 'apply' step of the draft workflow is not connected to any sibling (e.g., confirm_and_apply).

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 coverage is 0%, so the description must compensate. It thoroughly documents media_type with aspect ratios and concrete dimension examples (1200x1200, 1200x628), which the bare string schema does not convey. However, file_path is left entirely to its name — the description never clarifies whether it is a local path or URL, or the allowed file formats beyond the passing note 'PNG/JPEG'. Compensation is partial.

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 states a specific verb and resource ('Draft an image upload to the account media library'), names the target use cases (image extensions / PMax asset groups), and specifies the return value (media id on apply). This clearly distinguishes it from sibling tools like draft_responsive_search_ad or create_custom_audience, which operate on different resources.

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?

It gives clear context by scoping use to 'image extensions / PMax asset groups', which helps an agent know when this tool applies. However, it never explicitly names alternatives or states when NOT to use it (e.g., other asset types like video or HTML5), so exclusions are left implicit.

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/wvuhskr/mcp-microsoft-ads'

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