get_attribute
Fetch details of a global product attribute from WooCommerce by ID, with optional field selection to limit response data.
Instructions
Get details of a global product attribute. Use list_attribute_terms with the attribute ID to see its values. Use fields param to request only needed fields.
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": {
"id": "<id>"
},
"name": "get_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attribute ID | |
| fields | No | Comma-separated fields to return (default: id,name,slug,type,order_by) |