get_change_history
get_change_history
Reads the change history of an AI Agent from the Audit log. Each row is one configuration change: what changed, when, who changed it, and through which interface. Rows come newest first.
Use it to find what changed on the Agent and who changed it. Use it also to match a configuration change to a change in a metric.
Read-only.
Example prompts
- “What changed on the AI Agent last week, and who changed it?”
- “Show every change to the Refund flow Playbook this month.”
- “Did anything change on the Agent the day before the CSAT dropped?”
- “List the changes that ana@example.com made in the last 30 days.”
Parameters
All parameters are optional. Filters combine with AND.
A date without a time zone is read as UTC.
Date window
With no dates, the window is the last 7 days. The maximum window is 30 days. A longer window returns an error. For a longer period, make one call for each window of 30 days or less.
Entity types
entity_type accepts these values:
agent_health_email, agent_health_rule, api_key, audience, changeset, channel, coaching, collaboration, config_import, conversation_trigger, custom_instruction, custom_metric, glossary_term, greeting, handoff, intent, knowledge_article, knowledge_source, mcp_access_policy, mcp_server, persona, playbook, proactive_conversation, process, saved_view, setting, simulation, team_member, test_case, tool, topic, variable, verification_policy.
tool covers API tools, code tools, and MCP tools.
The tool returns no Sign-in entries. Read them on the Audit log page.
Response
Each row has these fields:
Before and after values
The Audit log does not store before and after values.
For a row with a changeset_id, call list_agent_changesets with that changeset_id and include_diff set to true. It returns the before and after value of each field.
A change made directly, for example in the dashboard, has no changeset_id and no before and after values.
A row for a reverted or deleted change set also has no changeset_id. Its entity_id is the change set that was reverted or deleted.
- Reverted: call
list_agent_changesetswith thatentity_idaschangeset_idandinclude_diffset totrue. It returns the change that the revert undid. - Deleted: a deleted change set cannot be read.
History of an MCP tool
The Audit log stores the changes of an MCP tool under the ID of its MCP server. To read the history of an MCP tool, set entity_type to tool and entity_id to the ID of its MCP server. The entity_name of each row is the name of the MCP server, then the name of the tool, for example Search - remote_search.
A call with the ID of the MCP tool itself returns an error. The error gives the ID of the MCP server to use.
Paging through results
If next_cursor is not null, call again with the same parameters and cursor set to next_cursor. Keep the same filters and dates on every page. A cursor with changed filters or dates returns an error. To start a new query, leave out cursor.
Errors
- The Audit log is off for the AI Agent. The tool returns an error, because no history is recorded. This error does not mean that nothing changed. Contact your Ada team to turn on the Audit log.
- The Audit log is off for API connections. A connection with an API key also needs Audit log access for API connections. Without it, the tool returns an error. Connect with OAuth, or contact your Ada team to turn it on.