# Goals

## get_goals

`TOOL get_goals`

Get list of goals for the authenticated user's organization

Authentication: no security requirement declared for this operation.

Parameters:

- `page` (argument, number, optional) - Page number for pagination
  Type: number
  
  Page number for pagination
  
  default: 1

- `limit` (argument, number, optional) - Number of items per page
  Type: number
  
  Number of items per page
  
  default: 10

- `search` (argument, string, optional) - Search term for goal name or description
  Type: string
  
  Search term for goal name or description

- `relations` (argument, array, optional) - Relations to include (e.g., ["ownerTeam", "ownerEmployee", "keyResults"])
  Type: array
  
  Relations to include (e.g., ["ownerTeam", "ownerEmployee", "keyResults"])
  
  Items:
    Type: string

- `level` (argument, string, optional) - Filter by goal level
  Type: string
  
  Filter by goal level
  
  enum: ["ORGANIZATION","TEAM","EMPLOYEE"]

- `ownerEmployeeId` (argument, string, uuid, optional) - Filter by owner employee ID
  Type: string, uuid
  
  Filter by owner employee ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `ownerTeamId` (argument, string, uuid, optional) - Filter by owner team ID
  Type: string, uuid
  
  Filter by owner team ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `status` (argument, string, optional) - Filter by goal status
  Type: string
  
  Filter by goal status

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_goals",
    "arguments": {
        "page": 1,
        "limit": 10,
        "search": "string",
        "relations": [
          "string"
        ],
        "level": "ORGANIZATION",
        "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
        "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
        "status": "string"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_goals",
  "arguments": {
    "page": 1,
    "limit": 10,
    "search": "string",
    "relations": [
      "string"
    ],
    "level": "ORGANIZATION",
    "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
    "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
    "status": "string"
  }
});
```

### Python

```python
result = await session.call_tool("get_goals", arguments={
  "page": 1,
  "limit": 10,
  "search": "string",
  "relations": [
    "string"
  ],
  "level": "ORGANIZATION",
  "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
  "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "string"
})
```


## get_goal_count

`TOOL get_goal_count`

Get goal count in the authenticated user's organization

Authentication: no security requirement declared for this operation.

Parameters:

- `level` (argument, string, optional) - Filter by goal level
  Type: string
  
  Filter by goal level
  
  enum: ["ORGANIZATION","TEAM","EMPLOYEE"]

- `ownerEmployeeId` (argument, string, uuid, optional) - Filter by owner employee ID
  Type: string, uuid
  
  Filter by owner employee ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `ownerTeamId` (argument, string, uuid, optional) - Filter by owner team ID
  Type: string, uuid
  
  Filter by owner team ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `status` (argument, string, optional) - Filter by goal status
  Type: string
  
  Filter by goal status

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_goal_count",
    "arguments": {
        "level": "ORGANIZATION",
        "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
        "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
        "status": "string"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_goal_count",
  "arguments": {
    "level": "ORGANIZATION",
    "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
    "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
    "status": "string"
  }
});
```

### Python

```python
result = await session.call_tool("get_goal_count", arguments={
  "level": "ORGANIZATION",
  "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
  "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
  "status": "string"
})
```


## get_goal

`TOOL get_goal`

Get a specific goal by ID

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The goal ID
  Type: string, uuid
  
  The goal ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `relations` (argument, array, optional) - Relations to include (e.g., ["ownerTeam", "ownerEmployee", "keyResults", "alignedGoals"])
  Type: array
  
  Relations to include (e.g., ["ownerTeam", "ownerEmployee", "keyResults", "alignedGoals"])
  
  Items:
    Type: string

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_goal",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "relations": [
          "string"
        ]
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_goal",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "relations": [
      "string"
    ]
  }
});
```

### Python

```python
result = await session.call_tool("get_goal", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "relations": [
    "string"
  ]
})
```


## create_goal

`TOOL create_goal`

Create a new goal in the authenticated user's organization

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

- `goal_data` (required)
  Type: object
  
  The data for creating the goal
  
  - `name` (required)
    Type: string
    
    The goal name (required)
  
  - `deadline` (required)
    Type: string
    
    The deadline (required)
  
  - `level` (required)
    Type: string
    
    The level (required)
  
  Additional properties: 
    Type: unknown

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_goal",
    "arguments": {
        "goal_data": {
          "name": "string",
          "deadline": "string",
          "level": "string"
        }
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "create_goal",
  "arguments": {
    "goal_data": {
      "name": "string",
      "deadline": "string",
      "level": "string"
    }
  }
});
```

### Python

```python
result = await session.call_tool("create_goal", arguments={
  "goal_data": {
    "name": "string",
    "deadline": "string",
    "level": "string"
  }
})
```


## update_goal

`TOOL update_goal`

Update an existing goal

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The goal ID
  Type: string, uuid
  
  The goal ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `goal_data` (argument, object, required) - The data for updating the goal
  Type: object
  
  The data for updating the goal
  
  Additional properties: 
    Type: unknown

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_goal",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "goal_data": {}
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "update_goal",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "goal_data": {}
  }
});
```

### Python

```python
result = await session.call_tool("update_goal", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "goal_data": {}
})
```


## update_goal_progress

`TOOL update_goal_progress`

Update the progress of a goal

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The goal ID
  Type: string, uuid
  
  The goal ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `progress` (argument, number, required) - The progress percentage (0-100)
  Type: number
  
  The progress percentage (0-100)
  
  minimum: 0
  
  maximum: 100

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_goal_progress",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "progress": 0
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "update_goal_progress",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "progress": 0
  }
});
```

### Python

```python
result = await session.call_tool("update_goal_progress", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "progress": 0
})
```


## delete_goal

`TOOL delete_goal`

Delete a goal

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The goal ID
  Type: string, uuid
  
  The goal ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_goal",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "delete_goal",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000"
  }
});
```

### Python

```python
result = await session.call_tool("delete_goal", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000"
})
```


## get_my_goals

`TOOL get_my_goals`

Get goals assigned to the current authenticated user

Authentication: no security requirement declared for this operation.

Parameters:

- `page` (argument, number, optional) - Page number for pagination
  Type: number
  
  Page number for pagination
  
  default: 1

- `limit` (argument, number, optional) - Number of items per page
  Type: number
  
  Number of items per page
  
  default: 10

- `level` (argument, string, optional) - Filter by goal level
  Type: string
  
  Filter by goal level
  
  enum: ["ORGANIZATION","TEAM","EMPLOYEE"]

- `status` (argument, string, optional) - Filter by goal status
  Type: string
  
  Filter by goal status

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_my_goals",
    "arguments": {
        "page": 1,
        "limit": 10,
        "level": "ORGANIZATION",
        "status": "string"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_my_goals",
  "arguments": {
    "page": 1,
    "limit": 10,
    "level": "ORGANIZATION",
    "status": "string"
  }
});
```

### Python

```python
result = await session.call_tool("get_my_goals", arguments={
  "page": 1,
  "limit": 10,
  "level": "ORGANIZATION",
  "status": "string"
})
```


## get_team_goals

`TOOL get_team_goals`

Get goals for a specific team

Authentication: no security requirement declared for this operation.

Parameters:

- `teamId` (argument, string, uuid, required) - The team ID
  Type: string, uuid
  
  The team ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `page` (argument, number, optional) - Page number for pagination
  Type: number
  
  Page number for pagination
  
  default: 1

- `limit` (argument, number, optional) - Number of items per page
  Type: number
  
  Number of items per page
  
  default: 10

- `status` (argument, string, optional) - Filter by goal status
  Type: string
  
  Filter by goal status

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_team_goals",
    "arguments": {
        "teamId": "550e8400-e29b-41d4-a716-446655440000",
        "page": 1,
        "limit": 10,
        "status": "string"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_team_goals",
  "arguments": {
    "teamId": "550e8400-e29b-41d4-a716-446655440000",
    "page": 1,
    "limit": 10,
    "status": "string"
  }
});
```

### Python

```python
result = await session.call_tool("get_team_goals", arguments={
  "teamId": "550e8400-e29b-41d4-a716-446655440000",
  "page": 1,
  "limit": 10,
  "status": "string"
})
```


## get_goal_statistics

`TOOL get_goal_statistics`

Get goal statistics for the authenticated user's organization

Authentication: no security requirement declared for this operation.

Parameters:

- `level` (argument, string, optional) - Filter by goal level
  Type: string
  
  Filter by goal level
  
  enum: ["ORGANIZATION","TEAM","EMPLOYEE"]

- `ownerEmployeeId` (argument, string, uuid, optional) - Filter by owner employee ID
  Type: string, uuid
  
  Filter by owner employee ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `ownerTeamId` (argument, string, uuid, optional) - Filter by owner team ID
  Type: string, uuid
  
  Filter by owner team ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `startDate` (argument, string, optional) - Start date for goal statistics (ISO format)
  Type: string
  
  Start date for goal statistics (ISO format)

- `endDate` (argument, string, optional) - End date for goal statistics (ISO format)
  Type: string
  
  End date for goal statistics (ISO format)

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_goal_statistics",
    "arguments": {
        "level": "ORGANIZATION",
        "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
        "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
        "startDate": "string",
        "endDate": "string"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_goal_statistics",
  "arguments": {
    "level": "ORGANIZATION",
    "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
    "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
    "startDate": "string",
    "endDate": "string"
  }
});
```

### Python

```python
result = await session.call_tool("get_goal_statistics", arguments={
  "level": "ORGANIZATION",
  "ownerEmployeeId": "550e8400-e29b-41d4-a716-446655440000",
  "ownerTeamId": "550e8400-e29b-41d4-a716-446655440000",
  "startDate": "string",
  "endDate": "string"
})
```


## align_goals

`TOOL align_goals`

Align one goal with another (create goal alignment)

Authentication: no security requirement declared for this operation.

Parameters:

- `parentGoalId` (argument, string, uuid, required) - The parent goal ID
  Type: string, uuid
  
  The parent goal ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `childGoalId` (argument, string, uuid, required) - The child goal ID to align with parent
  Type: string, uuid
  
  The child goal ID to align with parent
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "align_goals",
    "arguments": {
        "parentGoalId": "550e8400-e29b-41d4-a716-446655440000",
        "childGoalId": "550e8400-e29b-41d4-a716-446655440000"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "align_goals",
  "arguments": {
    "parentGoalId": "550e8400-e29b-41d4-a716-446655440000",
    "childGoalId": "550e8400-e29b-41d4-a716-446655440000"
  }
});
```

### Python

```python
result = await session.call_tool("align_goals", arguments={
  "parentGoalId": "550e8400-e29b-41d4-a716-446655440000",
  "childGoalId": "550e8400-e29b-41d4-a716-446655440000"
})
```


## get_goal_templates

`TOOL get_goal_templates`

Get goal templates for the authenticated user's organization

Authentication: no security requirement declared for this operation.

Parameters:

- `page` (argument, number, optional) - Page number for pagination
  Type: number
  
  Page number for pagination
  
  default: 1

- `limit` (argument, number, optional) - Number of items per page
  Type: number
  
  Number of items per page
  
  default: 10

- `search` (argument, string, optional) - Search term for template name
  Type: string
  
  Search term for template name

- `level` (argument, string, optional) - Filter by goal level
  Type: string
  
  Filter by goal level
  
  enum: ["ORGANIZATION","TEAM","EMPLOYEE"]

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_goal_templates",
    "arguments": {
        "page": 1,
        "limit": 10,
        "search": "string",
        "level": "ORGANIZATION"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_goal_templates",
  "arguments": {
    "page": 1,
    "limit": 10,
    "search": "string",
    "level": "ORGANIZATION"
  }
});
```

### Python

```python
result = await session.call_tool("get_goal_templates", arguments={
  "page": 1,
  "limit": 10,
  "search": "string",
  "level": "ORGANIZATION"
})
```
