Skip to main content

matimo-microsoft

Microsoft Graph tools for Matimo - search, OneDrive/SharePoint files, Outlook mail, Microsoft Teams, calendar, and SharePoint publishing.

PyPI Docs


Installation

pip install matimo matimo-microsoft

Available Tools (9 Total)

Tool Description Approval Graph endpoint
ms_search_knowledge Search SharePoint sites, OneDrive/SharePoint files, and list items - POST /search/query
ms_read_file Read a OneDrive/SharePoint file's contents (plain-text formats only) - GET /drives/{id}/items/{id}/content
ms_list_files List the children of a OneDrive/SharePoint folder - GET /drives/{id}/items/{id}/children
ms_get_email List messages in the signed-in user's mailbox - GET /me/messages
ms_send_email Send an email as the signed-in user required POST /me/messages + /send
ms_send_teams_message Post (or reply to) a message in a Teams channel - POST /teams/{id}/channels/{id}/messages
ms_create_document Upload a small file to OneDrive/SharePoint (≤4 MB) - PUT /drives/{id}/items/{id}:/{name}:/content
ms_create_calendar_event Create a calendar event, optionally as a Teams meeting - POST /me/events
ms_publish_to_sharepoint Create and publish a SharePoint site page required POST /sites/{id}/pages + /publish

Quick Start

from matimo import Matimo

matimo = await Matimo.init(auto_discover=True)

# Search across SharePoint and OneDrive
search = await matimo.execute("ms_search_knowledge", {"query": "Q3 budget filetype:xlsx", "top": 5})

# List messages in the signed-in user's mailbox
inbox = await matimo.execute("ms_get_email", {"top": 5, "filter": "isRead eq false"})

# Send an email (requires_approval: true - routed through HITL)
await matimo.execute(
    "ms_send_email",
    {"to": ["alice@contoso.com"], "subject": "Weekly status update", "body": "Here is the summary..."},
)

Authentication

Microsoft Graph tools use delegated OAuth2 access tokens. Matimo never performs the OAuth code exchange itself - connect Microsoft through your Matimo deployment (Nova), then provide the resulting token at execution time:

export MICROSOFT_GRAPH_ACCESS_TOKEN="eyJ0eXAiOiJKV1Qi..."

or pass it through per-call credentials:

await matimo.execute(
    "ms_get_email",
    {"top": 5},
    credentials={"MICROSOFT_GRAPH_ACCESS_TOKEN": token},
)

Risk & Approval

ms_send_email and ms_publish_to_sharepoint are marked requires_approval: true - Matimo routes them through the human-in-the-loop approval flow before they execute, since they send mail and publish content visible to others on the user's behalf. The other 7 tools have no requires_approval flag and execute immediately.

None of the 9 tools declare an explicit risk: field in their YAML. If you enable HITL quarantine (enableHITL=True with a quarantineRiskLevels policy config), be aware that every tool in this package uses execution.type: function, and Matimo's automatic risk classifier assigns type: function tools risk: critical by default regardless of what they actually do - so all 9 tools, including the read-only ones, will classify as critical if critical is in your quarantineRiskLevels.


Documentation


Metadata

Release files for matimo-microsoft 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matimo-microsoft 0.4.0
File Size Uploaded Provenance Actions
matimo_microsoft-0.4.0.tar.gz 30.1 kB Without provenance Details for matimo_microsoft-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matimo-microsoft 0.4.0
File Interpreter ABI Platform Actions
matimo_microsoft-0.4.0-py3-none-any.whl Python 3 none any Details for matimo_microsoft-0.4.0-py3-none-any.whl

Total release size: 66.0 kB

Release files / matimo_microsoft-0.4.0.tar.gz

Download URL matimo_microsoft-0.4.0.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
04ec7bb2d8daaac606545e08c5312a78e99826ad1144448aad22e03466218c0e
BLAKE2b-256 checksum
How to use checksums
ae686c80c4bd9ee0bc3181a9c350a8336073b8f844b8676291910d95b14d5db0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / matimo_microsoft-0.4.0-py3-none-any.whl

Download URL matimo_microsoft-0.4.0-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96fc4f11699ef89b0b979984f32cba6e26486e3760fb5a1ccb3abe102b86d579
BLAKE2b-256 checksum
How to use checksums
52829ba07ef0038c8cdee03565b57e3a45532ec1462259b4d5dcb843caf38772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for matimo-microsoft 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page