Get the traveler's preferences (optional).
get_traveler_infoRetrieve 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.
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_traveler_info"
}
}Input 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()