Summary
hookdeck connection pause and hookdeck connection unpause (and the equivalent hookdeck gateway connection … commands) currently take a positional argument documented as connection ID only. Users who work from hookdeck connection list often have the name handy; connection get already accepts name or ID via resolveConnectionID in pkg/cmd/connection_get.go, but pause/unpause pass the argument straight to the API.
Expected behavior
- Accept the same name-or-ID resolution as
connection get: try ID (including conn_ / web_ prefix path), then list/filter by name; surface the existing ambiguous-name error when multiple connections share a name.
Suggested implementation
- Reuse
resolveConnectionID before PauseConnection / UnpauseConnection in pkg/cmd/connection_pause.go and pkg/cmd/connection_unpause.go.
- Update
Use, Long, and cli.arguments annotations to say name or ID (mirror connection_get.go).
- MCP:
hookdeck_connections pause/unpause currently require an id field; extend tool handling (and tools.go / tool_help.go descriptions) so agents can pass a connection name as well—same resolution as the CLI.
References
resolveConnectionID: pkg/cmd/connection_get.go (approx. lines 180–211)
- Pause:
pkg/cmd/connection_pause.go
- Unpause:
pkg/cmd/connection_unpause.go
- MCP:
pkg/gateway/mcp/tool_connections.go (connectionsPause / connectionsUnpause)
Summary
hookdeck connection pauseandhookdeck connection unpause(and the equivalenthookdeck gateway connection …commands) currently take a positional argument documented as connection ID only. Users who work fromhookdeck connection listoften have the name handy;connection getalready accepts name or ID viaresolveConnectionIDinpkg/cmd/connection_get.go, but pause/unpause pass the argument straight to the API.Expected behavior
connection get: try ID (includingconn_/web_prefix path), then list/filter by name; surface the existing ambiguous-name error when multiple connections share a name.Suggested implementation
resolveConnectionIDbeforePauseConnection/UnpauseConnectioninpkg/cmd/connection_pause.goandpkg/cmd/connection_unpause.go.Use,Long, andcli.argumentsannotations to say name or ID (mirrorconnection_get.go).hookdeck_connectionspause/unpause currently require anidfield; extend tool handling (andtools.go/tool_help.godescriptions) so agents can pass a connection name as well—same resolution as the CLI.References
resolveConnectionID:pkg/cmd/connection_get.go(approx. lines 180–211)pkg/cmd/connection_pause.gopkg/cmd/connection_unpause.gopkg/gateway/mcp/tool_connections.go(connectionsPause/connectionsUnpause)