hub_rate_limit
Check your Docker Hub pull rate limit budget without costing a pull. Avoid deployment interruptions by verifying remaining capacity before pulling images.
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 / pull_image 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 - Optional Hub username (overrides DOCKER_MCP_SERVER_REGISTRY_USERNAME) password - Optional 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 |