Skip to main content
Glama

copy_ad_mapping_to_feed

DestructiveIdempotent

Copy the attribute mapping of an ad channel integration (ad_id) onto a feed of the same project. Use this to make a feed (e.g. a Custom Channel Layout feed) export what the integration sends, without mapping column by column. Each mapped attribute of get_ad_attributes is copied exactly (source attribute, constant, fallbacks, rule; empty fields are cleared) onto the feed column with the same code; with customColumnsAllowed a missing column is created (create_missing_columns, default true), named by the attribute code or, column_names:'label', its label. Skipped with a reason: not_mapped, wizard_step_value, no_matching_column, invalid_label, too_many_columns, duplicate_target (a second attribute for the same column) and the map_feed_attribute rejections; a copied item with a reason got its sources but not its rule. codes limits the copy. OVERWRITES the copied columns' mapping and detaches a rule the integration does not have. SAVE-ONLY: call export_feed afterwards. Returns {feedId, integrationId, status, copied:[{sourceCode, targetCode, changed, reason}], skipped:[{sourceCode, reason}], createdColumns, revisionBefore, revisionAfter}. ad_id from list_ads; project_id OPTIONAL.

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": {
      "ad_id": "<ad_id>",
      "feed_id": "<feed_id>"
    },
    "name": "copy_ad_mapping_to_feed"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYesintegrationId of the ad channel (from list_ads).
codesNoOnly these attribute codes (from get_ad_attributes); omit to copy every mapped attribute.
feed_idYesThe feed to copy onto (from list_feeds / create_feed).
project_idNo
column_namesNoHeader of a created column: the attribute code (default) or its label.
create_missing_columnsNoCreate a custom column for an attribute the feed lacks (default true; only on feeds that allow custom columns).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that copied columns' mappings are OVERWRITTEN, that a rule the integration lacks is detached, that the operation is save-only pending export_feed, and by enumerating every skip reason with its meaning (not_mapped, no_matching_column, invalid_label, duplicate_target, etc.). The destructiveHint=true annotation is corroborated rather than merely restated.

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?

Front-loads the core action in the first sentence and orders the rest logically (copy rules, skip reasons, `codes`, destructive warning, save-only, return shape). It is a dense run-on with heavy parentheticals that reward a careful read, but almost every clause carries actionable information.

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

Completeness5/5

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

Despite no output schema, the description spells out the return object (feedId, integrationId, status, copied, skipped, createdColumns, revisionBefore/After) and covers the save-only postcondition. For a destructive, multi-parameter copy tool this is complete enough to call 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 already 83%, yet the description still adds meaning: `codes` limits the copy, `create_missing_columns` defaults to true and only applies on feeds allowing custom columns, `column_names` chooses between attribute code and label, and project_id is optional. It omits a fallback note for project_id's purpose, but overall it enriches rather than repeats the 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?

States a precise verb and resource: copy the attribute mapping of an ad channel integration (ad_id) onto a feed in the same project. It contrasts itself with the column-by-column alternative and with map_feed_attribute's rejection reasons, so the agent can distinguish it from siblings without opening schemas.

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 a clear motivating use case (make a feed export what the integration sends without mapping column by column) and an explicit follow-up requirement: SAVE-ONLY, call export_feed afterwards. It also notes the `codes` parameter narrows the copy, but does not state when to prefer map_feed_attribute or copy_marketplace_mapping_to_feed instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources