pm_get_workspace_context
Single-call workspace orientation: members, spaces (with folders, lists, per-list statuses/priorities/taskTypes/customFields), workspace-level taskTypes, relationshipTypes, tags. The biggest agent-onboarding tool — call it first when starting in a new workspace. Folders nest at any depth: every folder has its own lists and its sub-folders in folders (same shape), so walk folders recursively to find every list. Only what you can see is returned; anything visible inside a folder you can't see is listed under the nearest visible parent. Pass shallow=true to skip per-list statuses/priorities for a faster tree-only response. Each per-list custom field carries an isMandatory flag — fields with isMandatory=true MUST be supplied in customFields when creating/updating a task in that list, or the write is rejected with 400 VALIDATION_ERROR. API-key scope: workspaces:read.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pm_get_workspace_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | No | Narrow to one space by name (exact match) | |
| account | No | Multi-account auth only: name of the account from X-Dutify-Accounts to use for this call. Ignored in single-account mode (X-API-Key header). When multiple accounts are configured and this is omitted, the call fails with ACCOUNT_REQUIRED listing the available names. list_accounts never requires a selection. | |
| shallow | No | Skip per-list statuses/priorities (faster) | |
| workspace | No | Workspace identifier or exact name for this call. Overrides the configured workspace. For personal keys, discover candidates with list_workspaces and select explicitly. Does not change other calls or expand a workspace key's access. | |
| includeTags | No | Default true | |
| includeTaskTypes | No | Default true | |
| includeCustomFields | No | Default true | |
| includeRelationshipTypes | No | Default true |