hub_rate_limit
Check your remaining Docker Hub pull-rate-limit budget before bulk image pulls. Sends an un-metered HEAD request to report limit, remaining, and reset window.
Instructions
Report the caller's remaining Docker Hub pull-rate-limit budget.
Sends a HEAD to the ratelimitpreview/test manifest (a HEAD isn't metered as a pull, so the
check costs no budget) and reads the RateLimit-Limit / RateLimit-Remaining headers. Call it
before a large compose_pull / image_pull to avoid hitting the cap mid-deploy. Credentials
raise the limit and switch metering from per-IP to per-account; falls back to
DOCKER_MCP_SERVER_REGISTRY_USERNAME / DOCKER_MCP_SERVER_REGISTRY_PASSWORD, does NOT read ~/.docker/config.json.
Plans with no limit return no headers - reported as "unlimited": true.
Args: username: Hub username (overrides DOCKER_MCP_SERVER_REGISTRY_USERNAME) password: Hub password/token (overrides DOCKER_MCP_SERVER_REGISTRY_PASSWORD)
Returns: dict: {"authenticated", "limit", "remaining", "window_seconds", "unlimited"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| username | No |