get_departments
Pack: art · Endpoint: https://gateway.pipeworx.io/art/mcp
List all departments in the Met collection (e.g., “Paintings”, “Sculpture”, “Photographs”). Use department names to filter search_artworks results.
Example call
Arguments
{}
curl
curl -X POST https://gateway.pipeworx.io/art/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_departments","arguments":{}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_departments', {});
Response shape
Always returns: count, departments
| Field | Type | Description |
|---|---|---|
count | number | Total number of departments |
departments | array |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of departments"
},
"departments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Department ID"
},
"name": {
"type": "string",
"description": "Department display name"
}
},
"required": [
"id",
"name"
]
}
}
},
"required": [
"count",
"departments"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"art": {
"url": "https://gateway.pipeworx.io/art/mcp"
}
}
}
See Getting Started for client-specific install steps.