Skip to main content
Glama

get_contact

Retrieve contact details from Microsoft Outlook by providing a contact ID and account ID using the Microsoft MCP server for efficient management.

Instructions

Get contact details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
contact_idYes

Implementation Reference

  • The handler function decorated with @mcp.tool that implements the logic to retrieve a specific contact by ID using the Microsoft Graph API.
    @mcp.tool def get_contact(contact_id: str, account_id: str) -> dict[str, Any]: """Get contact details""" result = graph.request("GET", f"/me/contacts/{contact_id}", account_id) if not result: raise ValueError(f"Contact with ID {contact_id} not found") return result
  • Entry point that runs the FastMCP server instance, thereby registering and serving all tools defined in tools.py including get_contact.
    mcp.run()
  • Creates the FastMCP instance to which all tools, including get_contact, are registered via decorators.
    mcp = FastMCP("microsoft-mcp")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elyxlz/microsoft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server