HR Assistant

In use at MDS

How it works

Handbook questions go to Copilot Studio’s knowledge. Questions about PTO, resumes and candidates go to six read-only tools on our MCP server, which reads Microsoft 365 through Microsoft Graph.

At a glance

Where people ask
Microsoft Teams, signed in with Microsoft Entra ID
Handbook questions
Copilot Studio knowledge: the HR handbook folder, with each person’s own access
PTO, resumes and candidates
Six read-only tools on our MCP server
What the tools read
One SharePoint list, two Excel files and two resume folders, through Microsoft Graph
AI model
Claude, in Copilot Studio
What it sends or changes
Nothing. It drafts reminders, and HR sends them

How it answers a question

  1. A person asks in Teams, signed in with Microsoft Entra ID. The agent’s AI model reads the question.
  2. The model picks a tool by its name and description, and calls it on our MCP server. MCP (Model Context Protocol) is an open standard that lets an AI model call tools on a server.
  3. The tool reads Microsoft 365 as the HR app, through Microsoft Graph, and applies the HR rules in code: the yearly PTO allowance, and when a resume is out of date.

The AI model never decides a fact or a number. Those come from code that has unit tests. The model only picks the tool and words the answer.

Architecture

Copilot StudioMicrosoft runs it · MDS sets it upOur MCP serverAzure App Service · MDS runs itMicrosoft cloudMicrosoft runs itasks in Teamstool callsearchesHTTPS + API keycalls the toolreadfactsas the HR appGraph v1.0readreadreadUserHR teamMicrosoft Entra IDusers sign in firstMicrosoft Teamswhere people askHR agent · ClaudeMicrosoft-provided modelpicks knowledge or a toolKnowledgeHR handbooksynced, your accessMCP toolsends an API keyTool resultdays, dates, names, matching resume linesAnswerpolicy text with its source,numbers only from the toolsRead-only by designno tool sends or changes anythingreminders are drafts for HR to send/mcp endpointchecks the API keySix toolspto_balance · pto_report · whos_outcv_status · cv_report · find_candidatesGraph readersigns in as the HR appand reads each item, read-onlyPTO calendarSharePoint list, 6 columnsGET …/lists/{id}/itemsStaff listsW2 and all staff, ExcelGET …/items/{id}/contentResume foldersW2 and contractorsGET …/children, …/contentHR appapp registration in Entra IDour server signs in as itread on these 3 only, GET onlyHR handbooka OneDrive folderread by Copilot Studio only123456
The user signs in and asks in Teams (1, 2). The agent searches the HR handbook for policy questions, or calls a tool (3). Our server signs in as the HR app, which may only read the items it was granted, through Microsoft Graph (4). It returns the facts (5) for the answer (6).

Tools

Six tools on our MCP server. Every one of them only reads.

ToolAsk itInputsWhat it returnsLimits
pto_balance“How many PTO days does [name] have left?”A name, a yearApproved, pending, used and left days, with the entriesContractors have no PTO
pto_report“Who has used the least PTO this year?”A yearUsed and left days for every W2 employee, and calendar names that match nobodyW2 staff only
whos_out“Who’s out next week?”Two datesNames, dates and status, plus company holidaysNever notes, comments or the type of leave
cv_status“When did [name] last update their resume?”A nameThe file, when it last changed, and whether it’s out of dateGoes by the file’s last change
cv_report“Whose resumes need a follow-up?”NothingOut-of-date resumes, oldest first, people with none, and files that match nobodyLists them. HR sends any reminder
find_candidates“Who could lead an Azure migration?”Skills, W2 only or notUp to 10 people: skills found and missing, one matching line each, W2 or contractor, resume dateMatches words. The agent adds synonyms

What it reads

Microsoft Graph v1.0 (https://graph.microsoft.com/v1.0). Every call is a GET, made as the HR app, and the HR app can read only the items below.

ItemMicrosoft Graph callPermissionWhat it takesWhat it never takes
Sign-inPOST login.microsoftonline.com/{tenant}/oauth2/v2.0/tokenNone: the HR app’s own credentialsA token for the HR app, valid about an hourAnyone’s own sign-in
PTO calendarGET /sites/{site}/lists/{list}/items?expand=fields(select=Title,StartDate,EndDate,NumberofDays,Status,CompanyHoliday)Lists.SelectedOperations.Selected, read on this one listEmployee, start and end dates, number of days, status, company holidayNotes, comments, leave type, supervisor and approver. The call doesn’t ask for them.
Staff listsGET /drives/{drive}/items/{file}/contentFiles.SelectedOperations.Selected, read on these 2 filesName, email, and W2 or contractorEvery other column. The file comes down whole, and the server drops the rest in memory.
Resume foldersGET /drives/{drive}/items/{folder}/children
GET /drives/{drive}/items/{file}/content
Files.SelectedOperations.Selected, read on these 2 foldersFile names, last-changed dates, and each resume’s text for candidate searchA whole resume in an answer: only the matching lines go to the agent.

Limits

Want one for your team?

Tell us how your team works today, and we’ll show you what this assistant could do.