One Horizon icon

One Horizon

Run One Horizon MCP tools from n8n

List Completed Work

AI-generated

Summary

Calls the One Horizon MCP server's list-completed-work tool to retrieve task records filtered by optional date, team, and user criteria.

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).
  • startDate — Optional start date (ISO datetime) for filtering completed work.
  • endDate — Optional end date (ISO datetime) for filtering completed work.
  • includeInitiatives — Whether to include initiative-scope tasks in the results. Defaults to true.

Output shape

A list of items, each containing a JSON object with the raw tool response, including metadata, content, and error flags.

Returns structured JSON data via the MCP protocol. The 'text' field contains extracted text from the response content, and 'rawResult' holds the complete server response.

Examples

Example 1: Fetch all completed tasks for a specific team without date filtering.

Set Team ID and leave other filters blank.

Example 2: Retrieve completed tasks between two specific dates.

Set Start Date and End Date.

Example 3: Get completed tasks for a specific user within a date range.

Set User ID, Start Date, and End Date.

Links

Discussion