MCP tools
Det här innehållet är inte tillgängligt på ditt språk än.
These are the tools an assistant sees when it connects to the MCP server. The list is generated from the server itself, so it always matches what is in production. An account sees only the tools its permissions allow.
Values take the product value shape: attribute
code → channel code or "_" → locale code or "_" → value. File cells take media:<id>, an asset
code from the library or an https:// address, which is downloaded into the library once.
Server Current PIM, version 1.1.0: 16 tools.
| Tool | Changes data | Needs |
|---|---|---|
describe_catalog | No | Attributes: view |
search_products | No | Products: view |
get_product | No | Products: view |
get_product_history | No | Products: view |
propose_changes | Yes | Products: edit |
discard_draft | Yes | Products: edit |
create_product | Yes | Products: edit |
duplicate_product | Yes | Products: edit |
create_variants | Yes | Products: edit |
transition_products | Yes | Products: view |
list_comments | No | Products: view |
post_comment | Yes | Products: view |
search_assets | No | Assets: view |
update_asset | Yes | Assets: edit |
search_records | No | Reference data: view |
my_tasks | No | Products: view |
describe_catalog
Reads only Attributes: view
The catalog structure that products and their values follow, in the shapes of the PIM's API: channels with the locales and currencies they publish; active locales; attributes with their type, group, whether values vary by channel (scopable) and locale (localizable), validation settings, option codes of select attributes, measurement units and reference entity; families with their attributes, the attributes each channel requires and their variant structures; categories as codes with their parent (parents first); workflows with their state codes; association types (the kinds of links between products, with the fields a link's `data` takes); and reference entities (brands, suppliers, …, whose records search_records finds). Call it once at the start, or with `family` to get only that family and its attributes. Values are stored as attribute code → channel code or "_" → locale code or "_" → value, where "_" means the attribute doesn't vary by channel or locale. Shapes by type: text, textarea, richtext (HTML): string; number: number; boolean: true/false; date: "YYYY-MM-DD"; datetime: ISO 8601; select: option code; multiselect: list of option codes; price: list of {"amount": "12.50", "currency": "EUR"}; measurement: {"amount": 1.2, "unit": "KILOGRAM"}; image, file: "media:<id>" or an asset code; gallery: list of those; reference_single: record code; reference_multi: list of record codes; supplier: a supplier's code or name; table: list of rows.
| Parameter | Type | Description |
|---|---|---|
sections | list of string | The parts to return; default all. One of: channels, attributes, families, categories, workflows, association_types, reference_entities. |
family | string | A family code: return only this family and its attributes. |
search_products
Reads only Products: view
Find products, like the product grid: a full-text `search` (identifier and text values) plus `filters` that must all match. Returns a page of products with identifier, label, family, enabled, workflow state, completeness and quality score (0–100) in the channel and locale, and the values of the `attributes` you list, as display text. Use get_product for one product's full details. A filter is {field, operator, value}. Fields: identifier; family (family codes); categories (category codes; in_subtree includes subcategories); enabled; workflow_state (state codes); completeness and quality (0–100); created_at and updated_at (YYYY-MM-DD); values.<attribute code>. Operators by type: text: contains, starts_with, eq, ne; number, price, measurement: eq, ne, lt, lte, gt, gte, between ([low, high]); date: lt, gt, between; yes/no: eq; select, multi-select, reference, family: in, not_in (lists of codes); categories: in_subtree, in, not_in, empty. Every value attribute also takes empty and not_empty (no value). Price filters need `currency`; measurement filters may give `unit` (else the attribute's default unit). Value filters read values as the grid shows them: in the channel (else the value for all channels) and the locale (else the workspace's default locale), so to find values a locale lacks, filter on completeness instead. A listed value the locale lacks shows the default locale's text with its code, e.g. "Runner [en_US]". Search, filters and sorting compare only what your account may view: no filter matches a value it may not view, not even `empty`, and neither do completeness and quality of a channel or locale it may not view. Example, shoes missing required values in Swedish: filters [{"field":"family","operator":"in","value":["shoes"]},{"field":"completeness","operator":"lt","value":100}], locale "sv_SE"; get_product then lists what is missing.
| Parameter | Type | Description |
|---|---|---|
search | string | Full-text search over identifiers and text values. |
filters | list of object | Conditions that must all match. |
channel | string | Channel code; default: the workspace default channel. |
locale | string | Locale code, e.g. en_US; default: the workspace default locale. |
variants | string | variants: sellable products (simple products and the lowest level of variant trees); models: one row per variant tree, its root model, matching when any product of the tree matches; all: every product. One of: variants, models, all. |
attributes | list of string | Up to 10 attribute codes whose values to include as display text. |
sort | string | identifier, family, created_at, updated_at, completeness, quality or values.<attribute code>. |
direction | string | One of: asc, desc. |
page | integer | |
per_page | integer |
get_product
Reads only Products: view
One product as you need it to review or improve it, in a channel and locale: its family, categories, workflow state and variant position, then every attribute of its family that you may see, with the value it effectively has (inherited from its model included), the value as display text, whether the channel requires it, and for select attributes the option codes. Completeness lists the missing required attributes per channel and locale; quality gives the 0–100 score per channel and locale and, for the requested one, each check's score and messages. Both count every value but cover only the channels and locales you may view, and name only values you may view: `missing_hidden` is how many more required attributes are missing, and `withheld` marks a check that found more than its messages say. `transitions` lists the workflow moves out of the product's current state (for the requested channel and locale), whether your roles allow each, what its guards still require and whether it publishes; move products with transition_products. `my_draft` shows the changes you proposed and haven't had approved yet. A bundle lists its `bundle_components` with quantities and states (a component with `is_model` stands for one of its variants, which the customer picks); change them with propose_changes' `fields.associations.bundle_components`. `associations` lists the product's other links per association type and `availability` the channels with their own selling dates; both, and `enabled`, are proposed through propose_changes' `fields`. For each attribute, `cell` is where its value for this channel and locale is stored ({"channel": "_", "locale": "sv_SE"}; "_" means the attribute doesn't vary by it); send changes to exactly that cell with propose_changes. `stored_in` appears when the value is the channel default ("_"), which applies to every channel without a value of its own; a change in `cell` overrides it for this channel only. `inherited_from` names the model that owns the attribute: propose changes to it on that identifier instead. `access` is what you may do with the cell: view, edit (propose changes) or publish. When the locale has no value, `fallback` shows the default locale's.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The product identifier (SKU). |
channel | string | Channel code; default: the workspace default channel. |
locale | string | Locale code, e.g. sv_SE; default: the workspace default locale. |
get_product_history
Reads only Products: view
A product's versions, newest first: who wrote each (and who approved it), why (manual, import, rule, bulk, workflow, api, supplier, ai, restore, translation, automation) and how many things it changed. Give `version` to read what that version changed: each property, value cell (before and after, as display text), the categories and the links it added and removed. Use it to see what a reviewer changed after your proposal, or what a value was before. Cells you may not view are left out.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The product identifier (SKU). |
version | integer | A version number: answer with that version's changes. |
before | integer | List versions older than this number (the previous page's `older_than`). |
locale | string | Locale for labels and display text; defaults to the workspace's default locale. |
propose_changes
Proposes or changes Products: edit
Propose changes to one product. They never change the product directly: they are saved as your draft of it, which a person reviews and approves (merging it into the product) or rejects with a note. Call it again to add more changes to the same draft; set `submit` to true (on the last call, with all changes at once, or alone to submit the draft as it is) to hand the draft to reviewers. Changing a draft that is waiting for review or was rejected takes it back to in_progress, so submit it again. discard_draft throws the draft away. `values` uses the stored shape and only needs the cells you change: attribute code → channel code or "_" → locale code or "_" → value, e.g. {"description": {"ecommerce": {"sv_SE": "Lätt löparsko"}}}; null clears a cell. Write each cell exactly where get_product's `cell` says, and use option codes, record codes and units from describe_catalog. A variant inherits some attributes from its model (get_product's `inherited_from`): propose those on the model. `categories`, when given, is the complete list of category codes the product should be in. `fields` proposes product fields: `enabled` (true or false); `availability`, channel code → {"enabled": false, "from": "2026-12-01", "until": "2027-01-31"} (any of the three; null sells it every day again; only the channels you give change); and `associations`, association type code → the complete ordered list of links, e.g. {"cross_sell": [{"target": "SOCK-1"}]}. A bundle's contents are the type "bundle_components" with a quantity: [{"target": "SHOE-1", "data": {"quantity": 2}}]. Identifier, family, parent and the bundle flag can't be proposed. `note` tells the reviewer why, and what you could not verify. Changes are checked as if they were saved (types, options, validation rules, link targets, your permission scopes), and invalid changes are refused with the reason per cell or field; nothing is saved then. Cells and fields equal to the product's current state drop out of the draft.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The product identifier (SKU). |
values | object | Changed cells: attribute code → channel code or "_" → locale code or "_" → value (null clears). |
categories | list of string | The complete list of category codes the product should be in. |
fields | object | Product fields to change. |
note | string | A short note for the reviewer: why, and what you could not verify. |
submit | boolean | Hand the draft to reviewers after saving. |
discard_draft
Proposes or changes Products: edit
Throw away your draft of one product: everything you proposed for it and haven't had approved yet, also when it waits for review (its review task is withdrawn) or was rejected. The product itself is not touched. Use it when a proposal was a mistake; to change part of a draft, call propose_changes again instead.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The product identifier (SKU). |
create_product
Proposes or changes Products: edit
Create a new product. It is created at once but as an empty, disabled shell (identifier and family only), which no channel, feed or shop shows; everything else you give (`values`, `categories`, `fields`, `note`, in propose_changes' shapes) is saved as your draft of it for a person to review, and `submit: true` hands that draft to reviewers. Propose `fields: {"enabled": true}` in the draft when the product should be switched on once approved. Check with search_products that the identifier doesn't exist, and take the family (and its attributes, options and variant structures) from describe_catalog. Give `variant_structure` to create the root model of a variant tree, then add its variants with create_variants. `is_bundle: true` creates a bundle, whose contents you propose as `fields.associations.bundle_components`. If the draft is refused (an invalid value, a cell you may not change), the shell still exists: fix what the answer lists and send it with propose_changes.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The new product's identifier (SKU). |
family (required) | string | The family code; it decides which attributes the product has. |
variant_structure | string | A variant structure of the family: makes the product the root model of a variant tree. |
is_bundle | boolean | Create a bundle (a fixed set of other products). |
values | object | Changed cells: attribute code → channel code or "_" → locale code or "_" → value (null clears). |
categories | list of string | The complete list of category codes the product should be in. |
fields | object | Product fields to change. |
note | string | A short note for the reviewer: why, and what you could not verify. |
submit | boolean | Hand the draft to reviewers after saving. |
duplicate_product
Proposes or changes Products: edit
Copy a product under a new identifier: the same family, values, categories and links (a bundle's contents too), created at once but disabled, so no channel, feed or shop shows it until a person enables it or approves your proposal to. Values of unique attributes (such as an EAN) and files the source owns itself are left out and listed in `dropped`. A root model is copied as an empty model of the same structure, without its variants; a variant can't be duplicated (use create_variants on its model). The copy is refused when the source holds values you may not edit yourself (prices, for instance): create the product with create_product and propose the values you may change instead. Change what should differ in the copy with propose_changes.
| Parameter | Type | Description |
|---|---|---|
source (required) | string | The identifier of the product to copy. |
identifier (required) | string | The copy's identifier (SKU). |
create_variants
Proposes or changes Products: edit
Add variants one level below a model of a variant tree (get_product's `variant.is_model` is true). Each variant needs an identifier and a value for every axis of its level, e.g. {"identifier": "SHOE-RED", "axes": {"color": "red"}}; describe_catalog lists a family's variant structures with the axes per level, and option codes are the axis values of select attributes. A structure with two levels needs the first level's models before their variants: call the tool once per model. The variants are created at once, all or none, but disabled, so nothing shows them until a person enables them or approves your proposal to (propose_changes with fields {"enabled": true}). Their other values go through propose_changes; a variant can't repeat an axis combination its model already has.
| Parameter | Type | Description |
|---|---|---|
model (required) | string | The identifier of the model the variants go under. |
variants (required) | list of object | The variants to create. |
transition_products
Proposes or changes Products: view
Move products along their workflow, e.g. from draft to in review once their data is complete. get_product's `transitions` lists the transitions out of a product's current state with whether your roles allow each and what its guards still require (completeness, quality, translations). The move applies in the scope the channel and locale fall in; workflows that aren't scoped ignore them. Each product is moved or skipped on its own, and the answer lists each skipped product with the reason (it isn't in the transition's starting state, your roles don't allow it, a guard fails). Transitions into a state that publishes are refused here: publishing is a person's decision. A workflow move changes no product data; your draft, if any, is reviewed separately.
| Parameter | Type | Description |
|---|---|---|
identifiers (required) | list of string | The products to move. |
transition (required) | string | The transition's code, from get_product's `transitions`. |
channel | string | Channel code; defaults to the workspace's default channel. |
locale | string | Locale code; defaults to the workspace's default locale. |
note | string | A note recorded with the move. |
list_comments
Reads only Products: view
The comment threads on a product, oldest first: what colleagues asked or decided about it, each with its replies, who wrote it, whether it is resolved and the cell it points at (`cell`, absent for a comment on the product as a whole). Read them before proposing changes: a thread often says what a reviewer wants. Answer one with post_comment's `reply_to`.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The product identifier (SKU). |
attribute | string | Only threads on this attribute's cells. |
open_only | boolean | Leave resolved threads out. |
post_comment
Proposes or changes Products: view
Post a comment on a product, shown to everyone who can see it and marked as written through an AI assistant. Use it to ask a colleague instead of guessing (a fact you can't verify, a choice between options), or to answer a thread with `reply_to` (a comment id from list_comments). Give `attribute` (with the `channel` and `locale` of get_product's `cell`) to point the comment at one value. `mention` takes colleagues' names or email addresses; they get a notification. Comments change no product data; to explain a proposal to its reviewer, use propose_changes' `note`.
| Parameter | Type | Description |
|---|---|---|
identifier (required) | string | The product identifier (SKU). |
body (required) | string | The comment, as plain text. |
attribute | string | Attribute code, to comment on one value. |
channel | string | The cell's channel code, or "_" (default) when the attribute doesn't vary by channel. |
locale | string | The cell's locale code, or "_" (default) when the attribute doesn't vary by locale. |
reply_to | integer | The id of a comment to answer; the reply joins that thread. |
mention | list of string | Colleagues to notify, by name or email address. |
search_assets
Reads only Assets: view
Find files in the asset library (pictures, PDFs, documents, videos) by words that must all be found in its code, file names, title, caption, alt text, tags, field values or metadata, or (from three characters) in the SKU of a product using the file, a few seconds after that product was saved; narrowed by the SKUs of products using the file, tags, kinds, an asset category, a collection, a supplier, usage rights, use, the days it was added, a picture's orientation and size in pixels, a file's size in bytes, or the workspace's own select and yes/no asset fields. An asset's `code` is what a product's image, file, gallery and file-list cells take in propose_changes. Each result gives the file's name, type and size in bytes, a picture's width, height and orientation as it is shown, its texts per locale, its tags, how many products use it (counted nightly), `rights`, its `status` (draft, approved or archived) and whether it is `deliverable`: only approved files whose rights allow it today reach feeds and shops, so don't propose others. Files with an empty alt text can be described with update_asset.
| Parameter | Type | Description |
|---|---|---|
search | string | Words to find: every word must be in the asset, in any of its code, file names, title, caption, alt text, tags, field values or metadata, or (words of three characters or more) anywhere in the SKU of a product that uses the file, its own or inherited from a model. |
product | string | A SKU: only files a product with exactly this SKU uses (case is ignored). |
products | list of string | Up to 100 SKUs: only files one of these products uses. |
tag | string | Only assets with this tag (case is ignored). |
tags | list of string | Only assets with all of these tags. |
kind | string | Only files of this kind. One of: image, pdf, document, spreadsheet, presentation, video, audio, archive, other. |
kinds | list of string | Only files of one of these kinds. One of: image, pdf, document, spreadsheet, presentation, video, audio, archive, other. |
category | string | An asset category code: only assets filed in it or below. |
uncategorized | boolean | Only assets filed in no category. |
rights | string | Only assets in this usage-rights state. One of: ok, not_yet, expiring, expired. |
status | string | Only assets in this status: "approved" files may leave the PIM, "draft" ones wait for approval, "archived" ones are no longer used. One of: draft, approved, archived. |
unused | boolean | Only assets no product or open draft uses (counted nightly). |
duplicates | boolean | Only pictures that have a near duplicate. |
collection | string | An asset collection code: only assets in it. |
supplier | string | A supplier code: only files that came from that supplier. |
from | string | Only assets added on or after this day (YYYY-MM-DD). |
to | string | Only assets added on or before this day (YYYY-MM-DD). |
orientation | string | Only pictures that lie this way, as they are shown. One of: landscape, portrait, square. |
min_width | integer | Only pictures at least this many pixels wide. |
max_width | integer | Only pictures at most this many pixels wide. |
min_height | integer | Only pictures at least this many pixels high. |
max_height | integer | Only pictures at most this many pixels high. |
min_size | integer | Only files of at least this many bytes. |
max_size | integer | Only files of at most this many bytes. |
fields | object | The workspace's own asset fields to narrow by, of select or yes/no type: field code => an option code or a list of them (any of them matches), or true or false. Several fields must all match. |
sort | string | "size" is largest first, "taken" newest picture first. One of: newest, oldest, name, size, taken. |
page | integer |
update_asset
Proposes or changes Assets: edit
Describe a file of the asset library: its alt text, title and caption per locale, and its tags. Unlike product changes, this is saved at once (assets have no review), is recorded in the audit log and reaches every product that uses the file, so fill what is empty and only replace a text a person wrote when you were asked to. `alt_text`, `title` and `caption` map locale codes to text and change only the locales you give (an empty string clears one); `tags`, when given, is the complete list (at most 30 unless the workspace set another cap; a tag the library already has is written the way the library writes it, whatever case you give). You can't see the picture: describe only what the file's name, its existing texts and the products that use it tell you.
| Parameter | Type | Description |
|---|---|---|
code (required) | string | The asset's code, from search_assets. |
alt_text | object | Locale code → alt text (at most 500 characters). |
title | object | Locale code → title. |
caption | object | Locale code → caption. |
tags | list of string | The complete list of tags. |
search_records
Reads only Reference data: view
Find reference records (brands, materials, colours, …) of one reference entity, to use their codes as values of reference attributes: an attribute's `reference_entity` in describe_catalog names its entity. Search by code or by any text in the record, or give `codes` to look specific records up. A reference_single value is one record code, a reference_multi value a list of codes. Records are curated by people: when the one you need is missing, say so in a comment or your draft's note instead of using another.
| Parameter | Type | Description |
|---|---|---|
entity (required) | string | The reference entity's code, e.g. "brand". |
search | string | Text to find in the records' codes and values. |
codes | list of string | Look these record codes up instead of searching. |
my_tasks
Reads only Products: view
Work waiting for you. `tasks` are the open tasks offered to your roles on products you may see, earliest due first: "enrich" asks for the missing values it lists, "workflow" for the work of a workflow state (such as finishing a product in draft). `drafts` are the changes you proposed that aren't approved yet: in_progress (saved, not submitted), ready_for_review (waiting for a reviewer) and rejected (sent back with the reviewer's note; rework them with propose_changes, which takes the draft back to in_progress, and submit again).
| Parameter | Type | Description |
|---|---|---|
type | string | Only tasks of this type. One of: review_draft, workflow, enrich, translate, supplier_submission, review_automation. |
page | integer |