get_traveler_info
Retrieve traveler details such as name, language, personality, and speaking habits to customize interactions in the Map Traveler MCP virtual journey environment.
Instructions
get 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 | No |
Implementation Reference
- src/McpService.ts:497-510 (handler)The handler function that retrieves the traveler's information ('aiEnv') from the database and returns it as a text content block, or a default message if not set.const getTravelerInfo = () => { return DbService.getEnv('aiEnv').pipe( Effect.andThen(a => [{ type: "text", text: `The traveller's information is as follows: ${a}` } as ToolContentResponse] ), Effect.orElseSucceed(() => [{ type: "text", text: `There is no traveler information.` } as ToolContentResponse] ) ) }
- src/McpService.ts:172-181 (registration)Tool definition and registration in the SETTING_COMMANDS array used by makeToolsDef for listing tools, includes name, title, description, and input schema.name: "get_traveler_info", title: "Get the traveler's preferences (optional).", description: "get a traveler's setting.For example, traveler's name, the language traveler speak, Personality and speaking habits, etc.", inputSchema: { type: "object", properties: { settings: {}, } } },
- src/McpService.ts:1018-1019 (registration)Dispatch case in toolSwitch function that maps the tool call to the getTravelerInfo handler.case "get_traveler_info": return getTravelerInfo()