One Horizon icon

One Horizon

Run One Horizon MCP tools from n8n

List Planned Work

AI-generated

Summary

Queries the One Horizon MCP endpoint to retrieve a list of planned tasks, optionally filtered by team or user, and optionally including initiative-scope tasks.

Inputs

  • endpointUrl (required) — One Horizon MCP endpoint URL (defaults to https://mcp.onehorizon.ai/mcp).
  • teamId — Optional team ID filter.
  • userId — Optional user ID filter (requires Team ID for team-scoped queries).
  • includeInitiatives — Whether to include initiative-scope tasks (defaults to true).

Output shape

A list of items, each containing JSON data with the raw MCP response, extracted text content, and metadata.

The operation calls the 'list-planned-work' MCP tool. Returns a list of items; each item's '' property includes the full 'rawResult', parsed 'text', 'content', and metadata such as 'contentCount' and 'contentTypes'.

Examples

Example 1: Retrieve all planned work for a specific team.

Set 'teamId' to the target team ID; leave 'userId' and 'includeInitiatives' as defaults.

Example 2: Retrieve planned work for a specific user within a team.

Set both 'teamId' and 'userId'; leave 'includeInitiatives' as defaults.

Example 3: Retrieve planned work including initiative-level tasks.

Set 'includeInitiatives' to true; optionally filter by 'teamId' or 'userId'.

Links

Discussion