A collection of sample solutions that demonstrate what is possible with the Microsoft Graph Package Management (Inventory) API — a Microsoft Graph API that gives tenant admins programmatic access to manage Copilot agents deployed in their tenant.
Please note - Access to the Package Management API requires a Microsoft Agent 365 license.
Each sample targets a different platform or persona and is designed as a reference implementation and starting point, not a production-ready solution.
⚠️ Disclaimer: Some of these samples have been "vibe coded" — rapidly built with AI assistance — and are provided as-is. Always review, test, and validate any sample in a non-production environment before deploying it to production.
All samples in this repository are built on the Microsoft Graph Package Management API (/v1.0/copilot/admin/catalog/packages). This API exposes a catalog of Copilot agents (packages) available in a tenant, including agents built with Agent Builder, Copilot Studio, Pro Dev Tools and 1P/3P agents.
Note: Some samples may still call the
/betaendpoint. These are being transitioned to/v1.0.
Common capabilities unlocked by the API include:
- Listing all Copilot agents available in a tenant.
- Retrieving detailed metadata for a specific agent.
- Identifying duplicate, orphaned, or underused agents.
- Supporting governance workflows such as attestation and lifecycle management.
| Sample | Platform | Description |
|---|---|---|
| Agent Steward (deprecated) | Microsoft 365 Copilot Declarative Agent | Deprecated in favour of Agent Warden. Its direct API calls do not follow paging, limiting the inventory returned and the resulting analysis on larger tenants. |
| Agent Warden | Microsoft 365 Copilot Declarative Agent | A declarative agent that discovers, analyses and takes action on Copilot agents — block, unblock, and reassign availability/deployment. It reads inventory from a pre-synced SharePoint list so it scales to large tenants. The recommended successor to Agent Steward; requires the list to be created and synced first. |
| Catalog Connector | Microsoft Power Platform | A Power Platform custom connector for the Microsoft Graph Package Management API. Import the included swagger file to use the connector in Power Automate flows, Power Apps, and Logic Apps to list, filter, and retrieve Copilot agent metadata from your tenant. |
| Agent Sync SharePoint | Microsoft Power Platform | A Power Automate flow (delivered as an unmanaged solution) that syncs your tenant's Copilot agent inventory to a SharePoint list, giving admins a familiar, filterable view of all agents. |
| Agent Sync SharePoint (PowerShell) | PowerShell | A pair of app-only PowerShell scripts that provision a SharePoint list and sync your tenant's Copilot agent inventory to it — a code-based alternative to the Power Automate flow, with pagination and upsert support. |
| Attestation — COMING SOON | Microsoft Power Platform | A Power Automate-based solution that retrieves agent inventory from the API, stores it in SharePoint or Dataverse, and drives attestation and lifecycle management workflows. |
Agent Steward is deprecated. Use Agent Warden instead. Steward's direct Package Management API calls do not follow paging, so larger catalogs return limited results and its analysis can be incomplete. Warden reads from a pre-synced SharePoint list and offers broader functionality: duplicate consolidation recommendations, discovery of high-value LOB agent use cases, usage insights through the native Insights Agent, and blocking, unblocking, and reassignment. Create and populate the inventory list first using Agent Sync SharePoint or the PowerShell scripts.
Contributions are welcome. If you have built something on top of the Copilot Package Management API and want to share it as a sample, fork the repo, open a pull request with your solution in a new folder under samples/.
Please include a README.md in your sample folder that covers what it does, prerequisites, and how to deploy it.
MIT — see LICENSE for details.
Note: These samples are community-maintained and are not covered by a Microsoft support SLA.