get_language
Retrieve the current language settings of your Gmail account.
Instructions
Gets language settings
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:853-862 (registration)Registration of the 'get_language' tool via server.tool(), which defines the tool name, description, schema (no params), and the handler function.
server.tool("get_language", "Gets language settings", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getLanguage({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:856-862 (handler)The handler (async callback) that executes the tool logic: calls gmail.users.settings.getLanguage({ userId: 'me' }) and formats the response.
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.getLanguage({ userId: 'me' }) return formatResponse(data) }) } ) - src/index.ts:853-855 (schema)The input schema for get_language: an empty object (no parameters) as defined by the third argument to server.tool().
server.tool("get_language", "Gets language settings", {},