Skip to main content
Glama
mcp-microsoft-ads

mcp-microsoft-ads

by wvuhskr

upload_image_asset

Drafts PNG/JPEG image uploads for Microsoft Ads media libraries and Performance Max asset groups, returning a media ID on apply. Enforces file-size and pixel limits before confirmation.

Instructions

Draft an image upload to the account media library (for image extensions / PMax asset groups). Returns media id on apply. Valid PNG/JPEG only, at most 5 MiB and 20 million pixels (local safety limits). The file must remain byte-identical between preview and apply; otherwise create a new draft.

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_path": "<file_path>",
      "media_type": "<media_type>"
    },
    "name": "upload_image_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes
media_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and largely meets it: it discloses local safety limits, that the id only materializes on apply, the byte-identical requirement, and that AddMedia dedupes identical bytes back to an existing media id. It is weaker on the draft→apply mechanics (the schema has no apply/preview flag, so how the transition happens is only implied) and the parenthetical about the response being "unwrapped" is opaque.

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?

Purpose is front-loaded and the media_type list earns its space by supplying enum values the schema lacks. But the closing "Live-verified 2026-07-30, after fixing two live faults ... both noted above" sentence is development-history meta-commentary that does not help an agent invoke the tool, and "both noted above" adds redundancy.

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 2-parameter tool with no annotations and no output schema, the definition covers limits, aspect-ratio values, dedupe behavior, and the returned id. The remaining unanswered need is file_path format/expectations, which leaves an agent to guess at invocation input.

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 0%, so the description must compensate, and it does so strongly for media_type by enumerating the four valid aspect-ratio labels with examples in place of a missing enum. It says nothing about file_path — no hint whether it is an absolute local path, relative path, or URL — which is a real gap for the other required parameter.

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?

States a specific verb+resource ("Draft an image upload to the account media library") and scopes the use case to image extensions / PMax asset groups, plus the return value (media id on apply). An agent can tell exactly what this does and that no sibling in the catalog performs image uploads.

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?

Gives concrete usage context (image extensions, PMax asset groups) and hard preconditions: valid PNG/JPEG, ≤5 MiB, ≤20M pixels, and the file must stay byte-identical between preview and apply or a fresh draft is required. It does not name an alternative or explicitly state when not to use it, but the constraints function as gating criteria.

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