get_tags
Pack: dockerhub · Endpoint: https://gateway.pipeworx.io/dockerhub/mcp
List available tags for a Docker image sorted by recency. Returns tag name, digest, size, and push date. Use to find and select specific versions to pull.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
namespace | string | yes | Repository namespace (use “library” for official images) |
name | string | yes | Repository name |
limit | number | no | Number of tags to return (default 20, max 100) |
Example call
Arguments
{
"namespace": "library",
"name": "postgres"
}
curl
curl -X POST https://gateway.pipeworx.io/dockerhub/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_tags","arguments":{"namespace":"library","name":"postgres"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_tags', {
"namespace": "library",
"name": "postgres"
});
More examples
{
"namespace": "library",
"name": "node",
"limit": 50
}
Response shape
Always returns: total, tags
| Field | Type | Description |
|---|---|---|
total | number | Total number of available tags |
tags | array | List of available tags for the image |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of available tags"
},
"tags": {
"type": "array",
"description": "List of available tags for the image",
"items": {
"type": "object",
"properties": {
"tag": {
"type": "string",
"description": "Tag name (e.g., 'latest', '1.21.0')"
},
"digest": {
"type": [
"string",
"null"
],
"description": "Image digest (SHA256 hash)"
},
"size_bytes": {
"type": "number",
"description": "Image size in bytes"
},
"last_pushed": {
"type": [
"string",
"null"
],
"description": "ISO timestamp of last push or update"
},
"status": {
"type": "string",
"description": "Tag status (e.g., 'active')"
}
},
"required": [
"tag",
"digest",
"size_bytes",
"last_pushed",
"status"
]
}
}
},
"required": [
"total",
"tags"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"dockerhub": {
"url": "https://gateway.pipeworx.io/dockerhub/mcp"
}
}
}
See Getting Started for client-specific install steps.