Skip to main content
Glama

copy_marketplace_mapping_to_feed

DestructiveIdempotent

Copy the attribute mapping of a marketplace integration (marketplace_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_marketplace_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}. marketplace_id from list_marketplaces; 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": {
      "marketplace_id": "<marketplace_id>",
      "feed_id": "<feed_id>"
    },
    "name": "copy_marketplace_mapping_to_feed"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesNoOnly these attribute codes (from get_marketplace_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.
marketplace_idYesintegrationId of the marketplace (from list_marketplaces).
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 past the annotations by disclosing that copied columns' mapping is OVERWRITTEN and that a rule the integration lacks is detached, plus save-only semantics and the full returns shape. It also enumerates skipped reasons and distinguishes partially copied items ('got its sources but not its rule'), which is exactly the behavioral detail an agent needs before a destructive call.

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-loaded with purpose, then usage, then effects, then return shape — a sensible ordering. The long enumeration of skip reasons and parenthetical defaults makes sentences dense and slightly run-on, but nearly every clause conveys 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?

For a destructive, multi-effect tool with no output schema, the description covers side effects, save-only behavior, skip/failure taxonomy, and the exact return payload. An agent has everything needed to call it and interpret the result.

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?

With 83% schema coverage the schema already carries most meanings, but the description adds the source of marketplace_id (list_marketplaces), marks project_id OPTIONAL, and explains that codes limits the copy and that create_missing_columns only applies to feeds allowing custom columns. That is meaningful value beyond the schema text.

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 and resource ('Copy the attribute mapping of a marketplace integration onto a feed') and scopes it to the same project. It is clearly distinguishable from column-by-column mapping via map_feed_attribute and from the ad-specific sibling copy_ad_mapping_to_feed.

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 an explicit motivating use case ('make a feed export what the integration sends, without mapping column by column') plus a critical follow-up instruction ('SAVE-ONLY: call export_feed afterwards'). It stops short of naming map_feed_attribute as the alternative to reject, but the when-to-use is unambiguous.

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