set_parts
Pack: rebrickable · Endpoint: https://gateway.pipeworx.io/rebrickable/mcp
Fetch the full parts list for a LEGO set by set_num from Rebrickable. Returns each part’s part_num, name, color, quantity, and image URL.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
set_num | string | yes |
Example call
Arguments
{
"set_num": "75368-1"
}
curl
curl -X POST https://gateway.pipeworx.io/rebrickable/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_parts","arguments":{"set_num":"75368-1"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('set_parts', {
"set_num": "75368-1"
});
Response shape
| Field | Type | Description |
|---|---|---|
count | number | Total number of parts |
next | string | null | URL to next page |
previous | string | null | URL to previous page |
results | array | Array of part objects in set |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of parts"
},
"next": {
"type": [
"string",
"null"
],
"description": "URL to next page"
},
"previous": {
"type": [
"string",
"null"
],
"description": "URL to previous page"
},
"results": {
"type": "array",
"description": "Array of part objects in set",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Inventory ID"
},
"part": {
"type": "object",
"properties": {
"part_num": {
"type": "string",
"description": "Part number"
},
"name": {
"type": "string",
"description": "Part name"
},
"part_cat_id": {
"type": "number",
"description": "Part category ID"
}
}
},
"color": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Color ID"
},
"name": {
"type": "string",
"description": "Color name"
},
"rgb": {
"type": "string",
"description": "RGB hex code"
}
}
},
"quantity": {
"type": "number",
"description": "Quantity of this part"
},
"is_spare": {
"type": "boolean",
"description": "Whether this is a spare part"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"rebrickable": {
"url": "https://gateway.pipeworx.io/rebrickable/mcp"
}
}
}
See Getting Started for client-specific install steps.