Skip to main content
Glama

update_language

Change the display language for your Gmail interface by specifying a valid language tag to customize your email management experience.

Instructions

Updates language settings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
displayLanguageYesThe language to display Gmail in, formatted as an RFC 3066 Language Tag

Implementation Reference

  • src/index.ts:883-894 (registration)
    Registration of the 'update_language' tool using server.tool, including description, input schema, and handler function.
    server.tool("update_language", "Updates language settings", { displayLanguage: z.string().describe("The language to display Gmail in, formatted as an RFC 3066 Language Tag") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.updateLanguage({ userId: 'me', requestBody: params }) return formatResponse(data) }) } )
  • Input schema for the update_language tool, defining the displayLanguage parameter.
    "Updates language settings", { displayLanguage: z.string().describe("The language to display Gmail in, formatted as an RFC 3066 Language Tag") },
  • Handler function for update_language tool that calls Gmail API to update language settings using handleTool wrapper.
    async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.updateLanguage({ userId: 'me', requestBody: params }) return formatResponse(data) })

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/HitmanLy007/gmail-mcp'

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