msexchange-mcp
Version:
MCP server for Microsoft Exchange/Outlook email operations via Microsoft Graph API
63 lines • 3.23 kB
TypeScript
import { z } from 'zod';
declare const inputSchema: z.ZodObject<{
query: z.ZodString;
accountId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
includeBody: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
orderBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["receivedDateTime", "subject", "from", "importance"]>>>;
orderDirection: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
}, "strip", z.ZodTypeAny, {
query: string;
limit: number;
accountId: string;
offset: number;
orderBy: "subject" | "from" | "receivedDateTime" | "importance";
orderDirection: "asc" | "desc";
includeBody: boolean;
}, {
query: string;
limit?: number | undefined;
accountId?: string | undefined;
offset?: number | undefined;
orderBy?: "subject" | "from" | "receivedDateTime" | "importance" | undefined;
orderDirection?: "asc" | "desc" | undefined;
includeBody?: boolean | undefined;
}>;
export declare const unifiedEmailSearchTool: {
name: string;
description: string;
parameters: z.ZodObject<{
query: z.ZodString;
accountId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
includeBody: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
orderBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["receivedDateTime", "subject", "from", "importance"]>>>;
orderDirection: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
}, "strip", z.ZodTypeAny, {
query: string;
limit: number;
accountId: string;
offset: number;
orderBy: "subject" | "from" | "receivedDateTime" | "importance";
orderDirection: "asc" | "desc";
includeBody: boolean;
}, {
query: string;
limit?: number | undefined;
accountId?: string | undefined;
offset?: number | undefined;
orderBy?: "subject" | "from" | "receivedDateTime" | "importance" | undefined;
orderDirection?: "asc" | "desc" | undefined;
includeBody?: boolean | undefined;
}>;
execute: ({ query, accountId, limit, offset, includeBody, orderBy, orderDirection }: z.infer<typeof inputSchema>) => Promise<"❌ Search too complex for Microsoft Graph API.\n\nThe Graph API cannot combine certain filters with search. Try one of these approaches:\n\n1. Use simpler search terms without special operators\n2. Search by sender only: \"from:florian\"\n3. Search by keywords only: \"insurance policy\"\n4. Remove date or attachment filters\n\nExample working searches:\n• \"emails from Florian\"\n• \"insurance\" (searches all email content)\n• \"from:florian.semrau@allianz.de\"" | "❌ Invalid search syntax.\n\nExamples of valid searches:\n• \"emails from John about project\"\n• \"from:john@example.com\"\n• \"subject:invoice\"\n• \"has:attachment\"\n\nAvoid special characters in search terms unless using quotes." | {
content: {
type: "text";
text: string;
}[];
}>;
};
export {};
//# sourceMappingURL=unifiedEmailSearch.d.ts.map