HR Assistant
In use at MDSHow 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
- A person asks in Teams, signed in with Microsoft Entra ID. The agent’s AI model reads the question.
- 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.
- 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
Tools
Six tools on our MCP server. Every one of them only reads.
| Tool | Ask it | Inputs | What it returns | Limits |
|---|---|---|---|---|
pto_balance | “How many PTO days does [name] have left?” | A name, a year | Approved, pending, used and left days, with the entries | Contractors have no PTO |
pto_report | “Who has used the least PTO this year?” | A year | Used and left days for every W2 employee, and calendar names that match nobody | W2 staff only |
whos_out | “Who’s out next week?” | Two dates | Names, dates and status, plus company holidays | Never notes, comments or the type of leave |
cv_status | “When did [name] last update their resume?” | A name | The file, when it last changed, and whether it’s out of date | Goes by the file’s last change |
cv_report | “Whose resumes need a follow-up?” | Nothing | Out-of-date resumes, oldest first, people with none, and files that match nobody | Lists them. HR sends any reminder |
find_candidates | “Who could lead an Azure migration?” | Skills, W2 only or not | Up to 10 people: skills found and missing, one matching line each, W2 or contractor, resume date | Matches 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.
| Item | Microsoft Graph call | Permission | What it takes | What it never takes |
|---|---|---|---|---|
| Sign-in | POST login.microsoftonline.com/{tenant}/oauth2/v2.0/token | None: the HR app’s own credentials | A token for the HR app, valid about an hour | Anyone’s own sign-in |
| PTO calendar | GET /sites/{site}/lists/{list}/items?expand=fields(select=Title,StartDate,EndDate,NumberofDays,Status,CompanyHoliday) | Lists., read on this one list | Employee, start and end dates, number of days, status, company holiday | Notes, comments, leave type, supervisor and approver. The call doesn’t ask for them. |
| Staff lists | GET /drives/{drive}/items/{file}/content | Files., read on these 2 files | Name, email, and W2 or contractor | Every other column. The file comes down whole, and the server drops the rest in memory. |
| Resume folders | GET /drives/{drive}/items/{folder}/childrenGET /drives/{drive}/items/{file}/content | Files., read on these 2 folders | File names, last-changed dates, and each resume’s text for candidate search | A whole resume in an answer: only the matching lines go to the agent. |
- No other Microsoft Graph permission: no mail, no Outlook calendars, no user directory, no Teams, and no write call of any kind.
- The HR handbook isn’t read by our server. Copilot Studio reads it with each person’s own sign-in.
Limits
- It reads only the five items it was granted, and can’t write to any of them.
- It never sends a reminder. It drafts the text, and HR sends it.
- Names must match the staff lists. A name that matches nobody, or several people, is reported, never guessed.
- A resume’s date is its file’s last change, so renaming or moving a file changes it.
- Candidate search matches words in the resume text. The agent adds synonyms, and HR makes the final call.
Want one for your team?
Tell us how your team works today, and we’ll show you what this assistant could do.