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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- fulcra_mcp/main.py:535-543 (handler)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)
- fulcra_mcp/main.py:278-298 (helper)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