Skip to main content
Glama

list_contacts

Retrieve and manage Outlook contacts by fetching a specified number of entries linked to an account ID using Microsoft MCP server integration.

Instructions

List contacts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
limitNo

Implementation Reference

  • The handler function for the 'list_contacts' tool, decorated with @mcp.tool for registration. It fetches a list of contacts from Microsoft Graph API for the specified account_id, with optional limit.
    @mcp.tool def list_contacts(account_id: str, limit: int = 50) -> list[dict[str, Any]]: """List contacts""" params = {"$top": min(limit, 100)} contacts = list( graph.request_paginated("/me/contacts", account_id, params=params, limit=limit) ) return contacts

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