Skip to main content
Glama

get_setting

Retrieve the current configuration for the virtual travel environment on Google Maps, enabling users to manage avatar journeys and photo reports effectively.

Instructions

Get current setting

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_setting' tool. It fetches the system version and environment settings from the database, formats them into a textual summary, and returns it as a tool content response.
    const getSetting = () => { return Effect.gen(function* () { const version = yield* DbService.getVersion() const runnerEnv = yield *DbService.getSysEnv() const envText = 'A json of current environment settings\n' + Object.entries(runnerEnv.mode).map(([key, value]) => { return `${key}= ${JSON.stringify(value)}` }).join('\n') + '\nList of Image settings\n' + (runnerEnv.bodyAreaRatio ? `bodyAreaRatio=${runnerEnv.bodyAreaRatio}\n` : '') + (runnerEnv.bodyHWRatio ? `bodyHWRatio=${runnerEnv.bodyHWRatio}\n` : '') + (runnerEnv.bodyWindowRatioW ? `bodyWindowRatioW=${runnerEnv.bodyWindowRatioW}\n` : '') + (runnerEnv.bodyWindowRatioH ? `bodyWindowRatioH=${runnerEnv.bodyWindowRatioH}\n` : '') + (runnerEnv.noImageOut ? `noImage=true\n` : '') + (runnerEnv.isEnableFeedTag ? `feedTag=${runnerEnv.extfeedTag}\n` : '') + `version=${version}\n` return [{ type: "text", text: envText } as ToolContentResponse] }) }
  • Registration of the 'get_setting' tool in the SETTING_COMMANDS array, including name, title, description, and input schema (empty object). This is part of the tools list provided to the MCP server.
    { name: "get_setting", // pythonがあったらよいとか、db設定がよいとか、tipsを取得する。tipsの取得を行うのはproject側スクリプトとか、script batchとか title: "Get the current setting", description: "Get current setting", inputSchema: { type: "object", properties: {} } },
  • Dispatch case in the toolSwitch function that routes calls to the 'get_setting' tool to the getSetting handler.
    case "get_setting": return getSetting()
  • Export of the getSetting function as part of the McpService class methods.
    getSetting,

Other Tools

Related Tools

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/mfukushim/map-traveler-mcp'

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