clay routines get.
Arguments
| Argument | Description |
|---|---|
routineId | Routine id, e.g. function:t_abc123. Required. |
Flags
| Flag | Description |
|---|---|
--name <name> | Set the routine name (max 100 characters). |
--description <description> | Set the description. Pass an empty string to clear it. |
--entity-type <type> | Set the MCP entity type. One of contact or company. |
--integrations <csv> | Replace the full integration set. Comma-separated list of api, mcp, claygent, or the literal none to clear all integrations. An empty string is rejected. |
Output
Same shape asclay routines get — the updated routine, including access.integrations.
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | Missing update flags, invalid entity type, or invalid integration value. |
not_found | 6 | No routine with that id in this workspace. |
auth_forbidden | 3 | The API key lacks the cli:all scope (or all). |

