# Outfield MCP Server

> Give AI assistants secure, permission-aware access to Outfield, a CRM for field teams. 36 tools: 27 read-only, 9 write.

- Server URL: `https://run.outfieldapp.com/mcp`
- HTML docs: https://run.outfieldapp.com/docs/mcp
- OpenAPI 3.1: https://run.outfieldapp.com/docs/mcp/openapi.json (YAML: https://run.outfieldapp.com/docs/mcp/openapi.yaml)
- Tool catalog (`tools/list` payload): https://run.outfieldapp.com/docs/mcp/tools.json

## Connecting

- **Claude:** Settings, Connectors, Add custom connector, paste `https://run.outfieldapp.com/mcp`, then sign in to Outfield and approve.
- **ChatGPT:** install the Outfield plugin from the ChatGPT marketplace (https://chatgpt.com/plugins/plugin_asdk_app_6a726e3543d48191b22c0cc94cd8c0cc), sign in to Outfield and approve. Manual alternative: Settings, Apps & Connectors, enable developer mode, Create, paste `https://run.outfieldapp.com/mcp`, choose OAuth, authorize. ChatGPT caches the tool list, so refresh the connection after new tools ship.
- **Grok:** open https://grok.com/connectors, choose New Connector, Custom, paste `https://run.outfieldapp.com/mcp`, then sign in to Outfield and approve. On Business and Enterprise plans, a team admin must first add the custom connector in the xAI console.
- **Cursor:** the plugin package is at https://github.com/outfieldco/outfield-plugin. For manual setup, merge `{"mcpServers":{"outfield":{"url":"https://run.outfieldapp.com/mcp"}}}` into `.cursor/mcp.json` or `~/.cursor/mcp.json`, then authenticate Outfield from Customize. Never replace existing server configuration or paste tokens into it.
- **Grok Bot:** the Outfield Cursor package is being prepared for marketplace review; Grok Bot installation is not yet verified. Once listed, open Plugins, find Outfield, add it and finish OAuth. A Cursor team admin may need to allow it. This is separate from Grok's custom connector flow.
- **Other MCP clients:** need Streamable HTTP and OAuth 2.0 authorization code with PKCE. Dynamic client registration accepts only the Claude, ChatGPT, Grok and Cursor redirect URIs. Contact your Outfield account team if your integration needs another redirect URI registered.
- Requirements: the organization has the **AI** feature enabled and the user is not a Viewer.

## Authentication

OAuth 2.0 authorization code flow with PKCE (S256), public clients only (no client secret).

| Purpose | Method and URL |
| --- | --- |
| Protected resource metadata (RFC 9728) | `GET https://run.outfieldapp.com/.well-known/oauth-protected-resource` |
| Authorization server metadata (RFC 8414) | `GET https://run.outfieldapp.com/.well-known/oauth-authorization-server` |
| Dynamic client registration (RFC 7591) | `POST https://run.outfieldapp.com/oauth/register` |
| Authorization | `GET https://run.outfieldapp.com/oauth/authorize` |
| Token | `POST https://run.outfieldapp.com/oauth/token` |
| Revocation | `POST https://run.outfieldapp.com/oauth/revoke` |

Steps:

1. Discover: read the two metadata documents above.
2. Register: `POST /oauth/register` with JSON `{"client_name": "...", "redirect_uris": ["https://claude.ai/api/mcp/auth_callback"]}`. Allowed redirect URIs: `https://claude.ai/api/mcp/auth_callback`, `https://chatgpt.com/connector/oauth/<id>`, `https://chatgpt.com/connector_platform_oauth_redirect`, `https://grok.com/connectors-oauth-exchange-code/`.
   Cursor registers three exact callbacks together: `cursor://anysphere.cursor-mcp/oauth/callback`, `https://www.cursor.com/agents/mcp/oauth/callback` and `http://localhost:8787/callback`. The desktop loopback callback is the sole HTTP exception outside development.
3. Authorize: send the user to `/oauth/authorize` with `response_type=code`, `client_id`, `redirect_uri`, `scope=ai:read ai:write`, `code_challenge`, `code_challenge_method=S256`, `state` and `resource=https://run.outfieldapp.com/mcp` (RFC 8707). `plain` PKCE is rejected.
4. Exchange: `POST /oauth/token` (form encoded) with `grant_type=authorization_code`, `code`, `redirect_uri`, `client_id`, `code_verifier`, `resource`.
5. Call: send `Authorization: Bearer <access_token>`. Access tokens last 2 hours (`expires_in: 7200`); renew with `grant_type=refresh_token`.

Scopes: `ai:read` grants all `get_*`, `search_*` and `ping` tools (27). `ai:write` grants all `create_*` tools (9) and is always used together with `ai:read`. A read-only connection calling a write tool gets the tool error "Write access is not enabled for this connection"; reconnect and approve `ai:write`.

A missing, expired, revoked or wrong-resource token gets `401` with `WWW-Authenticate: Bearer resource_metadata="https://run.outfieldapp.com/.well-known/oauth-protected-resource", scope="ai:read ai:write"`.

## Protocol and transport

- One endpoint: `POST https://run.outfieldapp.com/mcp` with `Content-Type: application/json` and a bearer token.
- Stateless: no session id, no server-sent events. `GET` returns 405, `DELETE` is accepted and ignored, `OPTIONS` answers CORS preflight.
- Methods: `initialize`, `notifications/initialized` (202, no body), `ping` (returns `{}`), `tools/list`, `tools/call`. No resources or prompts are published.
- A successful `tools/call` returns `result.content[0].text` (the result as JSON text) and `result.structuredContent` (an object matching the tool's `outputSchema`).
- Tool failures (permissions, features, validation) are HTTP 200 with `result.isError: true` and a readable message in `result.content[0].text`.

Example call:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_contacts",
    "arguments": {
      "query": "Best Buy",
      "contact_type": "place"
    }
  }
}
```

## Conventions

- **Teams:** collection tools take optional `organization_id`. Omit it for the user's current organization. When the user names a team, call `get_user_profile` first and pass the matching id. Contact and form lookups by id work across all of the user's organizations and take no `organization_id`.
- **Pagination:** list tools return `meta.has_more` and `meta.next_cursor`. Repeat the call with `cursor` set to `meta.next_cursor` while `has_more` is true. Cursors are opaque. The first page usually suffices for summaries.
- **Dates:** ISO 8601. `YYYY-MM-DD` parameters take plain dates. `start_date` and `end_date` are inclusive and must be supplied together. Dates without an offset use the user's time zone. `occurred_at` cannot be in the future.
- **Idempotency:** every `create_*` tool accepts `idempotency_key`. Retries with the same key replay the original result for 24 hours (`deduplicated: true`). Keys are scoped to the user.
- **Limits:** `contact_ids` at most 100 per interaction; `reminders` at most 10 per task; durations at most 20,160 minutes (14 days); at most 200 `line_items` per deal order; `form_ids` filter on `get_org_activity` at most 50; `get_contact_detail` returns at most 500 linked contacts.
- **Form values (`form_entries[].entries[].value`):** `choice_list` is one string from `choices`; `checklist` is an array of chosen strings; `checkbox` is a boolean; `number_field` is a number; `text_field` and `text_area` are strings. `signature`, `photo`, `add_task`, `add_calendar_event`, `add_deal` and `add_contact` fields are not supported. Notes, emails, text messages and tasks cannot have forms attached. Honor `is_required` forms and the `meta.min_forms_required_*` minimums.
- **Location:** GPS cannot be captured through an assistant, so check-ins and meetings have `location_recorded: false`.

Default and maximum page sizes: `search_contacts` 10/50, `get_contact_activity` 50/50, `get_contact_deals` 25/25, `search_users` 10/25, `get_user_activity` 50/50, `get_org_activity` 50/50, `get_user_incomplete_tasks` 50/50, `get_user_calendar_events` 50/50, `get_user_goals` 50/50, `get_user_matchups` 15/15, `get_user_leaderboards` 25/25, `get_user_calendar_quarter_rankings` 25/25, `get_user_reward_pool_credit_rankings` 25/25, `get_user_deals` 25/25, `get_org_deals` 25/25, `get_inventory` 50/50, `get_product_kits` 50/50, `get_forms` 50/50.

## Access and permissions

Every call runs as the signed-in user and only returns data that user can see. Admins can search all active contacts in an organization; user roles see the contacts assigned to them; managers see deals of users they manage. `organization_id` is checked against the user's memberships. Users with the Viewer role are rejected by every tool except `ping`. Write tools also need the `ai:write` scope.

Feature requirements used in the tool reference:

- **AI:** The AI feature is enabled for the organization.
- **Deals:** Deals is enabled for the user's role and organization.
- **Products:** Products is enabled for the organization.
- **Custom forms:** Custom forms is enabled for the organization.
- **Team activity:** Team activity is enabled for the user's role and, for team-wide data, for the organization (admins are exempt from the organization setting).
- **Tasks:** The user has the Tasks feature.
- **Calendar:** Calendar is enabled for the organization and for the user's role.

## Errors

- **Tool error** (HTTP 200, `result.isError: true`): the text explains the problem. Common messages: `AI is not enabled for this organization`; `<Feature> is not enabled for this organization` or `... for this user`; `Write access is not enabled for this connection`; `You are forbidden from performing the requested action.` (Viewer role); `Organization not found`; `Contact not found`, `User not found`, `Form not found`; validation messages such as `contact_ids is required` or `occurred_at cannot be in the future`; a JSON object such as `{"contact_ids":["is missing"]}` for arguments that do not match the input schema; `An internal error occurred while executing the tool.` for unexpected failures.
- **JSON-RPC error:** `-32600` invalid request, `-32601` method not found, `-32602` invalid params (missing or unknown tool, or an authorization check that returned false).
- **HTTP:** `401` invalid token (follow the `WWW-Authenticate` challenge), `403` origin rejected, `400` unparsable body, `404` unknown path under the MCP endpoint, `405` wrong method.

## Recipes

Tools chain: search tools return ids that detail and write tools accept.

### Summarize an account's recent activity

Example request: "Summarize recent activity at my Best Buy account."

1. `search_contacts` {"query":"Best Buy","contact_type":"place"}: Find the account. Ask the user to clarify if more than one result is plausible.
2. `get_contact_activity` {"contact_id":48213,"start_date":"2026-09-01","end_date":"2026-09-29"}: Load the timeline using the chosen result's id. The first page is normally enough.

### Log a check-in with a form

Example request: "Log a check-in at Acme Grocery and fill out the shelf audit."

1. `search_contacts` {"query":"Acme Grocery","contact_type":"place"}: Resolve the place (use contact_type=place).
2. `get_forms` {}: List the forms and note which are required.
3. `get_form_detail` {"form_id":318}: Read the field ids, types and choices.
4. `create_check_in` {"contact_ids":[48213],"form_ids":[318],"form_entries":[{"form_id":318,"entries":[{"id":1101,"value":"Fully stocked"}]}],"idempotency_key":"checkin-acme-2026-09-29"}: Submit the visit with answers and an idempotency key.

### Create a deal with an order

Example request: "Create a deal for Acme Grocery: 2 cases of Cold Brew on Net 30."

1. `search_contacts` {"query":"Acme Grocery"}: Find the account to use as account_id.
2. `get_deal_options` {}: Get stage, discount and tax ids, payment terms and what the user may override.
3. `get_inventory` {"query":"cold brew"}: Find the product and note its product_variant_price.id and case_size.
4. `create_deal` {"account_id":48213,"idempotency_key":"deal-acme-1","order":{"payment_term":"Net 30","line_items":[{"product_variant_price_id":5601,"quantity":2}]}}: Create the deal. Quantity is in cases when case_size is greater than 1.

### Ask about a specific team

Example request: "How are my East Coast team's deals looking this month?"

1. `get_user_profile` {}: List the user's organizations and pick the one that matches the team name.
2. `get_org_deals` {"organization_id":2044,"start_date":"2026-09-01","end_date":"2026-09-30"}: Pass that organization's id along with the date range.

### See where you stand in league play

Example request: "How am I doing in the leaderboard and standings?"

1. `get_performance_roles_and_leaderboards` {}: Find the league flagged is_my_league and its id.
2. `get_user_leaderboards` {"league_id":10,"start_date":"2026-09-01","end_date":"2026-09-30"}: Rank teams by points for a range. meta.my_team always shows the requester.
3. `get_user_calendar_quarter_rankings` {"league_id":10}: Rank the same league by win/loss/tie record for the quarter.

# Tool reference

## Getting started

Confirm your connection and discover which teams you can query.

### ping

**Ping** (read-only)

Health check. Returns the authenticated user, their current organization, the scopes on the token and the MCP resource URL.

Health check; returns authenticated user and organization context

- Scopes: `ai:read`
- Example prompts: "Ping Outfield and tell me who I'm connected as."

#### Parameters

This tool takes no parameters.

#### Notes

- Works for any valid token. Use it to confirm OAuth is wired up before calling anything else.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ping",
    "arguments": {}
  }
}
```

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

```json
{
  "user_id": 7311,
  "email": "jordan.rivera@example.com",
  "organization_id": 2044,
  "organization_name": "Acme Beverage Co.",
  "scopes": ["ai:read", "ai:write"],
  "resource_url": "https://run.outfieldapp.com/mcp"
}
```

#### Response fields

- `user_id` (integer)
- `email` (string)
- `organization_id` (integer)
- `organization_name` (string)
- `scopes` (string[])
- `resource_url` (string)

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

### get_user_profile

**Get User Profile** (read-only)

Returns the signed-in user and every organization (team) they belong to, with the id you pass as organization_id to other tools.

Load the authenticated user's profile and organization memberships. Call this first when the user names a team or organization, or to list the organizations they can query. Use a returned organization id as organization_id on search and list tools (search_contacts, search_users, get_forms, get_inventory, get_org_activity, get_user_activity, get_user_incomplete_tasks, get_user_calendar_events, get_user_goals, get_user_performance, get_user_goal_detail). Omit organization_id on those tools to use current_organization. Does not change the user's selected organization.

- Scopes: `ai:read`
- Requires: not available to Viewer users
- Example prompts: "Which Outfield teams am I on?"; "Pull up sales for my East Coast team."

#### Parameters

This tool takes no parameters.

#### Notes

- Call this first whenever someone names a team or organization.
- Read-only: it never changes the user's selected organization.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_profile",
    "arguments": {}
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "email": "jordan.rivera@example.com",
    "role": "user"
  },
  "current_organization": {
    "id": 2044,
    "name": "Acme Beverage Co."
  },
  "organizations": [
    {
      "id": 2044,
      "name": "Acme Beverage Co.",
      "is_current": true,
      "ai_enabled": true
    }
  ]
}
```

#### Response fields

- `user` (object)
  - `id` (integer)
  - `name` (string | null)
  - `email` (string)
  - `role` (string)
- `current_organization` (object)
  - `id` (integer)
  - `name` (string | null)
- `organizations` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `is_current` (boolean)
  - `ai_enabled` (boolean)

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [search_users](https://run.outfieldapp.com/docs/mcp/tools/search_users.md), [get_org_activity](https://run.outfieldapp.com/docs/mcp/tools/get_org_activity.md), [get_org_deals](https://run.outfieldapp.com/docs/mcp/tools/get_org_deals.md)

## Accounts & people

Find accounts and people, then load their details, activity timeline and deals.

### search_contacts

**Search Contacts** (read-only)

Search accounts (places) and people by name, company, address, email, phone or any other contact data, or browse and sort by recent activity.

Search accessible Outfield accounts and people by name, company, address, email, phone, or other contact data. When order_by is supplied, query may be omitted to browse accessible contacts. Valid order_by values are created_at, last_interaction_at (last activity; not last_activity_at), last_touchpoint_at, last_check_in_at, last_onsite_check_in_at, last_meeting_at, last_phone_call_at, last_text_message_at, last_email_at, last_progressed_deal_at, last_revenue_deal_at, and last_form_completed_ats. Use last_form_completed_ats only with root_form_id from get_forms. For example, to find accounts last checked in with 1 to 4 weeks ago, use contact_type=place, order_by=last_check_in_at, start_date, and end_date. Use cursor=meta.next_cursor to continue through additional pages while meta.has_more is true. Use a returned contact id as contact_id for get_contact_detail, get_contact_activity, or get_contact_deals. If multiple contacts could match, ask the user to clarify before loading details, activity, or deals. If the user names a team, call get_user_profile first and pass organization_id. Omit organization_id to search the current organization.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Access: Admins can search every active contact in the organization. User roles see only contacts assigned to them.
- Example prompts: "Find my Best Buy account."; "Which accounts haven't I checked in on in the last 30 days?"

#### Parameters

- `query` (string; optional): Full-text contact search query; required unless order_by is supplied
- `contact_type` (string; optional; one of `place`, `person`): Restrict results to place (account) or person
- `order_by` (string; optional; one of `created_at`, `last_interaction_at`, `last_touchpoint_at`, `last_check_in_at`, `last_onsite_check_in_at`, `last_meeting_at`, `last_phone_call_at`, `last_text_message_at`, `last_email_at`, `last_progressed_deal_at`, `last_revenue_deal_at`, `last_form_completed_ats`): Sort/filter field: created_at, last_interaction_at (last activity), last_touchpoint_at, last_check_in_at, last_onsite_check_in_at, last_meeting_at, last_phone_call_at, last_text_message_at, last_email_at, last_progressed_deal_at, last_revenue_deal_at, or last_form_completed_ats
- `order_direction` (string; optional; one of `asc`, `desc`): Sort direction: asc or desc. Defaults to asc when order_by is supplied
- `start_date` (string; optional; ISO 8601 date or datetime): Optional inclusive start date/time for order_by
- `end_date` (string; optional; ISO 8601 date or datetime): Optional inclusive end date/time for order_by
- `root_form_id` (integer; optional): Required when order_by is last_form_completed_ats; obtain from get_forms
- `limit` (integer; optional): Max contacts returned per page. Default 10, max 50
- `cursor` (string; optional): Opaque cursor from meta.next_cursor
- `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

- query may be omitted when order_by is supplied, which turns the tool into a browse/sort view.
- last_form_completed_ats requires root_form_id from get_forms.
- Results are paged; keep calling with meta.next_cursor while meta.has_more is true.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_contacts",
    "arguments": {
      "query": "Best Buy",
      "contact_type": "place",
      "limit": 5
    }
  }
}
```

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

```json
{
  "contacts": [
    {
      "id": 48213,
      "organization_id": 2044,
      "organization_name": "Acme Beverage Co.",
      "name": "Acme Grocery",
      "created_at": "2026-09-29T14:30:00-05:00",
      "updated_at": "2026-09-29T14:30:00-05:00",
      "contact_type": "place",
      "company": "Acme Grocery",
      "title": "Store Manager",
      "name_and_address": "Acme Grocery, 1200 Congress Ave, Austin, TX 78701",
      "last_interaction_at": "2026-09-29T14:30:00-05:00",
      "last_touchpoint_at": "2026-09-29T14:30:00-05:00",
      "last_check_in_at": "2026-09-29T14:30:00-05:00",
      "last_onsite_check_in_at": "2026-09-29T14:30:00-05:00",
      "last_meeting_at": "2026-09-29T14:30:00-05:00",
      "last_phone_call_at": "2026-09-29T14:30:00-05:00",
      "last_text_message_at": "2026-09-29T14:30:00-05:00",
      "last_email_at": "2026-09-29T14:30:00-05:00",
      "last_progressed_deal_at": "2026-09-29T14:30:00-05:00",
      "last_revenue_deal_at": "2026-09-29T14:30:00-05:00",
      "last_form_completed_ats": {}
    }
  ],
  "meta": {
    "query": "Best Buy",
    "contact_type": "place",
    "order_by": "Order by",
    "order_direction": "Order direction",
    "start_date": "2026-09-29",
    "end_date": "2026-09-29",
    "root_form_id": 5601,
    "limit": 5,
    "result_count": 1,
    "truncated": false,
    "has_more": false,
    "next_cursor": null,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

#### Response fields

- `contacts` (object[])
  - `id` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)
  - `name` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `updated_at` (string): ISO8601 timestamp
  - `contact_type` (string | null): place or person
  - `company` (string | null)
  - `title` (string | null)
  - `name_and_address` (string | null)
  - `last_interaction_at` (string | null): ISO8601 timestamp
  - `last_touchpoint_at` (string | null): ISO8601 timestamp
  - `last_check_in_at` (string | null): ISO8601 timestamp
  - `last_onsite_check_in_at` (string | null): ISO8601 timestamp
  - `last_meeting_at` (string | null): ISO8601 timestamp
  - `last_phone_call_at` (string | null): ISO8601 timestamp
  - `last_text_message_at` (string | null): ISO8601 timestamp
  - `last_email_at` (string | null): ISO8601 timestamp
  - `last_progressed_deal_at` (string | null): ISO8601 timestamp
  - `last_revenue_deal_at` (string | null): ISO8601 timestamp
  - `last_form_completed_ats` (object | null)
- `meta` (object)
  - `query` (string | null)
  - `contact_type` (string | null)
  - `order_by` (string | null)
  - `order_direction` (string | null)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `root_form_id` (integer | null)
  - `limit` (integer)
  - `result_count` (integer)
  - `truncated` (boolean)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `organization_id` (integer)
  - `organization_name` (string)

Related tools: [get_contact_detail](https://run.outfieldapp.com/docs/mcp/tools/get_contact_detail.md), [get_contact_activity](https://run.outfieldapp.com/docs/mcp/tools/get_contact_activity.md), [get_contact_deals](https://run.outfieldapp.com/docs/mcp/tools/get_contact_deals.md), [create_check_in](https://run.outfieldapp.com/docs/mcp/tools/create_check_in.md), [create_deal](https://run.outfieldapp.com/docs/mcp/tools/create_deal.md)

### get_contact_detail

**Get Contact Detail** (read-only)

Everything Outfield knows about one account or person: addresses, phones, emails, images, custom and default fields, activity timestamps, goals and linked contacts.

Load all structured details for an accessible Outfield place or person (i.e. account/contact), including contact information, custom fields, default fields, images, activity timestamps, contact goals with progress, and up to 500 linked contacts. Use search_contacts first to resolve an unambiguous contact ID. Contact IDs work across organizations the user belongs to.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Example prompts: "Tell me everything about Acme Grocery."

#### Parameters

- `contact_id` (integer; required): Account/contact ID

#### Notes

- Contact ids resolve across every organization the user belongs to, so this tool takes no organization_id.
- Returns up to 500 linked contacts.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_contact_detail",
    "arguments": {
      "contact_id": 48213
    }
  }
}
```

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

```json
{
  "contact": {
    "id": 48213,
    "name": "Acme Grocery",
    "created_at": "2026-09-29T14:30:00-05:00",
    "updated_at": "2026-09-29T14:30:00-05:00",
    "contact_type": "place",
    "company": "Acme Grocery",
    "title": "Store Manager",
    "website": "https://acme.example.com",
    "note": "Follow up on the fall reset.",
    "metadata": null,
    "is_blocked_from_deals": false,
    "last_interaction_at": "2026-09-29T14:30:00-05:00",
    "last_touchpoint_at": "2026-09-29T14:30:00-05:00",
    "last_check_in_at": "2026-09-29T14:30:00-05:00",
    "last_onsite_check_in_at": "2026-09-29T14:30:00-05:00",
    "last_meeting_at": "2026-09-29T14:30:00-05:00",
    "last_phone_call_at": "2026-09-29T14:30:00-05:00",
    "last_text_message_at": "2026-09-29T14:30:00-05:00",
    "last_email_at": "2026-09-29T14:30:00-05:00",
    "last_progressed_deal_at": "2026-09-29T14:30:00-05:00",
    "last_revenue_deal_at": "2026-09-29T14:30:00-05:00",
    "last_form_completed_ats": {},
    "addresses": [
      {
        "id": 1,
        "label": "Main",
        "street1": "1200 Congress Ave",
        "street2": "Suite 200",
        "city": "Austin",
        "region": "TX",
        "postal_code": "78701",
        "country": "US",
        "latitude": null,
        "longitude": null,
        "has_custom_map_coordinates": true,
        "created_at": "2026-09-29T14:30:00-05:00",
        "updated_at": "2026-09-29T14:30:00-05:00"
      }
    ],
    "phones": [
      {
        "id": 1,
        "label": "Work",
        "value": "Value",
        "preferred": true,
        "created_at": "2026-09-29T14:30:00-05:00",
        "updated_at": "2026-09-29T14:30:00-05:00"
      }
    ],
    "emails": [
      {
        "id": 1,
        "label": "Work",
        "value": "Value",
        "preferred": true,
        "created_at": "2026-09-29T14:30:00-05:00",
        "updated_at": "2026-09-29T14:30:00-05:00"
      }
    ],
    "images": [
      {
        "id": 1,
        "original_url": "https://images.example.com/acme.jpg",
        "thumbnail_url": "https://images.example.com/acme-thumb.jpg",
        "format": "number",
        "created_at": "2026-09-29T14:30:00-05:00",
        "updated_at": "2026-09-29T14:30:00-05:00"
      }
    ],
    "custom_fields": [
      {
        "id": 48213,
        "name": "Acme Grocery",
        "value": "Value",
        "created_at": "2026-09-29T14:30:00-05:00",
        "updated_at": "2026-09-29T14:30:00-05:00"
      }
    ],
    "default_field_values": [
      {
        "id": 48213,
        "value": "Value",
        "default_field_id": 5601,
        "default_field_name": "Default field name",
        "default_field_type": "Default field type",
        "created_at": "2026-09-29T14:30:00-05:00",
        "updated_at": "2026-09-29T14:30:00-05:00"
      }
    ],
    "linked_contacts": [
      {
        "id": 50442,
        "name": "Sam Ortiz",
        "contact_type": "place",
        "company": "Acme Grocery",
        "title": "Store Manager"
      }
    ],
    "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
      }
    ]
  }
}
```

#### Response fields

- `contact` (object)
  - `id` (integer)
  - `name` (string | null)
  - `created_at` (string | null): ISO8601 timestamp
  - `updated_at` (string | null): ISO8601 timestamp
  - `contact_type` (string | null): place or person
  - `company` (string | null)
  - `title` (string | null)
  - `website` (string | null)
  - `note` (string | null)
  - `metadata` (object | null)
  - `is_blocked_from_deals` (boolean)
  - `last_interaction_at` (string | null): ISO8601 timestamp
  - `last_touchpoint_at` (string | null): ISO8601 timestamp
  - `last_check_in_at` (string | null): ISO8601 timestamp
  - `last_onsite_check_in_at` (string | null): ISO8601 timestamp
  - `last_meeting_at` (string | null): ISO8601 timestamp
  - `last_phone_call_at` (string | null): ISO8601 timestamp
  - `last_text_message_at` (string | null): ISO8601 timestamp
  - `last_email_at` (string | null): ISO8601 timestamp
  - `last_progressed_deal_at` (string | null): ISO8601 timestamp
  - `last_revenue_deal_at` (string | null): ISO8601 timestamp
  - `last_form_completed_ats` (object | null)
  - `addresses` (object[])
    - `id` (integer)
    - `label` (string | null)
    - `street1` (string | null)
    - `street2` (string | null)
    - `city` (string | null)
    - `region` (string | null)
    - `postal_code` (string | null)
    - `country` (string | null)
    - `latitude` (number | null)
    - `longitude` (number | null)
    - `has_custom_map_coordinates` (boolean | null)
    - `created_at` (string | null): ISO8601 timestamp
    - `updated_at` (string | null): ISO8601 timestamp
  - `phones` (object[])
    - `id` (integer)
    - `label` (string | null)
    - `value` (string | null)
    - `preferred` (boolean | null)
    - `created_at` (string | null): ISO8601 timestamp
    - `updated_at` (string | null): ISO8601 timestamp
  - `emails` (object[])
    - `id` (integer)
    - `label` (string | null)
    - `value` (string | null)
    - `preferred` (boolean | null)
    - `created_at` (string | null): ISO8601 timestamp
    - `updated_at` (string | null): ISO8601 timestamp
  - `images` (object[])
    - `id` (integer)
    - `original_url` (string | null)
    - `thumbnail_url` (string | null)
    - `format` (string | null)
    - `created_at` (string | null): ISO8601 timestamp
    - `updated_at` (string | null): ISO8601 timestamp
  - `custom_fields` (object[])
    - `id` (integer)
    - `name` (string | null)
    - `value` (string | null)
    - `created_at` (string | null): ISO8601 timestamp
    - `updated_at` (string | null): ISO8601 timestamp
  - `default_field_values` (object[])
    - `id` (integer)
    - `value` (string | null)
    - `default_field_id` (integer)
    - `default_field_name` (string | null)
    - `default_field_type` (string | null)
    - `created_at` (string | null): ISO8601 timestamp
    - `updated_at` (string | null): ISO8601 timestamp
  - `linked_contacts` (object[]): Up to 500 accessible directly linked contacts
    - `id` (integer)
    - `name` (string | null)
    - `contact_type` (string | null): place or person
    - `company` (string | null)
    - `title` (string | 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)

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_contact_activity](https://run.outfieldapp.com/docs/mcp/tools/get_contact_activity.md), [get_contact_deals](https://run.outfieldapp.com/docs/mcp/tools/get_contact_deals.md)

### get_contact_activity

**Get Contact Activity** (read-only)

The interaction timeline for one contact (check-ins, meetings, calls, emails, texts, notes, tasks and progressed deals), newest first.

Load structured account/contact activity for AI summarization. Returns up to 50 interactions per call, newest first. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full activity history, but more than the first page is not necessary if you were prompted to summarize recent activity for example.

- Scopes: `ai:read`
- Requires: AI, Team activity, not available to Viewer users
- Example prompts: "Summarize recent activity at my Best Buy account."

#### Parameters

- `contact_id` (integer; required): Account/contact ID
- `interaction_ids` (integer[]; optional): Limit to specific interaction IDs
- `start_date` (string; optional; ISO 8601 date or datetime): Start of activity date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of activity date range (paired with start_date)
- `limit` (integer; optional): Max interactions 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 of older interactions when meta.has_more is true.

#### Notes

- Returns up to 50 interactions per page. The first page is usually enough to summarize recent activity.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_contact_activity",
    "arguments": {
      "contact_id": 48213,
      "start_date": "2026-09-01",
      "end_date": "2026-09-29",
      "limit": 20
    }
  }
}
```

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

```json
{
  "contact": {
    "id": 48213,
    "name": "Acme Grocery",
    "contact_type": "place"
  },
  "included_contact_ids": [],
  "interactions": [
    {
      "id": 771204,
      "interaction_type": "check_in",
      "title": "Store visit",
      "notes": "Shelves fully stocked. New endcap is up.",
      "created_at": "2026-09-29T14:30:00-05:00",
      "user": "Jordan Rivera",
      "contacts": "Acme Grocery",
      "form_results": "Shelf condition: Fully stocked",
      "ended_at": "2026-09-29T15:30:00-05:00",
      "reported_ended_at": "2026-09-29T14:30:00-05:00",
      "recorded_duration_minutes": 1,
      "reported_duration_minutes": 1,
      "rep_latitude": 12.0,
      "rep_longitude": 12.0,
      "site_status": "On-site"
    }
  ],
  "meta": {
    "limit": 20,
    "has_more": false,
    "next_cursor": null,
    "interaction_count": 1,
    "start_date": "2026-09-01",
    "end_date": "2026-09-29"
  }
}
```

#### Response fields

- `contact` (object)
  - `id` (integer)
  - `name` (string | null)
  - `contact_type` (string): place or person
- `included_contact_ids` (integer[]): Contact plus linked contact IDs included in the activity scope
- `interactions` (object[])
  - `id` (integer)
  - `interaction_type` (string)
  - `title` (string | null)
  - `notes` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `user` (string | null): Creator or owner display name
  - `contacts` (string): Comma-joined contact names
  - `form_results` (string | null)
  - `ended_at` (string | null): Actual end or check-out as an ISO8601 timestamp
  - `reported_ended_at` (string | null): Recorded start (or interaction occurrence time when unavailable) plus reported duration as an ISO8601 timestamp
  - `recorded_duration_minutes` (integer | null): Elapsed time from recorded start to end, rounded to whole minutes
  - `reported_duration_minutes` (integer | null): Rep's edited duration, rounded to whole minutes
  - `rep_latitude` (number | null): Latitude from the check-in or meeting path, preferring the start point
  - `rep_longitude` (number | null): Longitude from the same path point as rep_latitude
  - `site_status` (string): On-site below 0.5 miles from the contact. Off-site at 0.5 miles or more, or when distance is missing.
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `interaction_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_contact_detail](https://run.outfieldapp.com/docs/mcp/tools/get_contact_detail.md), [get_contact_deals](https://run.outfieldapp.com/docs/mcp/tools/get_contact_deals.md)

### get_contact_deals

**Get Contact Deals** (read-only)

Deals where the contact is the deal account, with their orders and line items, newest updated first.

Load structured account deals with orders and line items for AI summarization. Use a contact_id from search_contacts (typically an account/place). Returns deals where that contact is the deal account. Returns up to 25 deals per call, newest updated first. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full deals history, but more than the first page is not necessary if you were prompted to summarize recent deals for example.

- Scopes: `ai:read`
- Requires: AI, Deals, not available to Viewer users
- Example prompts: "Show me my recent deals for Best Buy."

#### Parameters

- `contact_id` (integer; required): Account/contact ID
- `start_date` (string; optional; ISO 8601 date or datetime): Start of deals updated_at date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of deals updated_at date range (paired with start_date)
- `limit` (integer; optional): Max deals returned per page. Default 25, max 25
- `cursor` (string; optional): Opaque pagination cursor from a previous response's meta.next_cursor. Pass this to fetch the next page of older deals when meta.has_more is true.

#### Notes

- Returns up to 25 deals per page. Leads-only relationships are not included.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_contact_deals",
    "arguments": {
      "contact_id": 48213,
      "start_date": "2026-07-01",
      "end_date": "2026-09-29"
    }
  }
}
```

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

```json
{
  "contact": {
    "id": 48213,
    "name": "Acme Grocery",
    "contact_type": "place"
  },
  "deals": [
    {
      "id": 9031,
      "name": "Acme Grocery restock",
      "amount": 70.15,
      "amount_owed": 70.15,
      "notes": null,
      "close_date": "2026-09-29",
      "created_at": "2026-09-29T14:30:00-05:00",
      "updated_at": "2026-09-29T14:30:00-05:00",
      "status": "Proposal",
      "is_revenue": false,
      "user": "Jordan Rivera",
      "lead_contact": null,
      "orders": [
        {
          "order_number": "1042",
          "order_date": "2026-09-29",
          "due_date": "2026-10-29",
          "payment_term": "Net 30",
          "memo": null,
          "notes": null,
          "subtotal": 72.0,
          "is_reserved": true,
          "is_fulfilled": false,
          "line_items": [
            {
              "label": "Cold Brew 12oz",
              "quantity": 2,
              "price_per_unit": 36.0,
              "is_sample": false,
              "product_name": "Cold Brew",
              "variant_label": "12 oz can, 24 pack",
              "sku": "CB-12-BLK",
              "product_kit": null,
              "discounts": []
            }
          ],
          "discounts": [
            {
              "label": "Fall promo 10%",
              "amount": 10.0,
              "discount_type": "percentage",
              "bogo_buy_count": null,
              "bogo_get_count": null,
              "kit_max_count": null,
              "quantity_min_count": null,
              "multiply_by_line_item_quantity": null
            }
          ],
          "taxes": [
            {
              "name": "TX Sales Tax",
              "rate": 8.25
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "deal_count": 1,
    "start_date": "2026-07-01",
    "end_date": "2026-09-29"
  }
}
```

#### Response fields

- `contact` (object)
  - `id` (integer)
  - `name` (string | null)
  - `contact_type` (string): place or person
- `deals` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `amount` (number)
  - `amount_owed` (number | null)
  - `notes` (string | null)
  - `close_date` (string | null): ISO8601 date
  - `created_at` (string | null): ISO8601 timestamp
  - `updated_at` (string | null): ISO8601 timestamp
  - `status` (string | null)
  - `is_revenue` (boolean)
  - `user` (string | null): Deal owner display name
  - `lead_contact` (string | null)
  - `orders` (object[])
    - `order_number` (string | null)
    - `order_date` (string | null): ISO8601 date
    - `due_date` (string | null): ISO8601 date
    - `payment_term` (string | null)
    - `memo` (string | null)
    - `notes` (string | null)
    - `subtotal` (number | null)
    - `is_reserved` (boolean | null)
    - `is_fulfilled` (boolean | null)
    - `line_items` (object[])
      - `label` (string | null)
      - `quantity` (number)
      - `price_per_unit` (number | null)
      - `is_sample` (boolean | null)
      - `product_name` (string | null)
      - `variant_label` (string | null)
      - `sku` (string | null)
      - `product_kit` (object | null)
        - `name` (string | null)
        - `description` (string | null)
        - `components` (object[])
          - `product_name` (string | null)
          - `variant_label` (string | null)
          - `sku` (string | null)
      - `discounts` (object[])
        - `label` (string | null)
        - `amount` (number | null)
        - `discount_type` (string | null)
        - `bogo_buy_count` (integer | null)
        - `bogo_get_count` (integer | null)
        - `kit_max_count` (integer | null)
        - `quantity_min_count` (integer | null)
        - `multiply_by_line_item_quantity` (boolean | null)
    - `discounts` (object[])
      - `label` (string | null)
      - `amount` (number | null)
      - `discount_type` (string | null)
      - `bogo_buy_count` (integer | null)
      - `bogo_get_count` (integer | null)
      - `kit_max_count` (integer | null)
      - `quantity_min_count` (integer | null)
      - `multiply_by_line_item_quantity` (boolean | null)
    - `taxes` (object[])
      - `name` (string | null)
      - `rate` (number | null)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `deal_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_user_deals](https://run.outfieldapp.com/docs/mcp/tools/get_user_deals.md), [create_deal](https://run.outfieldapp.com/docs/mcp/tools/create_deal.md)

## Team & activity

Look up teammates and review what your team has been doing.

### search_users

**Search Users** (read-only)

Find teammates by name, title, role, email or other profile data and get the user id other tools need.

Search accessible Outfield team members by name, title, role, email, or other profile data. Use a returned user id as user_id for get_user_activity. Admins can also use it for get_user_goals; non-admins can load only their own goals. If multiple users could match, ask the user to clarify before loading activity or goals. If the user names a team, call get_user_profile first and pass organization_id. Omit organization_id to search the current organization.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Example prompts: "Find John Smith on my team."

#### Parameters

- `query` (string; required): Full-text user search query
- `limit` (integer; optional): Max users returned. Default 10, max 25
- `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

- Returns up to 25 users. If several people match, confirm which one before loading their data.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_users",
    "arguments": {
      "query": "John Smith"
    }
  }
}
```

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

```json
{
  "users": [
    {
      "id": 7311,
      "organization_id": 2044,
      "organization_name": "Acme Beverage Co.",
      "name": "Jordan Rivera",
      "title": "Field Representative",
      "role": "user",
      "is_active": true
    }
  ],
  "meta": {
    "query": "John Smith",
    "limit": 25,
    "result_count": 1,
    "truncated": false,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

#### Response fields

- `users` (object[])
  - `id` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)
  - `name` (string | null)
  - `title` (string | null)
  - `role` (string | null)
  - `is_active` (boolean | null)
- `meta` (object)
  - `query` (string)
  - `limit` (integer)
  - `result_count` (integer)
  - `truncated` (boolean)
  - `organization_id` (integer)
  - `organization_name` (string)

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

### get_user_activity

**Get User Activity** (read-only)

A teammate's interaction timeline, newest first. Omit user_id to load the authenticated user's own activity.

Load structured team-member activity for AI summarization. Returns up to 50 interactions per call, newest first. When the user asks for "my activity", omit user_id to load the authenticated user's activity. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full activity history, but more than the first page is not necessary if you were prompted to summarize recent activity for example. 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, Team activity, not available to Viewer users
- Example prompts: "What have I been up to this week?"; "Summarize John Smith's recent activity."

#### Parameters

- `user_id` (integer; optional): Team-member ID. Omit when the user asks for their own activity.
- `interaction_ids` (integer[]; optional): Limit to specific interaction IDs
- `start_date` (string; optional; ISO 8601 date or datetime): Start of activity date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of activity date range (paired with start_date)
- `limit` (integer; optional): Max interactions 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 of older interactions 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

- Returns up to 50 interactions per page.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_activity",
    "arguments": {
      "start_date": "2026-09-22",
      "end_date": "2026-09-29",
      "limit": 25
    }
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "interactions": [
    {
      "id": 771204,
      "interaction_type": "check_in",
      "title": "Store visit",
      "notes": "Shelves fully stocked. New endcap is up.",
      "created_at": "2026-09-29T14:30:00-05:00",
      "user": "Jordan Rivera",
      "contacts": "Acme Grocery",
      "form_results": "Shelf condition: Fully stocked",
      "ended_at": "2026-09-29T15:30:00-05:00",
      "reported_ended_at": "2026-09-29T14:30:00-05:00",
      "recorded_duration_minutes": 1,
      "reported_duration_minutes": 1,
      "rep_latitude": 12.0,
      "rep_longitude": 12.0,
      "site_status": "On-site"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "interaction_count": 1,
    "start_date": "2026-09-22",
    "end_date": "2026-09-29",
    "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)
- `interactions` (object[])
  - `id` (integer)
  - `interaction_type` (string)
  - `title` (string | null)
  - `notes` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `user` (string | null): Creator or owner display name
  - `contacts` (string): Comma-joined contact names
  - `form_results` (string | null)
  - `ended_at` (string | null): Actual end or check-out as an ISO8601 timestamp
  - `reported_ended_at` (string | null): Recorded start (or interaction occurrence time when unavailable) plus reported duration as an ISO8601 timestamp
  - `recorded_duration_minutes` (integer | null): Elapsed time from recorded start to end, rounded to whole minutes
  - `reported_duration_minutes` (integer | null): Rep's edited duration, rounded to whole minutes
  - `rep_latitude` (number | null): Latitude from the check-in or meeting path, preferring the start point
  - `rep_longitude` (number | null): Longitude from the same path point as rep_latitude
  - `site_status` (string): On-site below 0.5 miles from the contact. Off-site at 0.5 miles or more, or when distance is missing.
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `interaction_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `organization_id` (integer)
  - `organization_name` (string)

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

### get_org_activity

**Get Org Activity** (read-only)

Team-wide activity for a date range, optionally narrowed to interaction types or specific forms.

Load structured team/organization activity for AI summarization. Use this when the user asks about their team's activity (for example, "What has my team's activity been like this week?"). For a single team member's activity, use get_user_activity instead. Returns up to 50 interactions per call, newest first. Pass start_date and end_date as an ISO date or datetime pair when the user names a time window such as this week. If the user names a form, call get_forms first and pass matching form IDs as form_ids; that includes interactions tagged with any version in each form's ancestry. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full activity history, but more than the first page is not necessary if you were prompted to summarize recent activity for example. 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, Team activity, not available to Viewer users
- Example prompts: "What has my team's activity been like this week?"

#### Parameters

- `interaction_type` (string[]; optional; one of `check_in`, `meeting`, `note`, `task`, `progressed_deal`, `phone_call`, `email`, `text_message`): Limit to these interaction types: check_in, meeting, note, task, progressed_deal, phone_call, email, text_message. Omit to include all allowed types.
- `form_ids` (integer[]; optional): Form IDs from get_forms. Matches interactions tagged with any form in each ID's ancestry (ancestors, self, and descendants). Max 50.
- `start_date` (string; optional; ISO 8601 date or datetime): Start of activity date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of activity date range (paired with start_date)
- `limit` (integer; optional): Max interactions 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 of older interactions 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

- For one person's activity use get_user_activity instead.
- form_ids match interactions tagged with any version of each form (ancestors, itself and descendants). Maximum 50 form ids.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_org_activity",
    "arguments": {
      "start_date": "2026-09-22",
      "end_date": "2026-09-29",
      "interaction_type": ["check_in", "meeting"]
    }
  }
}
```

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

```json
{
  "interactions": [
    {
      "id": 771204,
      "interaction_type": "check_in",
      "title": "Store visit",
      "notes": "Shelves fully stocked. New endcap is up.",
      "created_at": "2026-09-29T14:30:00-05:00",
      "user": "Jordan Rivera",
      "contacts": "Acme Grocery",
      "form_results": "Shelf condition: Fully stocked",
      "ended_at": "2026-09-29T15:30:00-05:00",
      "reported_ended_at": "2026-09-29T14:30:00-05:00",
      "recorded_duration_minutes": 1,
      "reported_duration_minutes": 1,
      "rep_latitude": 12.0,
      "rep_longitude": 12.0,
      "site_status": "On-site"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "interaction_count": 1,
    "start_date": "2026-09-22",
    "end_date": "2026-09-29",
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

#### Response fields

- `interactions` (object[])
  - `id` (integer)
  - `interaction_type` (string)
  - `title` (string | null)
  - `notes` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `user` (string | null): Creator or owner display name
  - `contacts` (string): Comma-joined contact names
  - `form_results` (string | null)
  - `ended_at` (string | null): Actual end or check-out as an ISO8601 timestamp
  - `reported_ended_at` (string | null): Recorded start (or interaction occurrence time when unavailable) plus reported duration as an ISO8601 timestamp
  - `recorded_duration_minutes` (integer | null): Elapsed time from recorded start to end, rounded to whole minutes
  - `reported_duration_minutes` (integer | null): Rep's edited duration, rounded to whole minutes
  - `rep_latitude` (number | null): Latitude from the check-in or meeting path, preferring the start point
  - `rep_longitude` (number | null): Longitude from the same path point as rep_latitude
  - `site_status` (string): On-site below 0.5 miles from the contact. Off-site at 0.5 miles or more, or when distance is missing.
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `interaction_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `organization_id` (integer)
  - `organization_name` (string)

Related tools: [get_user_profile](https://run.outfieldapp.com/docs/mcp/tools/get_user_profile.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_user_activity](https://run.outfieldapp.com/docs/mcp/tools/get_user_activity.md)

### get_user_incomplete_tasks

**Get User Incomplete Tasks** (read-only)

A teammate's open tasks, soonest due first. Omit user_id for the authenticated user.

Load structured incomplete tasks for a team member. When the user asks for "my tasks", omit user_id to load the authenticated user's tasks. Pass user_id only when they ask about another team member. Tasks are returned soonest first, 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 if appropriate. Use start_date and end_date together to answer questions such as tasks due this week. 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, Tasks, not available to Viewer users
- Example prompts: "What tasks do I have due this week?"

#### Parameters

- `user_id` (integer; optional): Team-member ID. Omit when the user asks for their own tasks.
- `interaction_ids` (integer[]; optional): Limit to specific task interaction IDs
- `start_date` (string; optional; ISO 8601 date or datetime): Start of task date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of task date range (paired with start_date)
- `limit` (integer; optional): Max tasks 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 of upcoming tasks 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 start_date and end_date together to answer "due this week" style questions.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_incomplete_tasks",
    "arguments": {
      "start_date": "2026-09-29",
      "end_date": "2026-10-05"
    }
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "tasks": [
    {
      "id": 771310,
      "interaction_type": "task",
      "title": "Store visit",
      "notes": "Shelves fully stocked. New endcap is up.",
      "created_at": "2026-09-29T14:30:00-05:00",
      "user": "Jordan Rivera",
      "contacts": "Acme Grocery"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "task_count": 1,
    "start_date": "2026-09-29",
    "end_date": "2026-10-05",
    "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)
- `tasks` (object[])
  - `id` (integer)
  - `interaction_type` (string)
  - `title` (string | null)
  - `notes` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `user` (string | null)
  - `contacts` (string)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `task_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `organization_id` (integer)
  - `organization_name` (string)

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

### get_user_calendar_events

**Get User Calendar Events** (read-only)

Scheduled calendar events (planned check-ins and meetings). Defaults to current and upcoming incomplete events, soonest first.

Load structured scheduled calendar events for a team member. When the user asks for "my calendar events", omit user_id to load the authenticated user's events. Pass user_id only when they ask about another team member. By default, only current and upcoming incomplete events are returned (from the start of today onward), soonest first, up to 50 per call. Pass start_date and end_date together to include historical ranges or answer questions such as calendar events this week. If meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page if appropriate. 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, Calendar, not available to Viewer users
- Example prompts: "What's on my calendar this week?"

#### Parameters

- `user_id` (integer; optional): Team-member ID. Omit when the user asks for their own calendar events.
- `interaction_ids` (integer[]; optional): Limit to specific calendar event interaction IDs
- `start_date` (string; optional; ISO 8601 date or datetime): Start of calendar event date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of calendar event date range (paired with start_date)
- `limit` (integer; optional): Max calendar events 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 of upcoming calendar events 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 start_date and end_date together to include historical ranges.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_calendar_events",
    "arguments": {
      "start_date": "2026-09-29",
      "end_date": "2026-10-05"
    }
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "calendar_events": [
    {
      "id": 771455,
      "interaction_type": "planned_check_in",
      "title": "Store visit",
      "notes": "Shelves fully stocked. New endcap is up.",
      "start_at": "2026-09-29T14:30:00-05:00",
      "end_at": "2026-09-29T15:30:00-05:00",
      "all_day": false,
      "is_complete": false,
      "user": "Jordan Rivera",
      "contacts": "Acme Grocery"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "calendar_event_count": 1,
    "start_date": "2026-09-29",
    "end_date": "2026-10-05",
    "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)
- `calendar_events` (object[])
  - `id` (integer)
  - `interaction_type` (string)
  - `title` (string | null)
  - `notes` (string | null)
  - `start_at` (string): ISO8601 timestamp or date
  - `end_at` (string): ISO8601 timestamp or date
  - `all_day` (boolean)
  - `is_complete` (boolean)
  - `user` (string | null)
  - `contacts` (string)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `calendar_event_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `organization_id` (integer)
  - `organization_name` (string)

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

## Goals & performance

Goal progress and performance points for a user over any period.

### get_user_goals

**Get User Goals** (read-only)

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)

### get_user_goal_detail

**Get User Goal Detail** (read-only)

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)

### get_user_performance

**Get User Performance** (read-only)

Point totals by configured performance action for a user over an inclusive date range (default: the current week).

Load point totals by configured performance action for a user over a date range. Omit user_id when the user asks about their own performance. Pass user_id only when an admin asks about another user. Omit start_date and end_date to summarize the current week; otherwise, pass both dates to select an inclusive date range. 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 user's performance.
- Example prompts: "How many performance points did I earn this month?"

#### Parameters

- `user_id` (integer; optional): User ID. Omit when the user asks about their own performance. Only admins may load another user's performance.
- `start_date` (string; optional; ISO 8601 date or datetime): Start of an inclusive performance date range. Must be provided with end_date.
- `end_date` (string; optional; ISO 8601 date or datetime): End of an inclusive performance date range. Must be provided with start_date.
- `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

- start_date and end_date must be supplied together.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_performance",
    "arguments": {
      "start_date": "2026-09-01",
      "end_date": "2026-09-29"
    }
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "point_system_specs": [
    {
      "point_count": 12.0,
      "point_system_spec": "check_in",
      "category": "hustle"
    }
  ],
  "meta": {
    "start_date": "2026-09-01",
    "end_date": "2026-09-29",
    "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)
- `point_system_specs` (object[])
  - `point_count` (number)
  - `point_system_spec` (string): Performance action name
  - `category` (string)
- `meta` (object)
  - `start_date` (string): ISO8601 start of range
  - `end_date` (string): ISO8601 end of range
  - `organization_id` (integer)
  - `organization_name` (string)
- `message` (string, optional): Present when the user has no performance role

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

## League play

Leagues, matchups, leaderboards, standings and reward pools.

### get_performance_roles_and_leaderboards

**Get Performance Roles And Leaderboards** (read-only)

Lists performance roles with their leagues (gold, silver and bronze leaderboards) and reward pools, flagging the caller's own role and league.

List performance roles and their leagues (gold/silver/bronze leaderboards) for the current user's enterprise. Each role includes id, name, and is_my_performance_role. Nested leagues include id, name, first_quarter_date, and is_my_league. Nested reward_pools include id, name, cadence, and pool_type. Use is_my_performance_role and is_my_league to answer "Which league am I in?" or "What is my performance role?". Pass a returned league id to get_user_matchups as league_id to load only that league's matchups, to get_user_leaderboards as league_id to rank that league by total performance points, or to get_user_calendar_quarter_rankings as league_id for that league's Standings. Pass a returned reward pool id to get_user_reward_pool_credit_rankings as pool_id; use cadence to choose the right pool for a period (monthly + period_offset 1 for last month). Users with only_my_performance_role see only their own role; others see all non-deleted roles in the enterprise.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Access: Users restricted to their own performance role see only that role. Everyone else sees all roles in the enterprise.
- Example prompts: "Which league am I in?"

#### Parameters

This tool takes no parameters.

#### Notes

- Start here to get the league_id and pool_id values the other league-play tools accept.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_performance_roles_and_leaderboards",
    "arguments": {}
  }
}
```

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

```json
{
  "performance_roles": [
    {
      "id": 5,
      "name": "Field Rep",
      "is_my_performance_role": true,
      "leagues": [
        {
          "id": 10,
          "name": "Gold League",
          "first_quarter_date": "2026-09-29",
          "is_my_league": true
        }
      ],
      "reward_pools": [
        {
          "id": 42,
          "name": "Monthly Reward Pool",
          "cadence": "monthly",
          "pool_type": "league"
        }
      ]
    }
  ]
}
```

#### Response fields

- `performance_roles` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `is_my_performance_role` (boolean)
  - `leagues` (object[])
    - `id` (integer)
    - `name` (string)
    - `first_quarter_date` (string | null): ISO8601 started_at of the league's earliest matchup
    - `is_my_league` (boolean)
  - `reward_pools` (object[])
    - `id` (integer)
    - `name` (string | null)
    - `cadence` (string): daily, weekly, monthly, quarterly, or yearly
    - `pool_type` (string): percentage_split, winner_take_all, or ranked_split

Related tools: [get_user_matchups](https://run.outfieldapp.com/docs/mcp/tools/get_user_matchups.md), [get_user_leaderboards](https://run.outfieldapp.com/docs/mcp/tools/get_user_leaderboards.md), [get_user_calendar_quarter_rankings](https://run.outfieldapp.com/docs/mcp/tools/get_user_calendar_quarter_rankings.md), [get_user_reward_pool_credit_rankings](https://run.outfieldapp.com/docs/mcp/tools/get_user_reward_pool_credit_rankings.md)

### get_user_matchups

**Get User Matchups** (read-only)

League-play matchups for the current week (or the week containing matchup_date) with teams, points and nested user names.

List league-play matchups for the current week (or a given date), including each matchup's league, performance role, teams, points, and nested user names. User roles see matchups in their performance-role leagues; admins see all enterprise leagues unless they have only_my_performance_role, in which case they see only their role. Omit matchup_date for today's matchups; pass an ISO date to select matchups whose started_at/ended_at window contains that date. Pass league_id from get_performance_roles_and_leaderboards to return only that league's matchups; omit it to keep the default league set. Returns up to 15 matchups per call, ordered by matchup ID. When meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page. Use a nested user ID with get_user_matchup_detail for KPIs and daily hustle/diligence/preparation/leadership totals.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Access: User roles see matchups in their performance-role leagues. Admins see all enterprise leagues unless restricted to their own role.
- Example prompts: "How are the matchups looking this week?"

#### Parameters

- `matchup_date` (string; optional; YYYY-MM-DD): ISO date (YYYY-MM-DD) selecting matchups whose started_at/ended_at window contains this date. Omit for the current date's matchups.
- `league_id` (integer; optional): League id from get_performance_roles_and_leaderboards. When set, only matchups in that league are returned. Omit to include all leagues the user can access.
- `limit` (integer; optional): Max matchups returned per page. Default 15, max 15
- `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.

#### Notes

- Returns up to 15 matchups per page, ordered by matchup id.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_matchups",
    "arguments": {
      "matchup_date": "2026-09-24",
      "league_id": 10
    }
  }
}
```

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

```json
{
  "matchups": [
    {
      "id": 6120,
      "calendar_quarter": "2026 Q3",
      "week": 39,
      "started_at": "2026-09-29T14:30:00-05:00",
      "ended_at": "2026-09-29T15:30:00-05:00",
      "league_id": 10,
      "league_name": "Gold League",
      "performance_role_name": "Field Rep",
      "is_final": false,
      "teams": [
        {
          "id": 3,
          "name": "Jordan Rivera",
          "title": "Field Representative",
          "performance_efficiency_rating": 1,
          "win_loss_tie_record": "4-1-0",
          "points": 12.0,
          "is_shadow": false,
          "users": [
            {
              "id": 7311,
              "name": "Jordan Rivera",
              "role": "user"
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "matchup_count": 1,
    "matchup_date": "2026-09-24"
  }
}
```

#### Response fields

- `matchups` (object[])
  - `id` (integer)
  - `calendar_quarter` (string)
  - `week` (integer)
  - `started_at` (string): ISO8601 matchup start
  - `ended_at` (string): ISO8601 matchup end
  - `league_id` (integer)
  - `league_name` (string)
  - `performance_role_name` (string | null)
  - `is_final` (boolean)
  - `teams` (object[])
    - `id` (integer)
    - `name` (string | null)
    - `title` (string | null)
    - `performance_efficiency_rating` (integer | null)
    - `win_loss_tie_record` (string | null)
    - `points` (number)
    - `is_shadow` (boolean)
    - `users` (object[])
      - `id` (integer)
      - `name` (string | null)
      - `role` (string)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `matchup_count` (integer)
  - `matchup_date` (string): ISO8601 date used to select matchups

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

### get_user_matchup_detail

**Get User Matchup Detail** (read-only)

One user's current or historical matchup with points, KPIs and daily hustle, diligence, preparation and leadership totals.

Load a user's current or historical league-play matchup with points, KPIs, and daily hustle/diligence/preparation/leadership totals. Use get_user_matchups first when the user asks about matchups in general (for example, "How are the matchups looking this week?"). Omit user_id when the user asks about their own matchup (for example, "How am I doing in my current matchup?"). Pass user_id for another teammate in the same performance-role leagues; admins may load any enterprise performance-role matchup unless they have only_my_performance_role. Omit matchup_date for today's matchup; pass an ISO date to select the matchup whose started_at/ended_at window contains that date.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Access: User roles can load teammates in their performance-role leagues. Admins can load any enterprise matchup unless restricted to their own role.
- Example prompts: "How am I doing in my current matchup?"

#### Parameters

- `user_id` (integer; optional): User ID. Omit when the user asks about their own matchup. User roles can load teammates in their performance-role leagues; admins can load any enterprise matchup.
- `matchup_date` (string; optional; YYYY-MM-DD): ISO date (YYYY-MM-DD) selecting the matchup whose started_at/ended_at window contains this date. Omit for the current date's matchup.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_matchup_detail",
    "arguments": {
      "user_id": 7311,
      "matchup_date": "2026-09-24"
    }
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "matchup": {
    "id": 6120,
    "calendar_quarter": "2026 Q3",
    "week": 39,
    "started_at": "2026-09-29T14:30:00-05:00",
    "ended_at": "2026-09-29T15:30:00-05:00",
    "league_id": 10,
    "league_name": "Gold League",
    "is_final": false,
    "teams": [
      {
        "id": 3,
        "name": "Jordan Rivera",
        "title": "Field Representative",
        "organization_name": "Acme Beverage Co.",
        "performance_efficiency_rating": 1,
        "win_loss_tie_record": "4-1-0",
        "points": 12.0,
        "is_shadow": false,
        "last_six_matchup_results": "WWLWWW",
        "users": [
          {
            "id": 7311,
            "name": "Jordan Rivera",
            "role": "user"
          }
        ],
        "KPIs": [
          {
            "name": "Check-ins",
            "value": 12.0
          }
        ],
        "days": [
          {
            "days": 1,
            "day_name": "Monday",
            "hustle": 12.0,
            "diligence": 12.0,
            "preparation": 12.0,
            "leadership": 12.0
          }
        ]
      }
    ]
  },
  "meta": {
    "matchup_date": "2026-09-24"
  }
}
```

#### Response fields

- `user` (object)
  - `id` (integer)
  - `name` (string | null)
  - `title` (string | null)
  - `role` (string)
  - `is_active` (boolean | null)
- `matchup` (object | null)
  - `id` (integer)
  - `calendar_quarter` (string)
  - `week` (integer)
  - `started_at` (string): ISO8601 matchup start
  - `ended_at` (string): ISO8601 matchup end
  - `league_id` (integer)
  - `league_name` (string)
  - `is_final` (boolean)
  - `teams` (object[])
    - `id` (integer)
    - `name` (string | null)
    - `title` (string | null)
    - `organization_name` (string | null)
    - `performance_efficiency_rating` (integer | null)
    - `win_loss_tie_record` (string | null)
    - `points` (number)
    - `is_shadow` (boolean)
    - `last_six_matchup_results` (string | null)
    - `users` (object[])
      - `id` (integer)
      - `name` (string | null)
      - `role` (string)
    - `KPIs` (object[])
      - `name` (string)
      - `value` (number)
    - `days` (object[])
      - `days` (integer)
      - `day_name` (string)
      - `hustle` (number)
      - `diligence` (number)
      - `preparation` (number)
      - `leadership` (number)
- `meta` (object)
  - `matchup_date` (string): ISO8601 date used to select the matchup
- `message` (string, optional): Present when no matchup exists for the user on the selected date

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

### get_user_leaderboards

**Get User Leaderboards** (read-only)

Ranks active teams by total performance points over a date range (default: the current week).

Rank active user teams by total performance points for a date range. Omit start_date and end_date to rank the current week; pass both dates (for example the first and last day of this month) for another inclusive range. Pass league_id from get_performance_roles_and_leaderboards to rank a single league; omit it so users default to their own league and admins default to all enterprise leagues unless they have only_my_performance_role, in which case they also default to their own league. Returns up to 25 teams per call, ordered by total points. meta.my_team always includes the requester's team id, rank, and value even when that team is not on the current page. When meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page. This tool does not support other leaderboard metrics such as check-in counts, point categories, goals, shadows, or all-time records.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Example prompts: "How am I doing on the leaderboard this month?"

#### Parameters

- `league_id` (integer; optional): League id from get_performance_roles_and_leaderboards. When set, only teams in that league are ranked. Omit so users default to their own league and admins default to all leagues they can access.
- `start_date` (string; optional; ISO 8601 date or datetime): Start of an inclusive points date range. Must be provided with end_date. Omit both dates to rank the current week.
- `end_date` (string; optional; ISO 8601 date or datetime): End of an inclusive points date range. Must be provided with start_date. Omit both dates to rank the current week.
- `limit` (integer; optional): Max teams returned per page. Default 25, max 25
- `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.

#### Notes

- meta.my_team always contains the requester's team id, rank and value, even when it is not on the current page.
- Supports total performance points only, not other metrics such as check-in counts, point categories, goals or all-time records.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_leaderboards",
    "arguments": {
      "start_date": "2026-09-01",
      "end_date": "2026-09-30",
      "league_id": 10
    }
  }
}
```

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

```json
{
  "teams": [
    {
      "id": 3,
      "name": "Jordan Rivera",
      "title": "Field Representative",
      "rank": 2,
      "value": 1280.0,
      "is_my_team": true,
      "league_id": 10,
      "league_name": "Gold League",
      "users": [
        {
          "id": 7311,
          "name": "Jordan Rivera",
          "role": "user"
        }
      ]
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "team_count": 1,
    "start_date": "2026-09-01",
    "end_date": "2026-09-30",
    "league_id": 10,
    "my_team": {
      "id": 3,
      "rank": 2,
      "value": 149.5
    }
  }
}
```

#### Response fields

- `teams` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `title` (string | null)
  - `rank` (integer)
  - `value` (number)
  - `is_my_team` (boolean)
  - `league_id` (integer)
  - `league_name` (string | null)
  - `users` (object[])
    - `id` (integer)
    - `name` (string | null)
    - `role` (string)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `team_count` (integer)
  - `start_date` (string): ISO8601 start of filter range
  - `end_date` (string): ISO8601 end of filter range
  - `league_id` (integer | null): Selected league id; null when ranking across all allowed leagues
  - `my_team` (object | null)
    - `id` (integer)
    - `rank` (integer)
    - `value` (number)

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

### get_user_calendar_quarter_rankings

**Get User Calendar Quarter Rankings** (read-only)

League Standings for a calendar quarter: teams ranked by win/loss/tie record (the same ranking as the Standings screen).

Rank active user teams in league Standings by win/loss/tie record for a calendar quarter (the same ranking as the Standings UI). This is not the points leaderboard; use get_user_leaderboards for total performance points. Standings are always for a single league: omit league_id so the requester defaults to their own league. There are no global standings; if the user has no league, the response is empty and explains why. Pass league_id from get_performance_roles_and_leaderboards to inspect another allowed league. Omit calendar_quarter_date for the current quarter; pass an ISO date in another quarter to rank that season. Returns up to 25 teams per call. meta.my_team always includes the requester's team id, rank, points value, and win/loss/tie record even when that team is not on the current page. When meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Example prompts: "How am I doing in the league standings right now?"

#### Parameters

- `league_id` (integer; optional): League id from get_performance_roles_and_leaderboards. When set, only teams in that league are ranked. Omit to default to the requester's own league. There are no global standings.
- `calendar_quarter_date` (string; optional; YYYY-MM-DD): ISO date (YYYY-MM-DD) in the calendar quarter to rank. Any date in the quarter works. Omit to rank the current quarter.
- `limit` (integer; optional): Max teams returned per page. Default 25, max 25
- `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.

#### Notes

- Standings are always for a single league. There are no global standings; a user without a league gets an empty list and an explanatory message.
- For the points leaderboard use get_user_leaderboards.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_calendar_quarter_rankings",
    "arguments": {
      "calendar_quarter_date": "2026-08-19",
      "league_id": 10
    }
  }
}
```

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

```json
{
  "teams": [
    {
      "id": 3,
      "name": "Jordan Rivera",
      "title": "Field Representative",
      "rank": 2,
      "value": 1280.0,
      "win_loss_tie_record": "4-1-0",
      "is_my_team": true,
      "league_id": 10,
      "league_name": "Gold League",
      "users": [
        {
          "id": 7311,
          "name": "Jordan Rivera",
          "role": "user"
        }
      ]
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "team_count": 1,
    "calendar_quarter_date": "2026-08-19",
    "calendar_quarter": "2026 Q3",
    "league_id": 10,
    "league_name": "Gold League",
    "my_team": {
      "id": 3,
      "rank": 2,
      "value": 149.5,
      "win_loss_tie_record": "4-1-0"
    }
  }
}
```

#### Response fields

- `teams` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `title` (string | null)
  - `rank` (integer)
  - `value` (number): Quarter performance points (tiebreaker)
  - `win_loss_tie_record` (string): W - L - T record for the quarter
  - `is_my_team` (boolean)
  - `league_id` (integer)
  - `league_name` (string | null)
  - `users` (object[])
    - `id` (integer)
    - `name` (string | null)
    - `role` (string)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `team_count` (integer)
  - `calendar_quarter_date` (string): ISO date used to select the quarter
  - `calendar_quarter` (string): Human-readable quarter, e.g. Jul - Sep 2026
  - `league_id` (integer | null): Selected league id; null when the user has no league
  - `league_name` (string | null)
  - `my_team` (object | null)
    - `id` (integer)
    - `rank` (integer)
    - `value` (number)
    - `win_loss_tie_record` (string)
- `message` (string, optional): Present when standings cannot be ranked because the user has no league

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

### get_user_reward_pool_credit_rankings

**Get User Reward Pool Credit Rankings** (read-only)

Ranks users in a Reward Pool by estimated or distributed reward credits, the same ranking as Reward Pools in League Play.

Rank users in a Reward Pool by estimated or distributed reward credits. This is the same ranking as Reward Pools in League Play. Omit pool_id and period_offset to rank the requester's current default pool (the first active pool on their performance role) for the current period. Pass pool_id from get_performance_roles_and_leaderboards to rank a specific pool. period_offset is relative to the selected pool's cadence, not calendar months: 0 is the current in-progress period, 1 is the previous complete period. To answer "last month", choose a monthly pool from get_performance_roles_and_leaderboards (prefer is_my_performance_role) and pass period_offset 1. Users with only_my_performance_role can only rank pools on their own role; unrestricted admins can rank any enterprise pool they can see. Returns up to 25 users per call, ordered by estimated credits. meta.my_user always includes the requester's id, rank, eligible_points, share_percent, and estimated_credits even when that user is not on the current page. When meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page.

- Scopes: `ai:read`
- Requires: AI, not available to Viewer users
- Example prompts: "Who's leading the monthly reward pool?"; "How did I rank in last month's reward pool?"

#### Parameters

- `pool_id` (integer; optional): Reward pool id from get_performance_roles_and_leaderboards. When set, that pool is ranked. Omit to default to the first active pool on the requester's performance role.
- `period_offset` (integer; optional): Non-negative number of cadence periods to look back, max 500. 0 (default) is the current period of the selected pool. 1 is the previous period of that pool's cadence (last month only when the pool is monthly).
- `limit` (integer; optional): Max users returned per page. Default 25, max 25
- `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.

#### Notes

- period_offset counts back in the pool's own cadence: 0 is the in-progress period and 1 is the previous complete period. "Last month" therefore needs a monthly pool.
- meta.my_user always contains the requester's rank, eligible points, share and estimated credits.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_reward_pool_credit_rankings",
    "arguments": {
      "pool_id": 42,
      "period_offset": 1
    }
  }
}
```

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

```json
{
  "users": [
    {
      "id": 7311,
      "name": "Jordan Rivera",
      "title": "Field Representative",
      "rank": 2,
      "eligible_points": 12.0,
      "share_percent": 12.0,
      "estimated_credits": 1,
      "is_my_user": true
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "user_count": 1,
    "pool_id": 42,
    "pool_name": "Monthly Reward Pool",
    "cadence": "monthly",
    "pool_type": "league",
    "period_offset": 1,
    "period_start_at": "2026-09-29T14:30:00-05:00",
    "period_end_at": "2026-09-29T15:30:00-05:00",
    "period_label": "September 2026",
    "my_user": {
      "id": 7311,
      "rank": 2,
      "eligible_points": 12.0,
      "share_percent": 12.0,
      "estimated_credits": 1
    }
  }
}
```

#### Response fields

- `users` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `title` (string | null)
  - `rank` (integer | null): Pool rank/position by eligible points; null when the user has no eligible points. For ranked_split pools, equal-point ties are broken by created_at then user_id so users get distinct ranks (1, 2, ...) matching paid placement. Other pool types use a dense rank (tied points share a rank).
  - `eligible_points` (number)
  - `share_percent` (number | null): Share of the pool; null for winner-take-all or users with no share
  - `estimated_credits` (integer)
  - `is_my_user` (boolean)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `user_count` (integer)
  - `pool_id` (integer | null): Selected reward pool id
  - `pool_name` (string | null)
  - `cadence` (string | null): daily, weekly, monthly, quarterly, or yearly
  - `pool_type` (string | null): percentage_split, winner_take_all, or ranked_split
  - `period_offset` (integer)
  - `period_start_at` (string | null): ISO8601 start of the selected pool period
  - `period_end_at` (string | null): ISO8601 end of the selected pool period
  - `period_label` (string | null)
  - `my_user` (object | null)
    - `id` (integer)
    - `rank` (integer | null): Pool rank/position by eligible points; null when the user has no eligible points. For ranked_split pools, equal-point ties are broken by created_at then user_id so users get distinct ranks (1, 2, ...) matching paid placement. Other pool types use a dense rank (tied points share a rank).
    - `eligible_points` (number)
    - `share_percent` (number | null)
    - `estimated_credits` (integer)
- `message` (string, optional): Present when no pool is selectable, the pool is inactive for the period, or historical credits were not distributed

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

## Deals & catalog

Review deals and orders, browse inventory and kits, and create new deals.

### get_user_deals

**Get User Deals** (read-only)

Deals with orders and line items for a teammate. Omit user_id for the authenticated user's own deals.

Load structured deals with orders and line items for a team member. Use this when the user asks about their deals (for example, "How are my deals looking?"). When the user asks for "my deals", omit user_id to load the authenticated user's deals. For a named teammate, call search_users first and pass that id as user_id. For team or organization-wide deals, use get_org_deals instead. Returns up to 25 deals per call, newest updated first. Pass start_date and end_date as an ISO date or datetime pair when the user names a time window such as this month; dates filter deals by updated_at. Use query to search deal name, notes, account, and related text. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full deals history, but more than the first page is not necessary if you were prompted to summarize recent deals for example. 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, Deals, not available to Viewer users
- Example prompts: "How are my deals looking?"

#### Parameters

- `user_id` (integer; optional): Team-member ID. Omit when the user asks for their own deals.
- `query` (string; optional): Full-text search across deal name, notes, account, and related text
- `start_date` (string; optional; ISO 8601 date or datetime): Start of deals updated_at date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of deals updated_at date range (paired with start_date)
- `limit` (integer; optional): Max deals returned per page. Default 25, max 25
- `cursor` (string; optional): Opaque pagination cursor from a previous response's meta.next_cursor. Pass this to fetch the next page of older deals 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

- Dates filter on the deal's updated_at. Returns up to 25 deals per page, newest updated first.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_user_deals",
    "arguments": {
      "query": "restock",
      "start_date": "2026-09-01",
      "end_date": "2026-09-29"
    }
  }
}
```

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

```json
{
  "user": {
    "id": 7311,
    "name": "Jordan Rivera",
    "title": "Field Representative",
    "role": "user",
    "is_active": true
  },
  "deals": [
    {
      "id": 9031,
      "name": "Acme Grocery restock",
      "amount": 70.15,
      "amount_owed": 70.15,
      "notes": null,
      "close_date": "2026-09-29",
      "created_at": "2026-09-29T14:30:00-05:00",
      "updated_at": "2026-09-29T14:30:00-05:00",
      "status": "Proposal",
      "is_revenue": false,
      "user": "Jordan Rivera",
      "lead_contact": null,
      "orders": [
        {
          "order_number": "1042",
          "order_date": "2026-09-29",
          "due_date": "2026-10-29",
          "payment_term": "Net 30",
          "memo": null,
          "notes": null,
          "subtotal": 72.0,
          "is_reserved": true,
          "is_fulfilled": false,
          "line_items": [
            {
              "label": "Cold Brew 12oz",
              "quantity": 2,
              "price_per_unit": 36.0,
              "is_sample": false,
              "product_name": "Cold Brew",
              "variant_label": "12 oz can, 24 pack",
              "sku": "CB-12-BLK",
              "product_kit": null,
              "discounts": []
            }
          ],
          "discounts": [
            {
              "label": "Fall promo 10%",
              "amount": 10.0,
              "discount_type": "percentage",
              "bogo_buy_count": null,
              "bogo_get_count": null,
              "kit_max_count": null,
              "quantity_min_count": null,
              "multiply_by_line_item_quantity": null
            }
          ],
          "taxes": [
            {
              "name": "TX Sales Tax",
              "rate": 8.25
            }
          ]
        }
      ],
      "account": "Acme Grocery"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "deal_count": 1,
    "start_date": "2026-09-01",
    "end_date": "2026-09-29",
    "query": "restock",
    "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)
- `deals` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `amount` (number)
  - `amount_owed` (number | null)
  - `notes` (string | null)
  - `close_date` (string | null): ISO8601 date
  - `created_at` (string | null): ISO8601 timestamp
  - `updated_at` (string | null): ISO8601 timestamp
  - `status` (string | null)
  - `is_revenue` (boolean)
  - `user` (string | null): Deal owner display name
  - `lead_contact` (string | null)
  - `orders` (object[])
    - `order_number` (string | null)
    - `order_date` (string | null): ISO8601 date
    - `due_date` (string | null): ISO8601 date
    - `payment_term` (string | null)
    - `memo` (string | null)
    - `notes` (string | null)
    - `subtotal` (number | null)
    - `is_reserved` (boolean | null)
    - `is_fulfilled` (boolean | null)
    - `line_items` (object[])
      - `label` (string | null)
      - `quantity` (number)
      - `price_per_unit` (number | null)
      - `is_sample` (boolean | null)
      - `product_name` (string | null)
      - `variant_label` (string | null)
      - `sku` (string | null)
      - `product_kit` (object | null)
        - `name` (string | null)
        - `description` (string | null)
        - `components` (object[])
          - `product_name` (string | null)
          - `variant_label` (string | null)
          - `sku` (string | null)
      - `discounts` (object[])
        - `label` (string | null)
        - `amount` (number | null)
        - `discount_type` (string | null)
        - `bogo_buy_count` (integer | null)
        - `bogo_get_count` (integer | null)
        - `kit_max_count` (integer | null)
        - `quantity_min_count` (integer | null)
        - `multiply_by_line_item_quantity` (boolean | null)
    - `discounts` (object[])
      - `label` (string | null)
      - `amount` (number | null)
      - `discount_type` (string | null)
      - `bogo_buy_count` (integer | null)
      - `bogo_get_count` (integer | null)
      - `kit_max_count` (integer | null)
      - `quantity_min_count` (integer | null)
      - `multiply_by_line_item_quantity` (boolean | null)
    - `taxes` (object[])
      - `name` (string | null)
      - `rate` (number | null)
  - `account` (string | null): Deal account display name
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `deal_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `query` (string | null): Full-text search query applied to this page
  - `organization_id` (integer)
  - `organization_name` (string)

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

### get_org_deals

**Get Org Deals** (read-only)

Team-wide deals with orders and line items for a date range.

Load structured team/organization deals with orders and line items for AI summarization. Use this when the user asks about their team's deals (for example, "How are my team's deals looking this month?"). For a single team member's deals, use get_user_deals instead. Returns up to 25 deals per call, newest updated first. Pass start_date and end_date as an ISO date or datetime pair when the user names a time window such as this month; dates filter deals by updated_at. Use query to search deal name, notes, account, and related text. If meta.has_more is true, you can call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. You can repeat until meta.has_more is false to retrieve the full deals history, but more than the first page is not necessary if you were prompted to summarize recent deals for example. 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, Deals, not available to Viewer users
- Access: Managers see only deals owned by themselves and the users they manage.
- Example prompts: "How are my team's deals looking this month?"

#### Parameters

- `query` (string; optional): Full-text search across deal name, notes, account, and related text
- `start_date` (string; optional; ISO 8601 date or datetime): Start of deals updated_at date range (paired with end_date)
- `end_date` (string; optional; ISO 8601 date or datetime): End of deals updated_at date range (paired with start_date)
- `limit` (integer; optional): Max deals returned per page. Default 25, max 25
- `cursor` (string; optional): Opaque pagination cursor from a previous response's meta.next_cursor. Pass this to fetch the next page of older deals 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

- For one person's deals use get_user_deals. Dates filter on updated_at.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_org_deals",
    "arguments": {
      "start_date": "2026-09-01",
      "end_date": "2026-09-30"
    }
  }
}
```

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

```json
{
  "deals": [
    {
      "id": 9031,
      "name": "Acme Grocery restock",
      "amount": 70.15,
      "amount_owed": 70.15,
      "notes": null,
      "close_date": "2026-09-29",
      "created_at": "2026-09-29T14:30:00-05:00",
      "updated_at": "2026-09-29T14:30:00-05:00",
      "status": "Proposal",
      "is_revenue": false,
      "user": "Jordan Rivera",
      "lead_contact": null,
      "orders": [
        {
          "order_number": "1042",
          "order_date": "2026-09-29",
          "due_date": "2026-10-29",
          "payment_term": "Net 30",
          "memo": null,
          "notes": null,
          "subtotal": 72.0,
          "is_reserved": true,
          "is_fulfilled": false,
          "line_items": [
            {
              "label": "Cold Brew 12oz",
              "quantity": 2,
              "price_per_unit": 36.0,
              "is_sample": false,
              "product_name": "Cold Brew",
              "variant_label": "12 oz can, 24 pack",
              "sku": "CB-12-BLK",
              "product_kit": null,
              "discounts": []
            }
          ],
          "discounts": [
            {
              "label": "Fall promo 10%",
              "amount": 10.0,
              "discount_type": "percentage",
              "bogo_buy_count": null,
              "bogo_get_count": null,
              "kit_max_count": null,
              "quantity_min_count": null,
              "multiply_by_line_item_quantity": null
            }
          ],
          "taxes": [
            {
              "name": "TX Sales Tax",
              "rate": 8.25
            }
          ]
        }
      ],
      "account": "Acme Grocery"
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "deal_count": 1,
    "start_date": "2026-09-01",
    "end_date": "2026-09-30",
    "query": "Best Buy",
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

#### Response fields

- `deals` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `amount` (number)
  - `amount_owed` (number | null)
  - `notes` (string | null)
  - `close_date` (string | null): ISO8601 date
  - `created_at` (string | null): ISO8601 timestamp
  - `updated_at` (string | null): ISO8601 timestamp
  - `status` (string | null)
  - `is_revenue` (boolean)
  - `user` (string | null): Deal owner display name
  - `lead_contact` (string | null)
  - `orders` (object[])
    - `order_number` (string | null)
    - `order_date` (string | null): ISO8601 date
    - `due_date` (string | null): ISO8601 date
    - `payment_term` (string | null)
    - `memo` (string | null)
    - `notes` (string | null)
    - `subtotal` (number | null)
    - `is_reserved` (boolean | null)
    - `is_fulfilled` (boolean | null)
    - `line_items` (object[])
      - `label` (string | null)
      - `quantity` (number)
      - `price_per_unit` (number | null)
      - `is_sample` (boolean | null)
      - `product_name` (string | null)
      - `variant_label` (string | null)
      - `sku` (string | null)
      - `product_kit` (object | null)
        - `name` (string | null)
        - `description` (string | null)
        - `components` (object[])
          - `product_name` (string | null)
          - `variant_label` (string | null)
          - `sku` (string | null)
      - `discounts` (object[])
        - `label` (string | null)
        - `amount` (number | null)
        - `discount_type` (string | null)
        - `bogo_buy_count` (integer | null)
        - `bogo_get_count` (integer | null)
        - `kit_max_count` (integer | null)
        - `quantity_min_count` (integer | null)
        - `multiply_by_line_item_quantity` (boolean | null)
    - `discounts` (object[])
      - `label` (string | null)
      - `amount` (number | null)
      - `discount_type` (string | null)
      - `bogo_buy_count` (integer | null)
      - `bogo_get_count` (integer | null)
      - `kit_max_count` (integer | null)
      - `quantity_min_count` (integer | null)
      - `multiply_by_line_item_quantity` (boolean | null)
    - `taxes` (object[])
      - `name` (string | null)
      - `rate` (number | null)
  - `account` (string | null): Deal account display name
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `deal_count` (integer)
  - `start_date` (string | null): ISO8601 start of filter range
  - `end_date` (string | null): ISO8601 end of filter range
  - `query` (string | null): Full-text search query applied to this page
  - `organization_id` (integer)
  - `organization_name` (string)

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

### get_deal_options

**Get Deal Options** (read-only)

Pipeline stages, catalog discounts, taxes, payment terms and the caller's deal-creation permissions. Call this before create_deal.

Load deal pipeline stages, catalog discounts, taxes, payment terms, and the calling user's deal-creation permissions. Call this before create_deal to choose deal_status_id, discount_id, tax_id, and to know whether the user can override prices, add one-off line items, or assign the deal to another user. Discounts with applies_to "order" belong on the order; "line_item" belong on a line item; "both" can be used in either place. 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, Deals, not available to Viewer users
- Example prompts: "What deal stages can I use?"

#### Parameters

- `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

- Discounts with applies_to "order" belong on the order, "line_item" on a line item, and "both" can go in either place.
- The permissions block tells you whether the user can override prices, add one-off line items or assign the deal to someone else.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_deal_options",
    "arguments": {}
  }
}
```

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

```json
{
  "deal_pipeline": {
    "id": 1,
    "name": "Sales Pipeline",
    "currency_unit": "$",
    "currency_code": "USD"
  },
  "deal_statuses": [
    {
      "id": 4,
      "name": "Proposal",
      "position": 1,
      "is_revenue": true,
      "is_locked": false,
      "lock_type": null,
      "reserves_inventory": true,
      "fulfills_inventory": true,
      "can_create_here": true
    }
  ],
  "discounts": [
    {
      "label": "Fall promo 10%",
      "amount": 10.0,
      "discount_type": "percentage",
      "bogo_buy_count": null,
      "bogo_get_count": null,
      "kit_max_count": null,
      "quantity_min_count": null,
      "multiply_by_line_item_quantity": null,
      "id": 78,
      "applies_to": "both",
      "product_id": null,
      "product_category_id": null,
      "product_variant_price_id": null,
      "product_variant_price_kit_id": null
    }
  ],
  "taxes": [
    {
      "id": 9,
      "name": "TX Sales Tax",
      "region": "TX",
      "rate": 8.25,
      "tax_type": "sales",
      "is_inclusive": true
    }
  ],
  "payment_terms": ["Net 30"],
  "permissions": {
    "can_change_order_pricing": true,
    "can_create_one_off_line_items": true,
    "can_create_one_off_discounts": true,
    "requires_deal_account": true,
    "can_assign_other_users": true,
    "can_exceed_quantity_available": true,
    "can_exceed_quantity_on_hand": true,
    "can_edit_locked_deals": true
  },
  "meta": {
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co.",
    "deal_status_count": 1,
    "discount_count": 1,
    "tax_count": 1,
    "discounts_has_more": true,
    "taxes_has_more": true
  }
}
```

#### Response fields

- `deal_pipeline` (object | null)
  - `id` (integer)
  - `name` (string | null)
  - `currency_unit` (string | null)
  - `currency_code` (string | null)
- `deal_statuses` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `position` (integer | null)
  - `is_revenue` (boolean)
  - `is_locked` (boolean)
  - `lock_type` (string | null)
  - `reserves_inventory` (boolean)
  - `fulfills_inventory` (boolean)
  - `can_create_here` (boolean)
- `discounts` (object[])
  - `label` (string | null)
  - `amount` (number | null)
  - `discount_type` (string | null)
  - `bogo_buy_count` (integer | null)
  - `bogo_get_count` (integer | null)
  - `kit_max_count` (integer | null)
  - `quantity_min_count` (integer | null)
  - `multiply_by_line_item_quantity` (boolean | null)
  - `id` (integer)
  - `applies_to` (string): order, line_item, or both
  - `product_id` (integer | null)
  - `product_category_id` (integer | null)
  - `product_variant_price_id` (integer | null)
  - `product_variant_price_kit_id` (integer | null)
- `taxes` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `region` (string | null)
  - `rate` (number | null)
  - `tax_type` (string | null)
  - `is_inclusive` (boolean | null)
- `payment_terms` (string[])
- `permissions` (object)
  - `can_change_order_pricing` (boolean)
  - `can_create_one_off_line_items` (boolean)
  - `can_create_one_off_discounts` (boolean)
  - `requires_deal_account` (boolean)
  - `can_assign_other_users` (boolean)
  - `can_exceed_quantity_available` (boolean)
  - `can_exceed_quantity_on_hand` (boolean)
  - `can_edit_locked_deals` (boolean)
- `meta` (object)
  - `organization_id` (integer)
  - `organization_name` (string)
  - `deal_status_count` (integer)
  - `discount_count` (integer)
  - `tax_count` (integer)
  - `discounts_has_more` (boolean)
  - `taxes_has_more` (boolean)

Related tools: [create_deal](https://run.outfieldapp.com/docs/mcp/tools/create_deal.md), [get_inventory](https://run.outfieldapp.com/docs/mcp/tools/get_inventory.md), [get_product_kits](https://run.outfieldapp.com/docs/mcp/tools/get_product_kits.md)

### get_inventory

**Get Inventory** (read-only)

Active product-variant inventory with SKU, available and on-hand quantities, pricing and case size.

Load active product-variant inventory, including the variant id, the primary product_variant_price id, SKU, available and on-hand quantities, pricing, and case size. Use product_variant_price.id as product_variant_price_id when calling create_deal. Quantity on a deal line item is in cases when case_size is greater than 1; quantity_available is in single units. Additional prices on the same variant appear in additional_product_variant_prices. Use query to locate a product by product name, variant label, SKU, or other indexed product details. Returns up to 50 variants per call, newest first. If meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next older page if appropriate. 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, Products, not available to Viewer users
- Example prompts: "Do we have any low-stock items?"; "How many cases of Cold Brew are available?"

#### Parameters

- `query` (string; optional): Full-text product, variant, SKU, and price search query
- `stock` (string; optional; one of `low_stock`, `out_of_stock`, `in_stock`): Restrict results to low_stock, out_of_stock, or in_stock
- `limit` (integer; optional): Max product variants 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 of older product variants 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

- Use product_variant_price.id (not the SKU) as product_variant_price_id in create_deal.
- Line-item quantity is in cases when case_size is greater than 1, while quantity_available is in single units.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_inventory",
    "arguments": {
      "query": "cold brew",
      "stock": "in_stock",
      "limit": 10
    }
  }
}
```

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

```json
{
  "product_variants": [
    {
      "id": 5601,
      "label": "Cold Brew 12oz",
      "description": "Fall promotion",
      "created_at": "2026-09-29T14:30:00-05:00",
      "parent_product": {
        "name": "Cold Brew",
        "description": "Fall promotion"
      },
      "product_variant_price": {
        "id": 5601,
        "label": "Case of 24",
        "sku": "CB-12-BLK",
        "quantity_on_hand": 24.0,
        "quantity_available": 24.0,
        "retail_price": 149.5,
        "case_size": 24,
        "internal_cost": null
      },
      "additional_product_variant_prices": [
        {
          "id": 5602,
          "label": "Single unit",
          "sku": "CB-12-BLK",
          "retail_price": 149.5,
          "case_size": 24,
          "quantity_on_hand": 24.0,
          "quantity_available": 24.0
        }
      ]
    }
  ],
  "meta": {
    "limit": 10,
    "has_more": false,
    "next_cursor": null,
    "product_variant_count": 1,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

#### Response fields

- `product_variants` (object[])
  - `id` (integer)
  - `label` (string | null)
  - `description` (string | null)
  - `created_at` (string): ISO8601 timestamp
  - `parent_product` (object)
    - `name` (string | null)
    - `description` (string | null)
  - `product_variant_price` (object)
    - `id` (integer)
    - `label` (string | null)
    - `sku` (string | null)
    - `quantity_on_hand` (number)
    - `quantity_available` (number)
    - `retail_price` (number | null)
    - `case_size` (integer)
    - `internal_cost` (number | null)
  - `additional_product_variant_prices` (object[])
    - `id` (integer)
    - `label` (string | null)
    - `sku` (string | null)
    - `retail_price` (number | null)
    - `case_size` (integer)
    - `quantity_on_hand` (number)
    - `quantity_available` (number)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `product_variant_count` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)

Related tools: [get_product_kits](https://run.outfieldapp.com/docs/mcp/tools/get_product_kits.md), [get_deal_options](https://run.outfieldapp.com/docs/mcp/tools/get_deal_options.md), [create_deal](https://run.outfieldapp.com/docs/mcp/tools/create_deal.md)

### get_product_kits

**Get Product Kits** (read-only)

Product variant price kits that can be sold as a single deal line item.

Load product variant price kits for creating deal line items. Use kit id as product_variant_price_kit_id in create_deal. Kit quantity_available is the number of complete kits that can be sold from component stock. Returns up to 50 kits per call, newest first. If meta.has_more is true, call again with cursor set to meta.next_cursor. Use query to match kit name or description. 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, Products, not available to Viewer users
- Example prompts: "What kits can I put on an order?"

#### Parameters

- `query` (string; optional): Search kit name or description
- `limit` (integer; optional): Max kits 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 of older kits 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

- quantity_available is the number of complete kits that can be assembled from component stock.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_product_kits",
    "arguments": {
      "query": "starter"
    }
  }
}
```

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

```json
{
  "product_kits": [
    {
      "id": 12,
      "name": "Fall Starter Kit",
      "description": "Fall promotion",
      "retail_price": 149.5,
      "kit_quantity_available": 24.0,
      "kit_quantity_on_hand": 24.0,
      "components": [
        {
          "product_variant_price_id": 5601,
          "product_name": "Cold Brew",
          "variant_label": "12 oz can, 24 pack",
          "sku": "CB-12-BLK",
          "retail_price": 149.5,
          "case_size": 24
        }
      ]
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "product_kit_count": 1,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co."
  }
}
```

#### Response fields

- `product_kits` (object[])
  - `id` (integer)
  - `name` (string | null)
  - `description` (string | null)
  - `retail_price` (number | null)
  - `kit_quantity_available` (number | null)
  - `kit_quantity_on_hand` (number | null)
  - `components` (object[])
    - `product_variant_price_id` (integer)
    - `product_name` (string | null)
    - `variant_label` (string | null)
    - `sku` (string | null)
    - `retail_price` (number | null)
    - `case_size` (integer | null)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `product_kit_count` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)

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

### create_deal

**Create Deal** (write)

Creates a deal, optionally with one nested order (line items, one discount and one tax). Supports catalog products, kits and one-off line items.

Create a deal, optionally with a single nested order. Workflow: search_contacts for account_id (place or person) and optional lead_contact_id (person only); get_deal_options for deal_status_id, discount_id, tax_id, payment terms, and permissions; get_inventory for product_variant_price_id (use product_variant_price.id, not SKU); get_product_kits for product_variant_price_kit_id. Quantity on catalog line items is in cases when case_size is greater than 1. price_per_unit defaults to the catalog retail price; overriding it requires can_change_order_pricing. An order may have at most one discount and one tax; a line item may have at most one discount. Use existing discount_id/tax_id from get_deal_options, or inline fields when can_create_one_off_discounts is true. One-off line items (label only) require can_create_one_off_line_items. Creating in a reserving or fulfilling stage deducts inventory. When there is no order, pass amount as the deal value. Pass idempotency_key to prevent duplicate creates on retry. Zero-inventory and unintegrated-variant filters used in the web UI are not applied here. If the user names a team, call get_user_profile first and pass organization_id.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, Deals, not available to Viewer users
- Example prompts: "Create a deal for Acme Grocery: 2 cases of Cold Brew on Net 30."

#### Parameters

- `name` (string; optional): Deal name. Defaults to the account name when omitted
- `notes` (string; optional): Deal notes
- `amount` (number | null; optional): Deal amount when there is no order. Ignored when an order is provided because the total is calculated from line items
- `close_date` (string; optional): ISO8601 close date used for revenue attribution
- `account_id` (integer; optional): Account contact ID from search_contacts (place or person)
- `lead_contact_id` (integer; optional): Person contact ID from search_contacts
- `deal_status_id` (integer; optional): Pipeline stage ID from get_deal_options. Defaults to the first stage
- `user_id` (integer; optional): Deal owner user ID from search_users. Defaults to the calling user. Admins and managers can assign others
- `order` (object; optional)
  - `order_date` (string; optional): ISO8601 order date
  - `due_date` (string; optional): ISO8601 due date
  - `payment_term` (string; optional): Payment term from get_deal_options.payment_terms, or a custom term
  - `memo` (string; optional)
  - `notes` (string; optional)
  - `bill_to` (string; optional): Billing text. Defaults to the account address when omitted
  - `payment_instructions` (string; optional)
  - `line_items` (object[]; optional)
    - `product_variant_price_id` (integer; optional): ID from get_inventory product_variant_price.id
    - `product_variant_price_kit_id` (integer; optional): ID from get_product_kits
    - `label` (string; optional): Required for one-off line items with no catalog product
    - `quantity` (number; required): Quantity in cases when the product case_size is greater than 1
    - `price_per_unit` (number | null; optional): Defaults to catalog retail_price. Override requires can_change_order_pricing
    - `is_sample` (boolean; optional)
    - `discount` (object; optional)
      - `discount_id` (integer; optional): Existing discount ID from get_deal_options, including BOGO, kit, and quantity discounts
      - `label` (string; optional)
      - `discount_type` (string; optional): One-off line-item discounts must be percentage or fixed
      - `amount` (number | null; optional)
  - `discount` (object; optional)
    - `discount_id` (integer; optional): Existing order-level discount ID from get_deal_options
    - `label` (string; optional)
    - `discount_type` (string; optional)
    - `amount` (number | null; optional)
  - `tax` (object; optional)
    - `tax_id` (integer; optional): Existing tax ID from get_deal_options
    - `name` (string; optional)
    - `tax_type` (string; optional)
    - `rate` (number | null; optional)
    - `region` (string; optional)
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- Suggested workflow: search_contacts for account_id, get_deal_options for stage, discount, tax and terms, then get_inventory and get_product_kits for line items.
- Without an order, pass amount as the deal value. With an order, the total is calculated from its line items and amount is ignored.
- Overriding price_per_unit requires can_change_order_pricing. One-off line items require can_create_one_off_line_items. Inline discounts require can_create_one_off_discounts.
- Creating a deal in a reserving or fulfilling stage deducts inventory.
- An order may have at most one discount and one tax, and a line item at most one discount. Up to 200 line items.
- Zero-inventory and unintegrated-variant filters from the web UI are not applied.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_deal",
    "arguments": {
      "account_id": 48213,
      "name": "Acme Grocery restock",
      "idempotency_key": "deal-acme-2026-09-29-1",
      "order": {
        "payment_term": "Net 30",
        "line_items": [
          {
            "product_variant_price_id": 5601,
            "quantity": 2
          }
        ],
        "discount": {
          "discount_id": 78
        },
        "tax": {
          "tax_id": 9
        }
      }
    }
  }
}
```

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

```json
{
  "id": 9031,
  "name": "Acme Grocery restock",
  "amount": 70.15,
  "amount_owed": 70.15,
  "notes": null,
  "close_date": "2026-09-29",
  "created_at": "2026-09-29T14:30:00-05:00",
  "updated_at": "2026-09-29T14:30:00-05:00",
  "status": "Proposal",
  "is_revenue": false,
  "user": "Jordan Rivera",
  "lead_contact": null,
  "orders": [
    {
      "order_number": "1042",
      "order_date": "2026-09-29",
      "due_date": "2026-10-29",
      "payment_term": "Net 30",
      "memo": null,
      "notes": null,
      "subtotal": 72.0,
      "is_reserved": true,
      "is_fulfilled": false,
      "line_items": [
        {
          "label": "Cold Brew 12oz",
          "quantity": 2,
          "price_per_unit": 36.0,
          "is_sample": false,
          "product_name": "Cold Brew",
          "variant_label": "12 oz can, 24 pack",
          "sku": "CB-12-BLK",
          "product_kit": null,
          "discounts": []
        }
      ],
      "discounts": [
        {
          "label": "Fall promo 10%",
          "amount": 10.0,
          "discount_type": "percentage",
          "bogo_buy_count": null,
          "bogo_get_count": null,
          "kit_max_count": null,
          "quantity_min_count": null,
          "multiply_by_line_item_quantity": null
        }
      ],
      "taxes": [
        {
          "name": "TX Sales Tax",
          "rate": 8.25
        }
      ],
      "id": 1042,
      "total": 70.15
    }
  ],
  "deal_status_id": 4,
  "user_id": 7311,
  "currency_unit": "$",
  "account": {
    "id": 48213,
    "name": "Acme Grocery"
  },
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `name` (string | null)
- `amount` (number)
- `amount_owed` (number | null)
- `notes` (string | null)
- `close_date` (string | null): ISO8601 date
- `created_at` (string | null): ISO8601 timestamp
- `updated_at` (string | null): ISO8601 timestamp
- `status` (string | null)
- `is_revenue` (boolean)
- `user` (string | null): Deal owner display name
- `lead_contact` (string | null)
- `orders` (object[])
  - `order_number` (string | null)
  - `order_date` (string | null): ISO8601 date
  - `due_date` (string | null): ISO8601 date
  - `payment_term` (string | null)
  - `memo` (string | null)
  - `notes` (string | null)
  - `subtotal` (number | null)
  - `is_reserved` (boolean | null)
  - `is_fulfilled` (boolean | null)
  - `line_items` (object[])
    - `label` (string | null)
    - `quantity` (number)
    - `price_per_unit` (number | null)
    - `is_sample` (boolean | null)
    - `product_name` (string | null)
    - `variant_label` (string | null)
    - `sku` (string | null)
    - `product_kit` (object | null)
      - `name` (string | null)
      - `description` (string | null)
      - `components` (object[])
        - `product_name` (string | null)
        - `variant_label` (string | null)
        - `sku` (string | null)
    - `discounts` (object[])
      - `label` (string | null)
      - `amount` (number | null)
      - `discount_type` (string | null)
      - `bogo_buy_count` (integer | null)
      - `bogo_get_count` (integer | null)
      - `kit_max_count` (integer | null)
      - `quantity_min_count` (integer | null)
      - `multiply_by_line_item_quantity` (boolean | null)
  - `discounts` (object[])
    - `label` (string | null)
    - `amount` (number | null)
    - `discount_type` (string | null)
    - `bogo_buy_count` (integer | null)
    - `bogo_get_count` (integer | null)
    - `kit_max_count` (integer | null)
    - `quantity_min_count` (integer | null)
    - `multiply_by_line_item_quantity` (boolean | null)
  - `taxes` (object[])
    - `name` (string | null)
    - `rate` (number | null)
  - `id` (integer | null)
  - `total` (number | null): Order total after discounts and taxes
- `deal_status_id` (integer | null)
- `user_id` (integer | null)
- `currency_unit` (string | null)
- `account` (object | null)
  - `id` (integer)
  - `name` (string | null)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_deal_options](https://run.outfieldapp.com/docs/mcp/tools/get_deal_options.md), [get_inventory](https://run.outfieldapp.com/docs/mcp/tools/get_inventory.md), [get_product_kits](https://run.outfieldapp.com/docs/mcp/tools/get_product_kits.md)

## Forms

Discover the custom forms that can be attached when logging visits and calls.

### get_forms

**Get Forms** (read-only)

Lists the current active version of each accessible form with its id, title, required status, creation date and field count.

List the current active version of accessible Outfield forms, including each form's ID, title, required status, creation date, and field count. Every listed form can be attached to check-ins, meetings, phone calls, and calendar events. Honor is_required forms and meta.min_forms_required_per_interaction (check-ins and meetings) or meta.min_forms_required_per_phone_call (phone calls) when logging those interactions. Returns up to 50 forms per call, alphabetically by title. When meta.has_more is true, call again with cursor set to meta.next_cursor to fetch the next page. Use a returned form ID with get_form_detail to inspect its fields and conditions. If the user names a team, call get_user_profile first and pass organization_id. Omit organization_id to list the current organization.

- Scopes: `ai:read`
- Requires: AI, Custom forms, not available to Viewer users
- Example prompts: "Which forms do we use for store visits?"

#### Parameters

- `limit` (integer; optional): Max forms 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

- Every listed form can be attached to check-ins, meetings, phone calls and calendar events.
- Honor is_required forms and meta.min_forms_required_per_interaction (check-ins, meetings) or meta.min_forms_required_per_phone_call (calls) when logging.
- Returns up to 50 forms per page, alphabetically by title.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_forms",
    "arguments": {
      "limit": 25
    }
  }
}
```

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

```json
{
  "forms": [
    {
      "id": 318,
      "organization_id": 2044,
      "organization_name": "Acme Beverage Co.",
      "root_form_id": 5601,
      "title": "Shelf audit",
      "is_active": true,
      "is_required": true,
      "created_at": "2026-09-29T14:30:00-05:00",
      "form_field_count": 1
    }
  ],
  "meta": {
    "limit": 25,
    "has_more": false,
    "next_cursor": null,
    "form_count": 1,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co.",
    "min_forms_required_per_interaction": 1,
    "min_forms_required_per_phone_call": 1
  }
}
```

#### Response fields

- `forms` (object[])
  - `id` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)
  - `root_form_id` (integer)
  - `title` (string | null)
  - `is_active` (boolean)
  - `is_required` (boolean)
  - `created_at` (string): ISO8601 timestamp
  - `form_field_count` (integer)
- `meta` (object)
  - `limit` (integer)
  - `has_more` (boolean)
  - `next_cursor` (string | null): Opaque cursor for the next page; null when has_more is false
  - `form_count` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)
  - `min_forms_required_per_interaction` (integer)
  - `min_forms_required_per_phone_call` (integer)

Related tools: [get_form_detail](https://run.outfieldapp.com/docs/mcp/tools/get_form_detail.md), [create_check_in](https://run.outfieldapp.com/docs/mcp/tools/create_check_in.md), [create_meeting](https://run.outfieldapp.com/docs/mcp/tools/create_meeting.md), [create_phone_call](https://run.outfieldapp.com/docs/mcp/tools/create_phone_call.md), [get_org_activity](https://run.outfieldapp.com/docs/mcp/tools/get_org_activity.md)

### get_form_detail

**Get Form Detail** (read-only)

Full structure of a form: every field, its type and choices, ordering, KPI settings and conditional-field relationships.

Load structured details for an accessible Outfield form, including every form field, choices, options, ordering, KPI settings, and conditional field relationships. Every form can be attached to check-ins, meetings, phone calls, and calendar events. Use field ids and field_type rules when filling form_entries on create_check_in, create_meeting, or create_phone_call. Use get_forms first to resolve a form ID. Form IDs work across organizations the user belongs to.

- Scopes: `ai:read`
- Requires: AI, Custom forms, not available to Viewer users
- Example prompts: "What questions are on the shelf audit form?"

#### Parameters

- `form_id` (integer; required): Form ID

#### Notes

- Use the field ids and field_type rules from this response when filling form_entries.
- Form ids resolve across every organization the user belongs to, so this tool takes no organization_id.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_form_detail",
    "arguments": {
      "form_id": 318
    }
  }
}
```

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

```json
{
  "form": {
    "id": 318,
    "organization_id": 2044,
    "organization_name": "Acme Beverage Co.",
    "root_form_id": 5601,
    "title": "Shelf audit",
    "is_active": true,
    "is_required": true,
    "created_at": "2026-09-29T14:30:00-05:00",
    "form_field_count": 1,
    "form_fields": [
      {
        "id": 1101,
        "root_form_field_id": 5601,
        "field_type": "choice_list",
        "label": "Shelf condition",
        "is_required": true,
        "choices": ["Fully stocked", "Partially stocked", "Out of stock"],
        "created_at": "2026-09-29T14:30:00-05:00",
        "options": null,
        "position": 1,
        "units": "cases",
        "is_kpi": true,
        "is_conditional": false,
        "child_conditions": [],
        "parent_conditions": []
      }
    ]
  }
}
```

#### Response fields

- `form` (object)
  - `id` (integer)
  - `organization_id` (integer)
  - `organization_name` (string)
  - `root_form_id` (integer)
  - `title` (string | null)
  - `is_active` (boolean)
  - `is_required` (boolean)
  - `created_at` (string): ISO8601 timestamp
  - `form_field_count` (integer)
  - `form_fields` (object[])
    - `id` (integer)
    - `root_form_field_id` (integer)
    - `field_type` (string)
    - `label` (string | null)
    - `is_required` (boolean)
    - `choices` (string[])
    - `created_at` (string): ISO8601 timestamp
    - `options` (any)
    - `position` (integer)
    - `units` (string | null)
    - `is_kpi` (boolean)
    - `is_conditional` (boolean)
    - `child_conditions` (object[])
      - `id` (integer)
      - `form_entry_trigger` (string | null)
      - `comparison_type` (string | null)
      - `action` (string | null)
      - `parent_form_field_id` (integer)
      - `child_form_field_id` (integer)
      - `created_at` (string): ISO8601 timestamp
    - `parent_conditions` (object[])
      - `id` (integer)
      - `form_entry_trigger` (string | null)
      - `comparison_type` (string | null)
      - `action` (string | null)
      - `parent_form_field_id` (integer)
      - `child_form_field_id` (integer)
      - `created_at` (string): ISO8601 timestamp

Related tools: [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [create_check_in](https://run.outfieldapp.com/docs/mcp/tools/create_check_in.md), [create_meeting](https://run.outfieldapp.com/docs/mcp/tools/create_meeting.md), [create_phone_call](https://run.outfieldapp.com/docs/mcp/tools/create_phone_call.md)

## Log activity

Write tools that record check-ins, meetings, calls, messages, notes, tasks and calendar events.

### create_check_in

**Create Check In** (write)

Logs a completed check-in at one or more places (accounts), optionally with attached forms and answers.

Log a completed check-in at a place (account). Requires contact_ids of place contacts from search_contacts (contact_type=place). GPS location cannot be captured from ChatGPT or Claude. Do not invent coordinates. duration_minutes is reported duration only; recorded duration is not available. Form values must use field ids from get_form_detail. choice_list is one string from choices; checklist is an array of selected choice strings; checkbox is true or false; number_field is a number; text_field and text_area are strings. Do not send signature, photo, add_task, add_calendar_event, add_deal, or add_contact fields. Call get_forms then get_form_detail before attaching forms. Every listed form can be attached to check-ins, meetings, phone calls, and calendar events. Honor is_required forms and meta.min_forms_required_per_interaction (check-ins/meetings) or meta.min_forms_required_per_phone_call (phone calls). Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Log a 30 minute check-in at Acme Grocery. Shelves were fully stocked."

#### Parameters

- `contact_ids` (integer[]; required): Place (account) contact IDs from search_contacts
- `notes` (string; optional): Notes for the check-in
- `title` (string; optional): Optional title
- `occurred_at` (string; optional; ISO 8601 datetime): When the check-in happened (ISO8601). Defaults to now. Cannot be in the future.
- `duration_minutes` (integer; optional): Reported duration in minutes
- `form_ids` (integer[]; optional): Form IDs from get_forms to attach
- `form_entries` (object[]; optional)
  - `form_id` (integer; required)
  - `entries` (object[]; optional)
    - `id` (integer; required)
    - `value` (string | number | boolean | array; optional): Answer for the field. The type depends on the field's field_type; see Form values.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- GPS cannot be captured through an AI assistant, so check-ins are created without a location path (location_recorded is false).
- duration_minutes is reported duration only.
- occurred_at defaults to now and cannot be in the future.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_check_in",
    "arguments": {
      "contact_ids": [48213],
      "notes": "Store visit. Shelves fully stocked, new endcap up.",
      "duration_minutes": 30,
      "form_ids": [318],
      "form_entries": [
        {
          "form_id": 318,
          "entries": [
            {
              "id": 1101,
              "value": "Fully stocked"
            }
          ]
        }
      ],
      "idempotency_key": "checkin-acme-2026-09-29"
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "check_in",
  "title": "Store visit",
  "notes": "Store visit. Shelves fully stocked, new endcap up.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Acme Grocery",
  "form_results": "Shelf condition: Fully stocked",
  "reported_duration_seconds": 1800,
  "call_result": null,
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_form_detail](https://run.outfieldapp.com/docs/mcp/tools/get_form_detail.md)

### create_meeting

**Create Meeting** (write)

Logs a completed meeting with one or more people, optionally with attached forms and answers.

Log a completed meeting with a person. Requires contact_ids of person contacts from search_contacts (contact_type=person). GPS location cannot be captured from ChatGPT or Claude. Do not invent coordinates. duration_minutes is reported duration only; recorded duration is not available. Form values must use field ids from get_form_detail. choice_list is one string from choices; checklist is an array of selected choice strings; checkbox is true or false; number_field is a number; text_field and text_area are strings. Do not send signature, photo, add_task, add_calendar_event, add_deal, or add_contact fields. Call get_forms then get_form_detail before attaching forms. Every listed form can be attached to check-ins, meetings, phone calls, and calendar events. Honor is_required forms and meta.min_forms_required_per_interaction (check-ins/meetings) or meta.min_forms_required_per_phone_call (phone calls). Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Log a 45 minute meeting with Jordan Rivera about the fall reset."

#### Parameters

- `contact_ids` (integer[]; required): Person contact IDs from search_contacts
- `notes` (string; optional): Notes for the meeting
- `title` (string; optional): Optional title
- `occurred_at` (string; optional; ISO 8601 datetime): When the meeting happened (ISO8601). Defaults to now. Cannot be in the future.
- `duration_minutes` (integer; optional): Reported duration in minutes
- `form_ids` (integer[]; optional): Form IDs from get_forms to attach
- `form_entries` (object[]; optional)
  - `form_id` (integer; required)
  - `entries` (object[]; optional)
    - `id` (integer; required)
    - `value` (string | number | boolean | array; optional): Answer for the field. The type depends on the field's field_type; see Form values.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- contact_ids must be person contacts (search_contacts with contact_type=person).
- GPS cannot be captured through an AI assistant, so meetings are created without a location path.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_meeting",
    "arguments": {
      "contact_ids": [50442],
      "title": "Fall reset planning",
      "notes": "Agreed on endcap placement for October.",
      "occurred_at": "2026-09-29T10:00:00-05:00",
      "duration_minutes": 45
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "meeting",
  "title": "Fall reset planning",
  "notes": "Agreed on endcap placement for October.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Jordan Rivera",
  "form_results": null,
  "reported_duration_seconds": 2700,
  "call_result": null,
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_form_detail](https://run.outfieldapp.com/docs/mcp/tools/get_form_detail.md)

### create_phone_call

**Create Phone Call** (write)

Logs a completed phone call with a call result, optionally with attached forms and answers.

Log a completed phone call. Requires contact_ids and call_result (answered, did_not_answer, left_a_voicemail, left_a_message_with_someone_else, or invalid_phone_number). Duration is reported duration_minutes only. Form values must use field ids from get_form_detail. choice_list is one string from choices; checklist is an array of selected choice strings; checkbox is true or false; number_field is a number; text_field and text_area are strings. Do not send signature, photo, add_task, add_calendar_event, add_deal, or add_contact fields. Call get_forms then get_form_detail before attaching forms. Every listed form can be attached to check-ins, meetings, phone calls, and calendar events. Honor is_required forms and meta.min_forms_required_per_interaction (check-ins/meetings) or meta.min_forms_required_per_phone_call (phone calls). Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Log a call to Jordan Rivera. Left a voicemail."

#### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts
- `call_result` (string; required; one of `answered`, `did_not_answer`, `left_a_voicemail`, `left_a_message_with_someone_else`, `invalid_phone_number`): One of answered, did_not_answer, left_a_voicemail, left_a_message_with_someone_else, invalid_phone_number
- `notes` (string; optional): Notes for the phone call
- `title` (string; optional): Optional title
- `occurred_at` (string; optional; ISO 8601 datetime): When the call happened (ISO8601). Defaults to now. Cannot be in the future.
- `duration_minutes` (integer; optional): Reported duration in minutes
- `form_ids` (integer[]; optional): Form IDs from get_forms to attach
- `form_entries` (object[]; optional)
  - `form_id` (integer; required)
  - `entries` (object[]; optional)
    - `id` (integer; required)
    - `value` (string | number | boolean | array; optional): Answer for the field. The type depends on the field's field_type; see Form values.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- call_result is required and must be one of the listed values.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_phone_call",
    "arguments": {
      "contact_ids": [50442],
      "call_result": "left_a_voicemail",
      "notes": "Asked for a callback about the reorder.",
      "duration_minutes": 2
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "phone_call",
  "title": null,
  "notes": "Asked for a callback about the reorder.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Jordan Rivera",
  "form_results": null,
  "reported_duration_seconds": 120,
  "call_result": "left_a_voicemail",
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_form_detail](https://run.outfieldapp.com/docs/mcp/tools/get_form_detail.md)

### create_email

**Create Email** (write)

Logs an email interaction with one or more contacts. Forms cannot be attached.

Log an email interaction with one or more contacts. Forms cannot be attached. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Log the pricing email I just sent to Jordan Rivera."

#### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts
- `title` (string; optional): Email subject or title
- `notes` (string; optional): Email body or notes
- `occurred_at` (string; optional; ISO 8601 datetime): When the email happened (ISO8601). Defaults to now. Cannot be in the future.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- This records an email in Outfield. It does not send one.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_email",
    "arguments": {
      "contact_ids": [50442],
      "title": "Fall pricing sheet",
      "notes": "Sent the updated wholesale pricing and case pack details."
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "email",
  "title": "Fall pricing sheet",
  "notes": "Sent the updated wholesale pricing and case pack details.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Jordan Rivera",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

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

### create_text_message

**Create Text Message** (write)

Logs a text message interaction with one or more contacts. Forms cannot be attached.

Log a text message interaction with one or more contacts. Forms cannot be attached. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Log a text to Jordan Rivera confirming Friday's delivery."

#### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts
- `title` (string; optional): Optional title
- `notes` (string; optional): Message body or notes
- `occurred_at` (string; optional; ISO 8601 datetime): When the message happened (ISO8601). Defaults to now. Cannot be in the future.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- This records a text message in Outfield. It does not send one.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_text_message",
    "arguments": {
      "contact_ids": [50442],
      "notes": "Confirmed Friday morning delivery window."
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "text_message",
  "title": null,
  "notes": "Confirmed Friday morning delivery window.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Jordan Rivera",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

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

### create_note

**Create Note** (write)

Creates a note on one or more contacts. Forms cannot be attached.

Create a note on one or more contacts. Forms cannot be attached. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, not available to Viewer users
- Example prompts: "Add a note to Acme Grocery: new manager starts Monday."

#### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts
- `title` (string; optional): Optional title
- `notes` (string; optional): Note body
- `occurred_at` (string; optional; ISO 8601 datetime): When the note is for (ISO8601). Defaults to now. Cannot be in the future.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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": "create_note",
    "arguments": {
      "contact_ids": [48213],
      "title": "Staffing change",
      "notes": "New store manager, Sam Ortiz, starts Monday."
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "note",
  "title": "Staffing change",
  "notes": "New store manager, Sam Ortiz, starts Monday.",
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Acme Grocery",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": null,
  "is_complete": null,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

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

### create_task

**Create Task** (write)

Creates an incomplete task, optionally linked to contacts and with email or push reminders.

Create an incomplete task. due_at is the due date (ISO8601). Contacts are optional. Forms cannot be attached. Admins may pass assignee_user_id to create a task for another user in the organization. Optional reminders use notification_type email or push and seconds_before the due date. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, Tasks, not available to Viewer users
- Access: Admins may pass assignee_user_id to create a task for another user in the organization.
- Example prompts: "Remind me to follow up with Acme Grocery on Friday at 5pm."

#### Parameters

- `contact_ids` (integer[]; optional): Optional contact IDs from search_contacts
- `title` (string; optional): Task title
- `notes` (string; optional): Task notes
- `due_at` (string; optional; ISO 8601 datetime): Due date/time (ISO8601). Defaults to end of today in the user's time zone.
- `assignee_user_id` (integer; optional): Admin only: user ID to assign the task to. Defaults to the authenticated user.
- `reminders` (object[]; optional)
  - `notification_type` (string; required; one of `email`, `push`)
  - `seconds_before` (integer; required)
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- due_at defaults to the end of today in the user's time zone.
- Tasks cannot be created as complete. Up to 10 reminders.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_task",
    "arguments": {
      "contact_ids": [48213],
      "title": "Follow up on reorder",
      "due_at": "2026-10-02T17:00:00-05:00",
      "reminders": [
        {
          "notification_type": "push",
          "seconds_before": 3600
        }
      ]
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "task",
  "title": "Follow up on reorder",
  "notes": null,
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Acme Grocery",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": "2026-10-02T17:00:00-05:00",
  "is_complete": false,
  "starts_at": null,
  "ends_at": null,
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

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

### create_calendar_event

**Create Calendar Event** (write)

Schedules a calendar event: a planned check-in for places or a planned meeting for people.

Schedule a calendar event (planned check-in for a place, planned meeting for a person). Requires contact_ids, all of the same contact type, plus starts_at. Pass ends_at or duration_minutes for the event length. Recurring events are not supported. Optional form_ids attach forms to complete at the visit; do not send form_entries. Managers may pass assignee_user_id to schedule for a managed user. Optional idempotency_key prevents duplicate creates if the client retries.

- Scopes: `ai:read`, `ai:write`
- Requires: AI, Calendar, not available to Viewer users
- Access: Managers may pass assignee_user_id to schedule for a user they manage.
- Example prompts: "Schedule a visit to Acme Grocery next Tuesday at 10am for an hour."

#### Parameters

- `contact_ids` (integer[]; required): Contact IDs from search_contacts; all places or all people
- `starts_at` (string; required; ISO 8601 datetime): Event start (ISO8601)
- `ends_at` (string; optional; ISO 8601 datetime): Event end (ISO8601). Used instead of duration_minutes when present.
- `duration_minutes` (integer; optional): Reported duration in minutes when ends_at is omitted
- `title` (string; optional): Optional title
- `notes` (string; optional): Optional notes
- `form_ids` (integer[]; optional): Optional form IDs from get_forms to complete at the visit
- `assignee_user_id` (integer; optional): Admin or manager: user ID to schedule for. Defaults to the authenticated user.
- `idempotency_key` (string; optional): Client retry key; replays the original result for 24 hours
- `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

- All contact_ids must be the same type: all places (planned check-in) or all people (planned meeting).
- Pass ends_at or duration_minutes for the event length. Recurring events are not supported.
- form_ids attach forms to complete at the visit. Do not send form_entries.

#### Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_calendar_event",
    "arguments": {
      "contact_ids": [48213],
      "starts_at": "2026-10-06T10:00:00-05:00",
      "duration_minutes": 60,
      "title": "Fall reset walk-through",
      "form_ids": [318]
    }
  }
}
```

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

```json
{
  "id": 771204,
  "interaction_type": "planned_check_in",
  "title": "Fall reset walk-through",
  "notes": null,
  "created_at": "2026-09-29T14:30:00-05:00",
  "user": "Jordan Rivera",
  "contacts": "Acme Grocery",
  "form_results": null,
  "reported_duration_seconds": null,
  "call_result": null,
  "due_at": null,
  "is_complete": false,
  "starts_at": "2026-10-06T10:00:00-05:00",
  "ends_at": "2026-10-06T11:00:00-05:00",
  "location_recorded": false,
  "deduplicated": false,
  "warnings": []
}
```

#### Response fields

- `id` (integer)
- `interaction_type` (string)
- `title` (string | null)
- `notes` (string | null)
- `created_at` (string): ISO8601 timestamp
- `user` (string | null): Creator or owner display name
- `contacts` (string): Comma-joined contact names
- `form_results` (string | null)
- `reported_duration_seconds` (number | null)
- `call_result` (string | null)
- `due_at` (string | null): ISO8601 due datetime for tasks
- `is_complete` (boolean | null)
- `starts_at` (string | null): ISO8601 start for calendar events
- `ends_at` (string | null): ISO8601 end for calendar events
- `location_recorded` (boolean)
- `deduplicated` (boolean)
- `warnings` (string[])

Related tools: [search_contacts](https://run.outfieldapp.com/docs/mcp/tools/search_contacts.md), [get_forms](https://run.outfieldapp.com/docs/mcp/tools/get_forms.md), [get_user_calendar_events](https://run.outfieldapp.com/docs/mcp/tools/get_user_calendar_events.md)
