# Get User Goal Detail (`get_user_goal_detail`)

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

One goal with progress for its 12 most recent periods. One-time goals return a single value for their full window.

Load an accessible team member goal with progress for its 12 most recent configured periods. Use get_user_goals first to identify the goal ID. Omit user_id for your own goals; only admins may request another team member. Omit end_period for the current period; provide an ISO date to end the history at the goal period containing that date. One-time goals return one progress value for their full created-at-through-due-date period. 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: Only admins may request another teammate's goal.
- Example prompts: "Show my ABC goal trend over the last quarter."

### Parameters

- `goal_id` (integer; required): Goal ID from get_user_goals
- `user_id` (integer; optional): Team-member ID that owns the goal. Omit for your own goals. Only admins may use another user.
- `end_period` (string; optional; YYYY-MM-DD): ISO date (YYYY-MM-DD) selecting the final goal period. Omit for the current period.
- `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.

### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_goal_detail",
    "arguments": {
      "goal_id": 9120,
      "end_period": "2026-09-29"
    }
  }
}
```

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

```json
{
  "goal": {
    "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",
    "id": 9120,
    "progress_counts": [
      {
        "period_date": "2026-09-29",
        "progress_count": 12.0
      }
    ]
  },
  "meta": {
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

### Response fields

- `goal` (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
  - `id` (integer)
  - `progress_counts` (object[])
    - `period_date` (string): ISO8601 date selecting the goal period
    - `progress_count` (number)
- `meta` (object)
  - `organization_id` (integer)
  - `organization_name` (string)

Related tools: [get_user_goals](https://run.outfieldapp.com/docs/mcp/tools/get_user_goals.md)
