Skip to content

API Reference parrot.tools.workiq_tool

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.workiq_tool

View source

Work IQ MCP credential adapter tool for the A2A per-user credential bridge.

OQ#5 resolved (2026-06-27 — FEAT-263 / TASK-1649): Work IQ (github.com/microsoft/work-iq) is an MCP server, not a native toolkit. Auth: Entra On-Behalf-Of (OBO), scope api://workiq.svc.cloud.microsoft/WorkIQAgent.Ask. Admin consent required. App-only access is NOT supported.

This module contains :class:WorkIQTool, which acts as a credential adapter:

  • Declares credential_provider = "workiq" so the A2A bridge routes through :class:~parrot.auth.oauth2.workiq_provider.WorkIQOBOCredentialResolver.
  • After the bridge resolves the per-user OBO token, the tool proxies the query to the Work IQ MCP server.

Work IQ enforces M365 permissions, sensitivity labels, and compliance policies automatically — no additional filtering is required on this adapter side.

Usage::

from parrot.tools.workiq_tool import WorkIQTool
from parrot.auth.oauth2.workiq_provider import WorkIQOAuth2Provider

tool = WorkIQTool()
provider = WorkIQOAuth2Provider(
    o365_interface=o365,
    o365_oauth_manager=o365_manager,
    vault_token_sync=vault,
)
a2a_server.wire_workiq_resolver(provider.credential_resolver())
# agent.tools = [tool]

Alias AbstractTool

Re-exported from parrot.tools.abstract.AbstractTool.

Alias AbstractToolArgsSchema

Re-exported from parrot.tools.abstract.AbstractToolArgsSchema.

Class WorkIQTool

Work IQ MCP credential adapter — queries the Work IQ MCP server via OBO auth.

Work IQ (github.com/microsoft/work-iq) is a Microsoft enterprise assistant delivered as an MCP server. It answers natural-language queries about enterprise M365 data (Teams, SharePoint, email, calendar) while applying the user's M365 permissions, sensitivity labels, and compliance policies automatically.

This tool is a credential adapter: it declares the OBO credential requirement (credential_provider = "workiq") so the A2A bridge (FEAT-263 / TASK-1644) resolves the delegated Entra OBO token via :class:~parrot.auth.oauth2.workiq_provider.WorkIQOBOCredentialResolver before invocation. After credential resolution, the tool proxies the query to the Work IQ MCP server endpoint.

Parameter Type Default Description
mcp_server_url str 'https://workiq.svc.cloud.microsoft/mcp' URL of the Work IQ MCP server endpoint. Override at deployment time if the tenant uses a custom endpoint.
**kwargs Any {} Forwarded to :class:~parrot.tools.abstract.AbstractTool.

Attributes:

Attribute Type Description
name "workiq_ask" — stable identifier used in A2A "tool" payloads.
credential_provider str "workiq" — signals OBO-gated resolver.
args_schema :class:_WorkIQArgs Pydantic v2 model.
mcp_server_url Work IQ MCP server endpoint (configurable per deployment; default: "https://workiq.svc.cloud.microsoft/mcp").

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally