MCP `create_entity` does not surface approval state
Part of #33454.
Background
Governance already works on this path. GlossaryTermRepository:1097-1099 sets a new term to DRAFT when the parent or glossary has reviewers, and GlossaryApprovalWorkflow triggers on eventBasedEntity / glossaryTerm / Created. So a term created through MCP enters the same approval flow as one created in the UI. MCP also acts as the authenticated end user (McpServer.java:316-327), not a bot, so the caller's own permissions apply.
Problem
The report back is missing. The create_entity response does not say that the term landed in Draft, or who has to approve it.
From inside a chat, a governed create looks identical to an immediate one. The agent says "created" when the honest answer is "submitted for review by the Finance stewards".
What to do
- Include
entityStatusin thecreate_entityresponse. - When the entity entered an approval workflow, include the reviewers and the task reference.
- Keep it generic rather than glossary-specific. The same applies to any entity type whose repository sets a non-approved initial status.
@Vishnuujain , we experienced the same behavior in OM v1.13.2, so why is it happening again? I thought this issue had already been fixed in previous versions. Could you please clarify whether this is the expected behavior for glossaries in this version or if it is a regression?
13. @Vishnuujain , we experienced the same behavior in OM v1.13.2, so why is it happening again? I thought this issue had already been fixed in previous versions. Could you please clarify whether this is the expected behavior for glossaries in this version or if it is a regression?
@AbanoubSamir004 this one's unrelated, it's only about what the MCP create_entity tool reports back to an agent.