WooCommerce
WooCommerce Product Attribute Terms
Read public terms from a specified WooCommerce store.
MCP tool name
nexscope_woocommerce_product_attribute_termsMCP endpoint
https://api.nexscope.ai/mcpJSON-RPC method
tools/callAuthentication
Use OAuth 2.1 Authorization Code with PKCE and the mcp:tools scope. API keys remain supported as a compatibility option.
Authorization: Bearer nk-xxxxxxxxxxxxxxxxxIf authentication fails, ask the user to open API Access and copy a valid key.
Call this MCP tool
Initialize an MCP 2025-11-25 Streamable HTTP session at https://api.nexscope.ai/mcp, then use tools/call.
{
"jsonrpc": "2.0",
"id": "woocommerce-product-attribute-terms-1",
"method": "tools/call",
"params": {
"name": "nexscope_woocommerce_product_attribute_terms",
"arguments": {
"attributeId": "1",
"storeUrl": "https://example.com"
}
}
}MCP 2025-11-25 Β· Streamable HTTPProgress is delivered on the original POST SSE response. GET SSE carries notifications; reconnecting must query existing asynchronous work rather than submit again.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
storeUrl | string | required | Public HTTPS store root or WordPress installation path. Example: https://example.com |
attributeId | string | required | Store-scoped attribute ID. Example: 1 |
Response fields
Treat structuredContent as the programmatic API response payload.
| Name | Type | Required | Description |
|---|---|---|---|
code | integer | required | 0 means accepted or successful; nonzero is a platform error. |
cost | string | required | Elapsed milliseconds, never credits; -1 outside web requests. |
data | any | required | Data value used by this API operation. |
msg | string | null | required | Msg value used by this API operation. |
time | string | required | Server local time: yyyy-MM-dd HH:mm:ss. |
traceId | string | null | required | Trace id value used by this API operation. |
ts | string | required | Epoch milliseconds. |
Any of option 1 β requires storeUrl, fetchedAt, cacheHit, terms
| Name | Type | Required | Description |
|---|---|---|---|
data | object | required | Data value used by this API operation. |
data.cacheHit | boolean | required | Whether the response was served from the anonymous 60-second cache. Example: false |
data.fetchedAt | string | required | Fetch time in epoch milliseconds; preserved on cache hits. Example: 1792972800000 |
data.storeUrl | string | required | Normalized store identity. Example: https://example.com |
data.terms | array | required | Normalized public data. Missing optional values are null or empty strings. Example: [] |
data.terms[] | object | required | Normalized public data. Missing optional values are null or empty strings. |
data.terms[].count | any | optional | Associated product count, null when unavailable. |
data.terms[].description | string | required | Plain text or public URL; empty when unavailable. Images are not fetched. Example: |
data.terms[].id | string | required | Store-scoped ID string. Example: 1 |
data.terms[].imageUrl | string | required | Plain text or public URL; empty when unavailable. Images are not fetched. Example: |
data.terms[].name | string | required | Plain text name. Example: Color |
data.terms[].parentId | any | optional | Parent ID; 0 is a root term, null means unavailable. |
data.terms[].slug | string | required | Plain text or public URL; empty when unavailable. Images are not fetched. Example: blue |
data.terms[].url | string | required | Plain text or public URL; empty when unavailable. Images are not fetched. Example: |
Any of option 1
| Name | Type | Required | Description |
|---|---|---|---|
data.terms[].count | integer | optional | Associated product count, null when unavailable. Example: 1 |
Any of option 2
| Name | Type | Required | Description |
|---|---|---|---|
data.terms[].count | null | optional | Associated product count, null when unavailable. |
Any of option 1
| Name | Type | Required | Description |
|---|---|---|---|
data.terms[].parentId | string | optional | Parent ID; 0 is a root term, null means unavailable. Example: 0 |
Any of option 2
| Name | Type | Required | Description |
|---|---|---|---|
data.terms[].parentId | null | optional | Parent ID; 0 is a root term, null means unavailable. |
Any of option 2
| Name | Type | Required | Description |
|---|---|---|---|
data | null | required | Data value used by this API operation. |
Examples
Example arguments
{
"attributeId": "1",
"storeUrl": "https://example.com"
}Example structuredContent
{
"code": 0,
"cost": "-1",
"data": {
"cacheHit": false,
"fetchedAt": "1792972800000",
"storeUrl": "https://example.com",
"terms": [
{
"count": 1,
"description": "",
"id": "1",
"imageUrl": "",
"name": "Color",
"parentId": "0",
"slug": "blue",
"url": ""
}
]
},
"msg": null,
"time": "2026-01-01 00:00:00",
"traceId": null,
"ts": "0"
}