-
Notifications
You must be signed in to change notification settings - Fork 13
Add get_asset_history tool #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
"count": len(entity_audits), | ||
"totalCount": response.total_count, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
modelcontextprotocol/server.py
Outdated
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update.
modelcontextprotocol/tools/assets.py
Outdated
type_name: Optional[str] = None, | ||
size: int = 10, | ||
sort_order: str = "DESC", | ||
include_attributes: Optional[List[Union[str, AtlanField]]] = None, |
There was a problem hiding this comment.
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.
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?"