# Get User Goals (`get_user_goals`)

Part of the [Outfield MCP Server](https://run.outfieldapp.com/docs/mcp) docs. All tools: [llms.txt](https://run.outfieldapp.com/docs/mcp/llms.txt). Server URL: https://run.outfieldapp.com/mcp

Individual and combined goals for a user with progress for the period containing period_date (default: the current period).

Load structured individual and combined goals for a team member, including progress for the goal period containing period_date. Omit period_date for the current period. For example, pass a date from last week to load weekly-goal progress for last week. When the user asks about "my goals", omit user_id to load the authenticated user's goals. Pass user_id only when an admin asks about another team member. Goals are returned in configured order, up to 50 per call. If meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page. Use query to find a goal by name and goal_type to restrict results to individual or combined goals. If the user names a team, call get_user_profile first and pass organization_id. Omit organization_id to use the current organization.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Access: Admins can load any teammate's goals. Everyone else can load only their own.
- Example prompts: "How am I doing on my ABC goal this week so far?"; "How did I do against last week's goals?"

### Parameters

- `user_id` (integer; optional): Team-member ID. Omit when the user asks about their own goals. Only admins may load another user's goals.
- `query` (string; optional): Case-insensitive goal name search
- `goal_type` (string; optional; one of `individual`, `combined`): Goal type: individual or combined
- `period_date` (string; optional; YYYY-MM-DD): ISO date (YYYY-MM-DD) that selects the goal period used for progress_count. Omit for the current period.
- `limit` (integer; optional): Max goals returned per page. Default 50, max 50
- `cursor` (string; optional): Opaque pagination cursor from a previous response's meta.next_cursor. Pass this to fetch the next page when meta.has_more is true.
- `organization_id` (integer; optional): Organization ID from get_user_profile. Omit to use the current organization. If the user names a team, call get_user_profile first and pass that id.

### Notes

- Pass any date inside a previous period (for example last week) to see that period's progress.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_goals",
    "arguments": {
      "query": "ABC",
      "goal_type": "individual",
      "period_date": "2026-09-22"
    }
  }
}
```

### Example response (`structuredContent`, illustrative data)

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "goals": [
    {
      "name": "Weekly check-ins",
      "goal_type": "individual",
      "frequency": "weekly",
      "count": 12.0,
      "custom_due_date": "2026-09-29",
      "created_at": "2026-09-29T14:30:00-05:00",
      "progress_count": 12.0,
      "id": 9120
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "goal_count": 1,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

### Response fields

- `user` (object)
  - `id` (integer)
  - `name` (string | null)
  - `title` (string | null)
  - `role` (string)
  - `is_active` (boolean | null)
- `goals` (object[])
  - `name` (string | null)
  - `goal_type` (string): contact, individual, or combined
  - `frequency` (string | null)
  - `count` (number | null): Goal target
  - `custom_due_date` (string | null): ISO8601 date
  - `created_at` (string): ISO8601 timestamp
  - `progress_count` (number)
  - `id` (integer)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `goal_count` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)

Related tools: [get_user_goal_detail](https://run.outfieldapp.com/docs/mcp/tools/get_user_goal_detail.md), [search_users](https://run.outfieldapp.com/docs/mcp/tools/search_users.md), [get_user_performance](https://run.outfieldapp.com/docs/mcp/tools/get_user_performance.md)
