Skip to main content
Glama

Get the traveler's preferences (optional).

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
NameRequiredDescriptionDefault
settingsNo

Implementation Reference

  • 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]
        )
      )
    }
  • 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: {},
        }
      }
    },
  • Dispatch case in toolSwitch function that maps the tool call to the getTravelerInfo handler.
    case "get_traveler_info":
      return getTravelerInfo()

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

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