Skip to main content
Glama

get_user_info

Retrieve user metadata from Fulcra Context, including time zone and calendar IDs, to personalize applications and services.

Instructions

Return general info about the Context by Fulcra user.

Returns user references such as time zone, calendar ids, and other metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_user_info' tool. It is registered via the @mcp.tool() decorator. Retrieves the FulcraAPI instance using get_fulcra_object() and calls fulcra.get_user_info() to get user information, returning it as a JSON string.
    @mcp.tool() async def get_user_info() -> str: """Return general info about the Context by Fulcra user. Returns user references such as time zone, calendar ids, and other metadata. """ fulcra = get_fulcra_object() user_info = fulcra.get_user_info() return "User information: " + json.dumps(user_info)
  • Helper function to obtain the FulcraAPI object, handling both stdio and authenticated modes. Used by the get_user_info handler and other tools.
    def get_fulcra_object() -> FulcraAPI: global stdio_fulcra if settings.fulcra_environment == "stdio": if stdio_fulcra is not None: return stdio_fulcra else: stdio_fulcra = FulcraAPI() stdio_fulcra.authorize() return stdio_fulcra mcp_access_token = get_access_token() if not mcp_access_token: raise HTTPException(401, "Not authenticated") fulcra_token = oauth_provider.token_mapping.get(mcp_access_token.token) if fulcra_token is None: raise HTTPException(401, "Not authenticated") fulcra = FulcraAPI() fulcra.set_cached_access_token(fulcra_token) return fulcra

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/fulcradynamics/fulcra-context-mcp'

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