Skip to content

Conversation

rahul-madaan
Copy link
Contributor

@rahul-madaan rahul-madaan commented Sep 16, 2025

This PR adds a new tool get_asset_history for the following usecases

Tested for prompts like:
"when was the description updated and who updated it for x asset?"
"who was the owner of this x asset on y date"
"what was the description of this asset before it was last updated?"
"who changes the description from x to y for z asset?"

Screenshot 2025-09-18 at 11 20 51 PM Screenshot 2025-09-18 at 11 22 36 PM Screenshot 2025-09-18 at 11 24 25 PM Screenshot 2025-09-18 at 11 26 28 PM Screenshot 2025-09-18 at 11 26 53 PM

Copy link
Collaborator

@Hk669 Hk669 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please check the merge conflicts, i can test it locally post that.

Comment on lines +217 to +218
"count": len(entity_audits),
"totalCount": response.total_count,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the difference between count and totalCount?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Count is the number of audit entries that are now being sent by the MCP, which should be actually equal to the number of entries requested by the user in the request. And total_count is the total number of entries that can be obtained from Atlas.

size (int): Number of history entries to return. Defaults to 10.
sort_order (str): Sort order for results. "ASC" for oldest first, "DESC" for newest first.
Defaults to "DESC".
include_attributes (List[Union[str, AtlanField]], optional): List of additional attributes to include in results.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agents doesnt understand AtlanField in the context.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update.

type_name: Optional[str] = None,
size: int = 10,
sort_order: str = "DESC",
include_attributes: Optional[List[Union[str, AtlanField]]] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it supports AtlanField, AuditRequest should support these attributes right? whats the reason for snake to camelCase? check if it supports.

@rahul-madaan rahul-madaan requested a review from Hk669 September 22, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants