Skip to content
Download

Introduction

msgraph is an Agent Skill that gives AI agents up-to-date knowledge of the complete Microsoft Graph API and optionally executes API calls directly.

Terminal window
npx skills add merill/msgraph
Download Microsoft Graph Skill

Unzip and copy the msgraph folder into the .agents/skills/ folder of your project or agent platform.

your-project/
└── .agents/
└── skills/
└── msgraph/
└── SKILL.md

See the Installation page for other agent platforms and global install options.

Large language models are trained on data that is months — sometimes over a year — old. The Microsoft Graph API has 27,700 Graph APIs and is updated weekly. New APIs ship, existing endpoints change, and features get deprecated — but your agent’s training data doesn’t reflect any of it.

Without current API knowledge, agents:

  • Hallucinate endpoints that don’t exist or have been renamed
  • Use deprecated paths instead of the current ones
  • Miss required permissions or headers (like ConsistencyLevel: eventual)
  • Get the $filter syntax wrong for queries that actually work differently
  • Don’t know about new features shipped after their training cutoff

This skill solves that by bundling the complete Microsoft Graph API surface as local indexes — searchable instantly with zero network calls.

What’s includedCountWhat it contains
OpenAPI endpoints27,700+Path, method, summary, description, permission scopes
Endpoint docs6,200+Permissions (delegated/app), query parameters, required headers, default vs $select-only properties
Resource schemas4,200+All properties with types, supported $filter operators, default/select-only flags
Community samplesGrowingHand-verified queries mapping natural-language tasks to exact API calls

All indexes are bundled with the skill and run entirely locally — no API calls, no latency. Results come back in milliseconds.

  • Searches 27,700 Graph APIs — all locally, instantly
  • Provides curated community samples that map natural-language tasks to exact Microsoft Graph API queries
  • Works with Microsoft Graph MCP servers (like lokka.dev) — this skill provides the knowledge, your MCP server handles execution
  • Authenticates and executes Microsoft Graph API calls directly when no MCP server is available — delegated (interactive browser / device code) and app-only (client secret, certificate, managed identity, workload identity federation)
  • Enforces safety — read-only by default, writes require explicit opt-in, DELETE is always blocked

When an agent loads this skill, it gets instructions and a CLI to:

  1. Search for the right endpoint, permissions, and syntax using local indexes
  2. Construct correct Microsoft Graph API calls using up-to-date knowledge
  3. Execute via a Graph MCP server or directly through this skill’s built-in auth and API execution

Authentication only happens when the agent needs to execute API calls directly — not when using the skill purely for knowledge and search.

Once the skill is installed, you can ask your agent things like:

  • Show me my unread emails from today
  • Send an email to the marketing team about the Q3 review meeting
  • What meetings do I have tomorrow?
  • Find all emails from Sarah with attachments from the last week
  • List all the teams I’m a member of
  • Post a welcome message in the General channel of the Design team
  • Show me my recent chat messages
  • List the files in my OneDrive root folder
  • Find the latest documents in the Marketing SharePoint site
  • What lists are on our team site?
  • Show me my tasks that are due this week
  • Create a new plan called ‘Product Launch’ with buckets for Design, Dev, and QA
  • List all users whose display name starts with ‘John’
  • Show me all the conditional access policies that exclude the emergency access account
  • Create a new security group called ‘Sales Team’
  • Show me all managed devices that are non-compliant
  • List the device configuration policies assigned to the ‘Call Center’ group
  • Show me the latest security alerts
  • What is our current secure score?
  • Pull the sign-in logs from the last 24 hours
  • What permissions do I need to read user calendars?
  • What $filter operators does the user resource support?
  • Find the Microsoft Graph API endpoint for managing conditional access policies
  • What properties does the managedDevice resource have?