Trainzilla MCP
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TZ_API_URL | Yes | GraphQL API endpoint for tzilla backend | |
| MCP_HTTP_HOST | No | Host for HTTP transport (default 127.0.0.1) | |
| MCP_HTTP_PORT | No | Port for HTTP transport (default 8787) | |
| TZ_ACCESS_TOKEN | Yes | Access token for coach authentication | |
| TZ_REFRESH_TOKEN | Yes | Refresh token for obtaining new access tokens |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| whoamiA | Return the authenticated coach (user id, name, email, role) and trainer id. Use to verify the connection. |
| list_clientsA | List the coach's clients (id, name, email). Use the returned _id as clientId/userId for other tools. |
| get_client_profileA | Get a client's fitness profile + computed metrics (BMI, TDEE, recommended calories). Pass the client's user _id. |
| list_client_habitsA | List a client's active habits with today's log and streaks. Pass the client's user _id as clientId. |
| get_habit_complianceA | Habit compliance percentage (0-100) for a client over a date range (YYYY-MM-DD). |
| recent_habit_activityA | Recent habit completions across all of the coach's clients (newest first). |
| master_habitsA | List the coach's reusable Master Habit library. |
| calc_tdeeB | Compute BMR, TDEE, and recommended daily calories from client stats. |
| calc_macrosA | Compute a macro split (protein/carbs/fat in grams) for a strategy. STANDARD=40/30/30, PRO=g/kg multipliers, KETO=25/5/70. |
| calc_1rmA | Estimate a 1-rep max (Epley) and %1RM weight suggestions from a working set. |
| list_workout_plansA | List a client's workout plans (id, title, dates). Pass the client's user _id. |
| list_diet_plansA | List a client's diet plans (id, title, dates). Pass the client's user _id. |
| list_checkinsA | List check-ins for the coach (optionally filtered to one client by user _id). |
| list_sessionsA | List sessions — for one client (pass clientId) or all of the coach's clients. |
| list_subscriptionsA | List the coach's client subscriptions (id, subscriber = client id, status). Use a subscription _id when scheduling a session. |
| billing_summaryA | Summarise the coach's payments: total captured amount (minor units), currency, and counts by status. |
| create_habitC | Create a habit for a client (confirm-gated). daysOfWeek: 0=Sun..6=Sat (empty = every day). reminderTime: 'HH:mm'. |
| create_master_habitB | Create a reusable Master Habit in the coach's library (confirm-gated). |
| assign_master_habitA | Assign a Master Habit to one or more clients — creates a habit per client (confirm-gated). |
| create_checkinB | Schedule a check-in for a client with optional questions (confirm-gated). scheduledFor: ISO date. question.type: TEXT|NUMBER|SCALE|PHOTO. |
| schedule_sessionA | Book a session for a client (confirm-gated). Needs the client's subscriptionId (see list_subscriptions). Times are ISO strings. |
| create_workout_planA | Create a workout plan for a client (confirm-gated). exercises: array of { name, sets, reps, restSeconds?, section? }. section must be one of WARMUP | RESISTANCE | STRETCHING | CARDIO | COOL_DOWN (defaults to RESISTANCE so the app renders them under 'Main Workout'). days: optional [MONDAY..SUNDAY]. |
| create_diet_planB | Create a diet plan for a client (confirm-gated). meals: array of MealInput objects (e.g. { name, slot, calories, macros, days }). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| weekly_client_review | Prepare a weekly review for a client: pull profile, habits, compliance, recent activity, sessions and summarise wins, risks, and next actions. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Trainzilla/tzilla-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server