{"openapi":"3.0.0","info":{"description":"The MCP (Model Context Protocol) server endpoint for Gmail: a stateless Streamable-HTTP JSON-RPC surface at POST /mcp/v1 exposing Gmail tools to AI agents — search threads, read messages and threads, manage drafts, labels, trash and spam. OAuth 2.0 with the Gmail scopes; initialize and tools/list are public.","version":[{"name":"v1","value":"v1"}]},"servers":[{"description":"The MCP (Model Context Protocol) server endpoint for Gmail: a stateless Streamable-HTTP JSON-RPC surface at POST /mcp/v1 exposing Gmail tools to AI agents — search threads, read messages and threads, manage drafts, labels, trash and spam. OAuth 2.0 with the Gmail scopes; initialize and tools/list are public.","url":"https://api.apirails.com/googlegmailmcp"}],"paths":{"/mcp/v1":{"post":{"tags":["Messages"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.google.com/workspace/gmail/api/reference/mcp","api_endpoint":"https://gmailmcp.googleapis.com/mcp/v1"},"summary":"List MCP tools (tools/list)","description":"List the MCP tools exposed by the Gmail MCP server (public, no authentication required; returns tool names, descriptions and JSON Schema input types).","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"jsonrpc":{"type":"string","description":"JSON-RPC protocol version (fixed).","required":true},"id":{"type":"number","description":"Request ID - any integer; echoed back in the response.","required":true},"method":{"type":"string","description":"JSON-RPC method name (fixed for this endpoint).","required":true},"params":{"type":"object","description":"tools/list takes no parameters (omit or send {}).","properties":{}}}},"example":{"jsonrpc":["2.0"],"id":[1],"method":["tools/list"],"params":{}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}