OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

MCP `create_entity` does not surface approval state

Open Vishnuujain opened this issue 2 months ago • 2 comments

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 entityStatus in the create_entity response.
  • 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 avatar Sep 17 '26 05:09 Vishnuujain

@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 avatar Oct 15 '26 09:10 AbanoubSamir004

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.

Vishnuujain avatar Oct 15 '26 10:10 Vishnuujain