list_activities
Discover available activity types for tracking behavioral sessions like meditation, focus, and exercise with the jikan server.
Instructions
List available activity types (FREE, PUBLIC, and your PRIVATE). Free (0 credits).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:123-128 (handler)The list_activities tool handler function decorated with @mcp.tool(). Makes a GET request to /activities endpoint to retrieve available activity types (FREE, PUBLIC, and PRIVATE). Returns the response as dict.
@mcp.tool() def list_activities() -> dict: """List available activity types (FREE, PUBLIC, and your PRIVATE). Free (0 credits).""" with _client() as client: response = client.get("/activities") return response.json() - server.py:123-123 (registration)Registration of list_activities as an MCP tool using the @mcp.tool() decorator.
@mcp.tool() - server.py:41-41 (helper)Documentation reference to list_activities in start_session's docstring, guiding users to call list_activities to see all available activity type options.
Use list_activities to see all options.