set_traveler_info
Configure traveler details such as name, language, personality, and speaking habits to personalize the virtual travel experience in the Map Traveler MCP environment.
Instructions
set a traveler's setting.For example, traveler's name, the language traveler speak, Personality and speaking habits, etc.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| settings | Yes | traveler's setting. traveler's name, the language traveler speak, etc. |
Implementation Reference
- src/McpService.ts:512-520 (handler)The handler function that executes the set_traveler_info tool: saves the provided info to the database under 'aiEnv' key and returns a confirmation message.const setTravelerInfo = (info: string) => { return DbService.saveEnv('aiEnv', info).pipe( Effect.andThen(a => [{ type: "text", text: `The traveller information is as follows: ${a.value}` } as ToolContentResponse] ) ) }
- src/McpService.ts:182-196 (schema)The tool definition including name, description, and input schema requiring a 'settings' string parameter.{ name: "set_traveler_info", // 環境情報はリソースに反映する できれば更新イベントを出す title: "Set the traveler's preferences (optional).", description: "set a traveler's setting.For example, traveler's name, the language traveler speak, Personality and speaking habits, etc.", inputSchema: { type: "object", properties: { settings: { type: "string", description: "traveler's setting. traveler's name, the language traveler speak, etc." }, }, required: ["settings"] } },
- src/McpService.ts:1020-1021 (registration)Dispatches calls to the set_traveler_info tool by invoking the setTravelerInfo handler with the 'settings' argument.case "set_traveler_info": return setTravelerInfo(String(request.params.arguments?.settings))