> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Microsoft Work IQ

**Authentication:** OAuth. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow, or [Application credentials](/merge-agent-handler/admin-setup/add-oauth-credentials) to bring your own OAuth app.

## Sample use cases

* Ask Copilot what was decided in yesterday's planning meeting.
* Summarize the email thread with Acme about their renewal.
* List the Copilot agents available in the tenant.

## Available Tools

#### ask_scoped

Ask Microsoft 365 Copilot a question grounded only in the chosen sources (capabilities such as Email, Meetings or People), through the Work IQ MCP ask tool, and return the answer and conversation_id.

#### create_conversation

Start a new Microsoft 365 Copilot conversation over the Work IQ REST API and return its id; pass it to send_conversation_message as conversation_id.

#### get_agent

Read a Work IQ agent's A2A card: name, description, version, provider, capabilities (e.g. streaming), skills, default input/output modes, supported interfaces, icon and documentation links, security…

#### get_task

Get an A2A task that send_message created, by task_id: its id, context_id, status (state such as TASK_STATE_COMPLETED or TASK_STATE_FAILED) and artifacts (the answer is in the Answer artifact).

#### list_agents

List the agents the user can ask: agent_id, name and provider, the default Microsoft 365 Copilot agent included (bizchat-as-gpt-scenario, which send_message and get_task treat like a null agent_id).

#### send_conversation_message

Ask Microsoft 365 Copilot a question in a REST conversation and return its answer plus the conversation (id, state, turn_count, messages with attributions).

#### send_message

Ask Microsoft 365 Copilot, or the agent_id from list_agents, a question grounded in the user's work data over A2A and return its answer and task.