get_category_mapping
Get the current category-mapping rules for a taxonomy (store categories → marketplace/taxonomy categories). Use this to read the existing category mapping of a taxonomy. The rule set is SHARED per project + taxonomy_code + locale (every feed on that taxonomy sees it). Address the taxonomy either by feed_id (its taxonomy is used) OR explicitly by taxonomy_code (+ optional taxonomy_locale). Returns {taxonomyCode, taxonomyLocale, rules:[{type, operator, storeCategoryIds, storeCategoryPaths, attribute, value, targetHash, targetPath}], total}. Use list_unmapped_categories to find gaps, search_target_categories to find a target, and set_category_mapping to fill them. project_id is OPTIONAL (inferred for a single-project customer).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_category_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed_id | No | ||
| project_id | No | ||
| taxonomy_code | No | Target taxonomy id (e.g. 'google'); alternative to feed_id for addressing the taxonomy. | |
| taxonomy_locale | No | Locale of the taxonomy tree, e.g. 'en_GB' — defaults to the taxonomy's own default when omitted. |