McpScreenDocsData.xml 41.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333
<?xml version="1.0" encoding="UTF-8"?>
<!--
  This software is in the public domain under CC0 1.0 Universal plus a
   Grant of Patent License.

   To the extent possible under law, the author(s) have dedicated all
   copyright and related and neighboring rights to this software to the
   public domain worldwide. This software is distributed without any warranty.

   You should have received a copy of the CC0 Public Domain Dedication
   along with this software. If not, see
   <http://creativecommons.org/publicdomain/zero/1.0/>.
 -->
<entity-facade-xml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-facade-3.xsd" type="seed">

    <!-- MCP Screen Documentation Wiki Space -->
    <moqui.resource.wiki.WikiSpace wikiSpaceId="MCP_SCREEN_DOCS"
        description="MCP Screen Documentation - LLM instructions for specific screens"
        restrictView="N"
        restrictUpdate="Y"
        rootPageLocation="dbresource://WikiSpace/MCP_SCREEN_DOCS.md"/>

    <!-- WikiSpace Root Page -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_SCREEN_DOCS"
        parentResourceId="WIKI_SPACE_ROOT"
        filename="MCP_SCREEN_DOCS.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_SCREEN_DOCS"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Moqui MCP Server

This server provides access to Moqui ERP through MCP.

## Getting Started

Use the following discovery tools to explore available functionality:
- `moqui_browse_screens`: Browse Moqui screen hierarchy
- `moqui_search_screens`: Search for screens by name to find their paths
- `moqui_get_screen_details`: Get dropdown options and field details
- `moqui_get_help`: Get documentation for actions

## Common Screen Paths

### Catalog Operations
- `apps/PopcAdmin/Catalog/dashboard`: Catalog overview and management
- `apps/PopcAdmin/Catalog/Product/FindProduct`: Search and browse products
- `apps/PopcAdmin/Catalog/Feature/FindFeature`: Search by features like color or size

### Order Management
- `apps/PopcAdmin/Order/FindOrder`: Lookup and create sales/purchase orders

### Party & Customer Management
- `apps/PopcAdmin/Party/FindParty`: Manage all parties (People, Organizations)
- `apps/PopcAdmin/Customer/FindCustomer`: Customer management

### Global Navigation (always available)
- `apps/my/User/Messages`: Send and receive messages
- `apps/my/User/Notifications`: View notifications
- `apps/my/User/Task/MyTasks`: Task management
- `apps/my/User/Calendar/MyCalendar`: Calendar events

## Tips for LLM Clients

### Executing Actions
- Use `moqui_browse_screens` with `action` parameter to execute transitions
- **Actions are NOT services** - don't try to call service names directly
- Example: `moqui_browse_screens(path='...', action='createProduct', parameters={...})`

### Getting Dropdown Options
- Dropdown fields show `type: "dropdown"` but not the actual options
- Use `moqui_get_screen_details(path='...', fieldName='fieldName')` to get available options
- For dependent dropdowns, pass context (e.g., `countryGeoId` for state dropdown)

### Getting Action Documentation
- Actions include a `help` field like `"help": "wiki:service:ProductAssoc"`
- Use `moqui_get_help(uri='wiki:service:ProductAssoc')` to get parameter details
- This explains required/optional parameters and valid values

### General Tips
- Use `renderMode: "compact"` for efficient structured output
- Global navigation (Messages, Tasks, Calendar) available in `globalNav` array
- Screen paths use forward slash notation: `apps/PopcAdmin/Catalog/Product`]]></fileData>
    </moqui.resource.DbResourceFile>

    <!-- Root Wiki Page -->
    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/root"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="root"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/root"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-02 00:00:00.000"/>

    <!-- Root Screen Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_ROOT"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="root.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_ROOT"
        mimeType="text/markdown"
        versionName="v1">
         <fileData><![CDATA[# Moqui MCP Server

This server provides access to Moqui ERP through MCP. Use the following tools to discover functionality and get help with common tasks.

## Help & Discovery Tools

Use these tools to find information:

- **`moqui_search_screens`**: Search for screens and workflows by name
  - Example: `moqui_search_screens(query="variant")` finds the Product Variant Creation workflow
  - Returns both screens and business process workflows

- **`moqui_browse_screens`**: Browse Moqui screen hierarchy
  - Use empty path for root: `moqui_browse_screens(path="")`
  - Navigate deep: `moqui_browse_screens(path="PopCommerce/Catalog/Product/FindProduct")`
  - Execute actions: `moqui_browse_screens(path="...", action="createProduct", parameters={...})`

- **`moqui_get_screen_details`**: Get dropdown options and field details
  - Use before submitting forms to understand available options
  - Example: `moqui_get_screen_details(path="PopCommerce/Party/EditParty", fieldName="countryGeoId")`

- **`moqui_get_help`**: Get extended documentation
  - Screen help: `moqui_get_help(uri="wiki:screen:EditProduct")`
  - Service help: `moqui_get_help(uri="wiki:service:Product")`
  - **Workflow help**: `moqui_get_help(uri="wiki:workflow:Product-Variant-Creation")`

## Business Process Workflows

Complex multi-step operations are documented as workflows. Use `moqui_search_screens` to find them:

**Example: Creating a Product Variant**

1. Search for variant workflow:
   ```
   moqui_search_screens(query="variant")
   ```
   Returns: `{"path": "wiki:workflow:Product-Variant-Creation", ...}`

2. Get workflow documentation:
   ```
   moqui_get_help(uri="wiki:workflow:Product-Variant-Creation")
   ```
   Returns: Complete 8-step guide with exact tool calls and parameters

3. Execute each step using the provided tool calls:
   - Clone parent product
   - Apply distinguishing features (e.g., ColorPurple, SizeSmall)
   - Set pricing (Current and List prices)
   - Link variant to virtual parent

The workflow documentation includes exact tool calls, expected responses, and troubleshooting guidance.

## Common Screen Paths

### Catalog Operations
- `/PopCommerce/PopCommerceAdmin/Catalog/dashboard`: Catalog overview and management
- `/PopCommerce/PopCommerceAdmin/Catalog/Product/FindProduct`: Search and browse products
- `/PopCommerce/PopCommerceAdmin/Catalog/Feature/FindFeature`: Search by features like color or size
- `/PopCommerce/PopCommerceAdmin/Catalog/Product/EditPrices`: View and update product prices

### Order Management
- `/PopCommerce/PopCommerceAdmin/Order/FindOrder`: Lookup and create sales/purchase orders
- `/PopCommerce/PopCommerceAdmin/QuickSearch`: General order and customer search

### Party & Customer Management
- `/PopCommerce/PopCommerceAdmin/Party/FindParty`: Manage all parties (People, Organizations)
- `/PopCommerce/PopCommerceRoot/Customer`: Customer storefront account management
- `User`: Internal user account, notifications, and messages
- `/PopCommerce/PopCommerceAdmin/QuickSearch`: Customer lookup

### Facility & Accounting
- `/PopCommerce/PopCommerceAdmin/Facility/FindFacility`: Manage warehouses and inventory locations
- `/PopCommerce/PopCommerceAdmin/Accounting/dashboard`: Financial management and GL accounting

### System & Developer Tools
- `/tools/Tools`: Developer tools, entity data editing, and service references

## Tips for LLM Clients

- **Actions are NOT services** - Use screen actions, not direct service calls
- **Use exact parameter names** - Tool calls in workflows use precise field names
- **Extract IDs from responses** - Create operations return internal IDs (not pseudoIds) for use in subsequent steps
- **Check dropdown options** - Use `moqui_get_screen_details` to see valid values before submitting
- **Use `renderMode: "compact"`** for efficient structured output
- **Check validation errors** - Action responses include `validationErrors` with field-specific messages
- **Read `help` fields** - Actions include `help` URIs (e.g., `wiki:service:ProductAssoc`) for detailed documentation]]></fileData>
    </moqui.resource.DbResourceFile>

    <!-- PopCommerce Root Screen Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_POPCOMM_ROOT"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="PopCommerce/PopCommerceRoot.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_POPCOMM_ROOT"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# PopCommerce Root

Main storefront and customer-facing screens for PopCommerce e-commerce component.

## Key Screens

- **Catalog & Products**: Browse the product catalog and view details
- **Customer Management**: Manage customer profiles and account settings
- **Order Management**: Track order history and status
- **Shopping Cart**: Review items and proceed to checkout
- **Messages**: Access `User/Messages` for internal communications

## Navigation

Use browse tools to explore the full catalog of PopCommerce screens. For administrative tasks, use the `/PopCommerce/PopCommerceAdmin` hierarchy.]]></fileData>
    </moqui.resource.DbResourceFile>

    <!-- PopCommerce Root Wiki Page -->
    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/PopCommerceRoot"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="PopCommerce/PopCommerceRoot"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/PopCommerceRoot"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-02 00:00:00.000"/>

    <!-- SimpleScreens Root Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_SIMPLE_ROOT"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="SimpleScreens/Root.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_SIMPLE_ROOT"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Simple Screens Root

Basic Moqui framework demonstration screens showing common patterns and examples.

## Screens

- **Hello World**: Simple text rendering example
- **Examples**: Various framework demonstration screens
- **Forms**: Form input and validation examples
- **Lists**: Data list and table examples

## Usage

These screens are primarily for learning Moqui screen development patterns.]]></fileData>
    </moqui.resource.DbResourceFile>

    <!-- SimpleScreens Root Wiki Page -->
    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/SimpleRoot"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="SimpleScreens/Root"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/SimpleRoot"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-02 00:00:00.000"/>

    <!-- User Messages Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_USER_MESSAGES"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="User/Messages.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_USER_MESSAGES"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# User Messages

Current user's messages interface. No partyId required - defaults to logged-in user.

## Recommended: Use FindMessage Subscreen

For full functionality (forms, actions, transitions), use the FindMessage subscreen:
```
path: User/Messages/FindMessage
```

## Send a Message

```
path: User/Messages/FindMessage
action: createMessage
parameters: {
  toPartyId: "JohnSales",
  subject: "Question about order",
  body: "Can you check order status?"
}
```

## Available Subscreens

- **FindMessage**: List and create messages (use this for most operations)
- **MessageThread**: View conversation thread for a specific message
- **EditMessage**: Edit/view a single message

## Difference from Party/PartyMessages

- **User/Messages**: Current user's messages (no partyId needed)
- **Party/PartyMessages**: Admin view of any party's messages (requires partyId)]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/UserMessages"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="User/Messages"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/UserMessages"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-14 00:00:00.000"/>

    <!-- Tools Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_TOOLS"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="tools/Tools.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_TOOLS"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Developer Tools

Central hub for developer and data management utilities.

## Key Subscreens

- **Entity**: Data editing, import/export, and performance stats. Use `tools/Tools/Entity/DataEdit/EntityList` to browse and edit any entity.
- **Service**: Service reference and testing tools.
- **AutoScreen**: Automatically generated screens for all entities.
- **GroovyShell**: Execute arbitrary Groovy code (use with extreme caution).

## Usage

Use these tools for low-level data manipulation or system exploration when standard administrative screens are insufficient.]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/Tools"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="tools/Tools"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/Tools"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-14 00:00:00.000"/>

    <!-- System Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_SYSTEM"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="tools/System.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_SYSTEM"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# System Administration

Core system management and monitoring screens.

## Key Subscreens

- **Security**: Manage users, user groups, and artifact permissions.
- **Cache**: View and clear system caches.
- **ServiceJob**: Manage scheduled and background service jobs.
- **LogViewer**: View system logs and hit statistics.

## Usage

Use these screens to monitor system health, manage user access, and troubleshoot operational issues.]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/System"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="tools/System"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/System"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-14 00:00:00.000"/>

    <!-- ========================================== -->
    <!-- Party Management Screens                   -->
    <!-- ========================================== -->

    <!-- FindParty Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_FIND_PARTY"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="PopCommerce/PopCommerceAdmin/Party/FindParty.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_FIND_PARTY"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Find Party

Search and create parties (People, Organizations, Sales Accounts, Employees).

## Quick Actions

### Create Person (Minimal)
```
action: createPerson
parameters: {firstName: "John", lastName: "Doe"}
```

### Create Organization
```
action: createOrganization
parameters: {organizationName: "Acme Corp"}
```

### Create Sales Account
```
action: createAccount
parameters: {organizationName: "New Account Inc"}
```

### Create Employee
```
action: createPersonEmployee
parameters: {firstName: "Jane", lastName: "Smith", emailAddress: "jane@example.com"}
```

### Create Customer (Full)
```
action: createPersonCustomer
parameters: {
  firstName: "Bob", lastName: "Customer",
  roleTypeId: "Customer",
  emailAddress: "bob@example.com",
  address1: "123 Main St", city: "Austin",
  stateProvinceGeoId: "USA_TX", countryGeoId: "USA", postalCode: "78701"
}
```

## Searching

Pass `anyField` parameter to search across all party fields:
```
parameters: {anyField: "john"}
```

## Results

The PartyListForm grid shows matching parties. Click a party ID link to navigate to EditParty for details.

## Key Fields

- **roleTypeId**: Customer, Supplier, Employee, etc. (140 options)
- **partyClassificationId**: CustConsumer, CustDistributor, etc. (49 options)
- **stateProvinceGeoId**: Depends on countryGeoId - use `moqui_get_screen_details` for dynamic options]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/FindParty"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="PopCommerce/PopCommerceAdmin/Party/FindParty"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/FindParty"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-19 00:00:00.000"/>

    <!-- EditParty Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_EDIT_PARTY"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="PopCommerce/PopCommerceAdmin/Party/EditParty.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_EDIT_PARTY"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Edit Party

View and modify party details including contact info, roles, classifications, and user accounts.

## Required Parameter

- **partyId**: The party to edit (e.g., `JohnSales`, `100051`)

## Key Actions

### Update Basic Info
```
action: updateParty
parameters: {partyId: "100051", firstName: "John", lastName: "Updated", comments: "VIP customer"}
```

### Add Role
```
action: createPartyRole
parameters: {partyId: "100051", roleTypeId: "Customer"}
```

### Add Classification
```
action: setPartyClassification
parameters: {partyId: "100051", partyClassificationId: "CustConsumer"}
```

### Create User Account
```
action: createUserAccount
parameters: {partyId: "100051", username: "jdoe", emailAddress: "jdoe@example.com", newPassword: "secret123", newPasswordVerify: "secret123", userGroupId: "POP_COMMERCE_USER"}
```

### Add Contact Info
```
action: storePartyContactMech
parameters: {partyId: "100051", emailAddress: "newemail@example.com"}
```

## Subscreens

- **FindDuplicates**: Find potential duplicate party records
- **UpdateContactInfo**: Manage postal addresses, phone numbers, emails
- **UpdatePaymentMethodInfo**: Manage credit cards and payment methods

## Related Entities

This screen manages: Party, Person/Organization, PartyRole, PartyClassification, PartyContactMech, UserAccount]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/EditParty"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="PopCommerce/PopCommerceAdmin/Party/EditParty"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/EditParty"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-19 00:00:00.000"/>

    <!-- PartyMessages/FindMessage Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_PARTY_MESSAGES"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="PopCommerce/PopCommerceAdmin/Party/PartyMessages/FindMessage.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_PARTY_MESSAGES"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Party Messages

Send and view messages to/from parties. Use for internal communications about orders, products, or customers.

## Required Parameter

**partyId** is required to view this screen. Always pass a party ID:
```
path: PopCommerce/PopCommerceAdmin/Party/PartyMessages/FindMessage
parameters: {partyId: "JohnSales"}
```

## Send a Message

```
action: createMessage
parameters: {
  partyId: "JohnSales",
  toPartyId: "JohnSales",
  subject: "New product available",
  body: "The green variant of DEMO_VAR is now in stock."
}
```

## View Messages for a Party

```
path: PopCommerce/PopCommerceAdmin/Party/PartyMessages/FindMessage
parameters: {partyId: "JohnSales"}
```

This shows all messages to or from the specified party.

## Message Types

Messages are stored as CommunicationEvent entities with:
- **communicationEventTypeId**: Defaults to internal message type
- **statusId**: Message status (sent, read, etc.)
- **fromPartyId**: Sender (defaults to current user)
- **toPartyId**: Recipient party

## Difference from User/Messages

- **Party/PartyMessages**: Admin screen for messaging any party in the system (requires partyId)
- **User/Messages**: User-facing screen for current user's own messages (no partyId needed)

Use PartyMessages when you need to send messages on behalf of the system or to parties who may not have user accounts.]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/PartyMessages"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="PopCommerce/PopCommerceAdmin/Party/PartyMessages/FindMessage"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/PartyMessages"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-19 00:00:00.000"/>

    <!-- ========================================== -->
    <!-- Catalog/Product Screens                    -->
    <!-- ========================================== -->

    <!-- FindProduct Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_FIND_PRODUCT"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="PopCommerce/PopCommerceAdmin/Catalog/Product/FindProduct.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_FIND_PRODUCT"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Find Product

Search and create products in the catalog.

## Searching Products

### By Name or ID
```
parameters: {productId: "DEMO", anyField: "widget"}
```

### By Category
```
parameters: {productCategoryId: "CATALOG"}
```

### By Feature
```
parameters: {productFeatureId: "ColorBlue"}
```

## Creating Products

**IMPORTANT: productId vs pseudoId**

When creating products, Moqui uses TWO different identifiers:
- **pseudoId**: User-visible ID (e.g., `DEMO_VAR_GR_SM`) - used for display and searches
- **productId**: Internal database ID (e.g., `100000`) - auto-generated, used by all services

After calling `createProduct`, the response includes `productId` in the result. **You must use this internal productId** (not the pseudoId) for all subsequent operations like:
- Adding features (`createProductFeature`)
- Creating associations (`createProductAssoc`)
- Setting prices (`createProductPrice`)

Example response after createProduct:
```
actionResult: {
  status: "executed",
  result: { productId: "100000" }  // Use THIS ID
}
```

### Standard Product
```
action: createProduct
parameters: {
  pseudoId: "MY_WIDGET_001",  // Optional user-visible ID
  productName: "New Widget",
  productTypeEnumId: "PtAsset",
  assetTypeEnumId: "AstTpInventory"
}
// Response includes: productId: "100XXX" - use this for subsequent calls
```

### Virtual Product (for variants)
```
action: createProduct
parameters: {
  pseudoId: "MY_VIRTUAL_001",  // Optional user-visible ID  
  productName: "Widget with Options",
  productTypeEnumId: "PtVirtual"
}
// Response includes: productId: "100XXX" - use this for subsequent calls
```

## Product Types

- **PtAsset**: Standard inventory product
- **PtVirtual**: Parent product for variants (has selectable features)
- **PtService**: Service or labor product
- **PtDigital**: Downloadable digital product

## Workflow: Creating Variants

1. Create virtual parent: `productTypeEnumId: "PtVirtual"`
2. Navigate to EditProduct, add selectable features (e.g., Color: Red, Blue)
3. Create variant products: `productTypeEnumId: "PtAsset"`
4. On variants, add distinguishing features (e.g., Color: Red)
5. Create ProductAssoc linking parent to variants with `productAssocTypeEnumId: "PatVariant"`

## Results

ProductListForm grid shows matches. Click product link to navigate to EditProduct.]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/FindProduct"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="PopCommerce/PopCommerceAdmin/Catalog/Product/FindProduct"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/FindProduct"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-19 00:00:00.000"/>

    <!-- EditProduct Documentation -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_DOCS_EDIT_PRODUCT"
        parentResourceId="WIKI_MCP_SCREEN_DOCS"
        filename="PopCommerce/PopCommerceAdmin/Catalog/Product/EditProduct.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_DOCS_EDIT_PRODUCT"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Edit Product

Manage product details, features, prices, categories, and associations.

## Required Parameter

- **productId**: Internal product ID to edit (e.g., `DEMO_1`, `100000`)

**Note:** Always use the internal `productId` (returned from createProduct), NOT the user-visible `pseudoId`. Using pseudoId will cause referential integrity errors.

## Key Subscreens

- **EditProduct** (main): Basic product info
- **EditFeatures**: Product features (selectable/distinguishing)
- **EditAssocs**: Product associations (variants, accessories, etc.)
- **EditPrices**: Price configuration
- **EditCategories**: Category membership

## Managing Features

Features are managed directly on the EditProduct screen (not a separate EditFeatures subscreen).

**IMPORTANT:** Use `applyProductFeatures` to add existing features (like ColorGreen). 
Use `createProductFeature` only to create NEW feature definitions.

### Add Selectable Feature (Virtual Products)
```
path: PopCommerce/PopCommerceAdmin/Catalog/Product/EditProduct
action: applyProductFeatures
parameters: {
  productId: "DEMO_VAR",
  productFeatureIdList: ["ColorGreen"],
  applTypeEnumId: "PfatSelectable"
}
```

### Add Distinguishing Feature (Variant Products)
```
path: PopCommerce/PopCommerceAdmin/Catalog/Product/EditProduct
action: applyProductFeatures
parameters: {
  productId: "DEMO_VAR_GR_SM",
  productFeatureIdList: ["ColorGreen", "SizeSmall"],
  applTypeEnumId: "PfatDistinguishing"
}
```

## Feature Application Types

- **PfatSelectable**: Customer can choose this feature (on virtual parent)
- **PfatDistinguishing**: Identifies a specific variant
- **PfatStandard**: Always included with product
- **PfatRequired**: Must be selected at purchase

## Managing Associations

EditAssocs is a sibling screen to EditProduct under Product (not a child of EditProduct).

### Link Variant to Parent
```
path: PopCommerce/PopCommerceAdmin/Catalog/Product/EditAssocs
action: createProductAssoc
parameters: {
  productId: "DEMO_VAR",
  toProductId: "DEMO_VAR_RED",
  productAssocTypeEnumId: "PatVariant"
}
```

## Association Types

- **PatVariant**: Links virtual parent to variant
- **PatAccessory**: Suggested accessory
- **PatComplement**: Complementary product
- **PatSubstitute**: Equivalent alternative

## Complete Variant Workflow

1. Edit virtual product, go to EditFeatures
2. Add selectable features (PfatSelectable) for each option
3. Create variant products via FindProduct
4. Edit each variant, add distinguishing feature (PfatDistinguishing)
5. Edit parent, go to EditAssocs, create PatVariant associations]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SCREEN_DOCS/EditProduct"
        wikiSpaceId="MCP_SCREEN_DOCS"
        pagePath="PopCommerce/PopCommerceAdmin/Catalog/Product/EditProduct"
        publishedVersionName="v1"
        restrictView="N">
    </moqui.resource.wiki.WikiPage>

    <moqui.resource.wiki.WikiPageHistory
        wikiPageId="MCP_SCREEN_DOCS/EditProduct"
        historySeqId="1"
        versionName="v1"
        userId="EX_JOHN_DOE"
        changeDateTime="2025-01-19 00:00:00.000"/>

    <!-- ============================================== -->
    <!-- MCP Service Documentation Wiki Space          -->
    <!-- Referenced by describedby in ARIA responses   -->
    <!-- ============================================== -->
    
    <moqui.resource.wiki.WikiSpace wikiSpaceId="MCP_SERVICE_DOCS"
        description="MCP Service Documentation - Parameter and usage docs for common services"
        restrictView="N"
        restrictUpdate="Y"
        rootPageLocation="dbresource://WikiSpace/MCP_SERVICE_DOCS.md"/>

    <!-- Service Docs Root -->
    <moqui.resource.DbResource
        resourceId="WIKI_MCP_SERVICE_DOCS"
        parentResourceId="WIKI_SPACE_ROOT"
        filename="MCP_SERVICE_DOCS.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_MCP_SERVICE_DOCS"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# MCP Service Documentation

Documentation for common Moqui services used via MCP actions.

Services are referenced by `describedby` in ARIA mode responses.

## Service Naming Convention

- `create#Entity` - Create new record
- `update#Entity` - Update existing record  
- `delete#Entity` - Delete record
- `store#Entity` - Create or update (upsert)
- `Namespace.ServiceName.verb#Noun` - Custom service]]></fileData>
    </moqui.resource.DbResourceFile>

    <!-- ==================== -->
    <!-- Product Services     -->
    <!-- ==================== -->

    <!-- Product Entity -->
    <moqui.resource.DbResource
        resourceId="WIKI_SVC_PRODUCT"
        parentResourceId="WIKI_MCP_SERVICE_DOCS"
        filename="Product.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_SVC_PRODUCT"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Product Service

Create and update products.

## create#mantle.product.Product

**Required:**
- `productName` (string): Display name

**Optional:**
- `pseudoId` (string): User-visible ID (auto-generated if omitted)
- `productTypeEnumId`: PtAsset (default), PtVirtual, PtService, PtDigital
- `ownerPartyId`: Organization that owns this product
- `description`: Long description
- `assetTypeEnumId`: For physical products - AstTpInventory, AstTpFixed
- `assetClassEnumId`: AstClsInventoryFin (standard inventory)

**Returns:**
- `productId`: Internal ID (use this for subsequent operations)

**Example:**
```
action: createProduct
parameters: {
  productName: "Blue Widget",
  productTypeEnumId: "PtAsset",
  ownerPartyId: "ORG_ZIZI_RETAIL"
}
```

## update#mantle.product.Product

**Required:**
- `productId`: Internal product ID to update

**Optional:** Any Product field (productName, description, etc.)]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SERVICE_DOCS/Product"
        wikiSpaceId="MCP_SERVICE_DOCS"
        pagePath="Product"
        publishedVersionName="v1"
        restrictView="N"/>

    <!-- ProductFeature Service -->
    <moqui.resource.DbResource
        resourceId="WIKI_SVC_PRODUCT_FEATURE"
        parentResourceId="WIKI_MCP_SERVICE_DOCS"
        filename="ProductFeature.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_SVC_PRODUCT_FEATURE"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# ProductFeature Service

Manage product features (color, size, etc.) - two different operations:

## IMPORTANT: Two Different Services

1. **applyProductFeatures** - Apply EXISTING features to a product (most common)
2. **createProductFeature** - Create a NEW feature definition (rare)

Most of the time you want `applyProductFeatures` to link existing features like ColorGreen or SizeLarge to products.

---

## mantle.product.ProductServices.apply#ProductFeatures

**Use this to apply existing features to products.**

**Action:** `applyProductFeatures`

**Required:**
- `productId`: Product to add features to
- `productFeatureIdList`: List of feature IDs (e.g., ["ColorGreen", "SizeMedium"])

**Optional:**
- `applTypeEnumId`: How feature applies (default: PfatStandard)
- `fromDate`: When feature becomes active (default: now)
- `sequenceNum`: Display order

**Application Types (applTypeEnumId):**
- `PfatSelectable`: Customer can choose (use on virtual parent)
- `PfatDistinguishing`: Identifies specific variant (use on variants)
- `PfatStandard`: Always included
- `PfatRequired`: Must be selected at purchase

**Example - Add Selectable Feature to Virtual Parent:**
```
action: applyProductFeatures
parameters: {
  productId: "DEMO_VAR",
  productFeatureIdList: ["ColorGreen"],
  applTypeEnumId: "PfatSelectable"
}
```

**Example - Add Distinguishing Feature to Variant:**
```
action: applyProductFeatures
parameters: {
  productId: "DEMO_VAR_GR_SM",
  productFeatureIdList: ["ColorGreen", "SizeSmall"],
  applTypeEnumId: "PfatDistinguishing"
}
```

---

## mantle.product.ProductServices.create#ProductFeature

**Use this ONLY to create a NEW feature that doesn't exist yet.**

**Action:** `createProductFeature`

**Required:**
- `productFeatureTypeEnumId`: Type of feature (PftColor, PftSize, etc.)
- `description`: Feature name/description (e.g., "Green", "Extra Small")

**Optional:**
- `productId`: If provided, also applies the new feature to this product
- `applTypeEnumId`: How to apply (if productId provided)
- `abbrev`: Short abbreviation (e.g., "GR", "XS")

**Example - Create a new color feature:**
```
action: createProductFeature
parameters: {
  productFeatureTypeEnumId: "PftColor",
  description: "Teal",
  abbrev: "TL",
  productId: "DEMO_VAR",
  applTypeEnumId: "PfatSelectable"
}
```

---

## Common Feature IDs (already exist - use with applyProductFeatures)

**Colors:** ColorRed, ColorBlue, ColorGreen, ColorBlack, ColorWhite
**Sizes:** SizeSmall, SizeMedium, SizeLarge, SizeXL]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SERVICE_DOCS/ProductFeature"
        wikiSpaceId="MCP_SERVICE_DOCS"
        pagePath="ProductFeature"
        publishedVersionName="v1"
        restrictView="N"/>

    <!-- ProductAssoc Service -->
    <moqui.resource.DbResource
        resourceId="WIKI_SVC_PRODUCT_ASSOC"
        parentResourceId="WIKI_MCP_SERVICE_DOCS"
        filename="ProductAssoc.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_SVC_PRODUCT_ASSOC"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# ProductAssoc Service

Link products together (variants, accessories, etc.)

## create#mantle.product.ProductAssoc

**Required:**
- `productId`: Parent/source product
- `toProductId`: Related product
- `productAssocTypeEnumId`: Type of relationship

**Association Types:**
- `PatVariant`: Links virtual parent to variant product
- `PatAccessory`: Suggested accessory
- `PatComplement`: Complementary product
- `PatSubstitute`: Equivalent alternative
- `PatUpSell`: Higher-tier recommendation
- `PatCrossSell`: Related product suggestion

**Optional:**
- `fromDate`: When association starts (default: now)
- `quantity`: For BOM/kits
- `sequenceNum`: Display order

**Example - Link Variant:**
```
action: createProductAssoc
parameters: {
  productId: "DEMO_VAR",
  toProductId: "DEMO_VAR_GR_SM",
  productAssocTypeEnumId: "PatVariant"
}
```

**Note:** Use internal `productId` values, not pseudoId.]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SERVICE_DOCS/ProductAssoc"
        wikiSpaceId="MCP_SERVICE_DOCS"
        pagePath="ProductAssoc"
        publishedVersionName="v1"
        restrictView="N"/>

    <!-- ProductPrice Service -->
    <moqui.resource.DbResource
        resourceId="WIKI_SVC_PRODUCT_PRICE"
        parentResourceId="WIKI_MCP_SERVICE_DOCS"
        filename="ProductPrice.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_SVC_PRODUCT_PRICE"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# ProductPrice Service

Manage product pricing.

## create#mantle.product.ProductPrice

**Required:**
- `productId`: Product to price
- `price`: Amount
- `priceTypeEnumId`: Type of price
- `pricePurposeEnumId`: Purpose/context

**Price Types (priceTypeEnumId):**
- `PptList`: Standard list price
- `PptCurrent`: Current selling price
- `PptMin`: Minimum allowed price
- `PptMax`: Maximum allowed price
- `PptCompetitive`: Competitor price
- `PptPromotional`: Sale/promo price

**Price Purposes (pricePurposeEnumId):**
- `PppPurchase`: Buying price (from supplier)
- `PppSales`: Selling price (to customer)

**Optional:**
- `priceUomId`: Currency (default: USD)
- `minQuantity`: Quantity break (for tiered pricing)
- `fromDate`: When price becomes active
- `thruDate`: When price expires
- `productStoreId`: Store-specific pricing

**Example - Basic Price:**
```
action: createProductPrice
parameters: {
  productId: "DEMO_VAR_GR_SM",
  price: 19.99,
  priceTypeEnumId: "PptList",
  pricePurposeEnumId: "PppSales",
  priceUomId: "USD"
}
```

**Example - Quantity Break:**
```
action: createProductPrice
parameters: {
  productId: "DEMO_VAR_GR_SM",
  price: 17.99,
  priceTypeEnumId: "PptList",
  pricePurposeEnumId: "PppSales",
  minQuantity: 10
}
```]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SERVICE_DOCS/ProductPrice"
        wikiSpaceId="MCP_SERVICE_DOCS"
        pagePath="ProductPrice"
        publishedVersionName="v1"
        restrictView="N"/>

    <!-- ==================== -->
    <!-- Party Services       -->
    <!-- ==================== -->

    <!-- Person Service -->
    <moqui.resource.DbResource
        resourceId="WIKI_SVC_PERSON"
        parentResourceId="WIKI_MCP_SERVICE_DOCS"
        filename="Person.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_SVC_PERSON"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Person Service

Create and manage people (parties).

## mantle.party.PartyServices.create#Person

**Required:**
- `firstName`: First name
- `lastName`: Last name

**Optional:**
- `middleName`: Middle name
- `emailAddress`: Primary email
- `roleTypeId`: Role (Customer, Employee, etc.)
- `ownerPartyId`: Organization that owns this party record

**Returns:**
- `partyId`: Internal party ID

**Example:**
```
action: createPerson
parameters: {
  firstName: "Jane",
  lastName: "Smith",
  emailAddress: "jane@example.com"
}
```

## mantle.party.PartyServices.update#PartyDetail

**Required:**
- `partyId`: Party to update

**Optional:** firstName, lastName, middleName, comments, etc.]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SERVICE_DOCS/Person"
        wikiSpaceId="MCP_SERVICE_DOCS"
        pagePath="Person"
        publishedVersionName="v1"
        restrictView="N"/>

    <!-- CommunicationEvent (Message) Service -->
    <moqui.resource.DbResource
        resourceId="WIKI_SVC_MESSAGE"
        parentResourceId="WIKI_MCP_SERVICE_DOCS"
        filename="Message.md"
        isFile="Y"/>
    <moqui.resource.DbResourceFile
        resourceId="WIKI_SVC_MESSAGE"
        mimeType="text/markdown"
        versionName="v1">
        <fileData><![CDATA[# Message Service

Send messages between parties.

## mantle.party.CommunicationServices.create#Message

**Required:**
- `toPartyId`: Recipient party ID
- `subject`: Message subject
- `body`: Message content

**Optional:**
- `fromPartyId`: Sender (defaults to current user)
- `purposeEnumId`: Message purpose
- `communicationEventTypeId`: Message type

**Purpose Types (purposeEnumId):**
- `CpComment`: General comment
- `CpSupport`: Support request
- `CpActivityRequest`: Activity/task request
- `CpBilling`: Billing inquiry

**Example:**
```
action: createMessage
parameters: {
  toPartyId: "EX_JOHN_DOE",
  subject: "Green variants ready",
  body: "The green product variants have been created and are ready for review."
}
```

**Screen Path:** Party/PartyMessages]]></fileData>
    </moqui.resource.DbResourceFile>

    <moqui.resource.wiki.WikiPage
        wikiPageId="MCP_SERVICE_DOCS/Message"
        wikiSpaceId="MCP_SERVICE_DOCS"
        pagePath="Message"
        publishedVersionName="v1"
        restrictView="N"/>

</entity-facade-xml>