GET /api/application/v2/casetypes publishes list of casetypes for which an instance can be created by the user.
Is Pega planning to introduce a new API which lists all case types.
Consider an LLM Client interacting with Pega through MCP server and casetypes API publishes only casetypes for which can create is checked as true. Whenever we have child case types which are instated automatically during case processing would not published with current DX API.
In this context I want to know Pega is planning anything to release a new API which publishes all available case types in an application or this is already available and I overlooked.
Ideally, the child case is spinoff from Parent case with the center out architecture. I think it’s not a good idea to expose the child case API because we want to be driven through the workflow as a best practices and it complies with center out architecture.
1 Like
Hi @RameshSangili : Thank you for the response. I would like to hear some thoughts when MCP Clients like Claude code interact with Pega in future.
When we give a prompt :
- list all case types > Pega will return only Parent cases (only casetypes for which can create is checked as true)
- create one case for all casetypes > Pega will create cases for both Parent and child cases and provide the case id’s
Thanks for additional comments. I would recommend to spinoff the child case from Parent workflow instead of using DX APIs to create the child case. This will be intact irrespective of the channels that cases getting created. Can you think of a real time scenario where child cases needs to be created via DX APIs instead of case workflow?
Hi @RameshSangili : Thank you for quick response. Just exploring some GenAI things. Now I understand that while using LLM client to access Pega, we need to restrict creating child cases from LLM client using PreToolUse hook that fires before every mcp create_case call
1 Like