Skip to main content
Glama
Trainzilla

Trainzilla MCP

Official
by Trainzilla

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TZ_API_URLYesGraphQL API endpoint for tzilla backend
MCP_HTTP_HOSTNoHost for HTTP transport (default 127.0.0.1)
MCP_HTTP_PORTNoPort for HTTP transport (default 8787)
TZ_ACCESS_TOKENYesAccess token for coach authentication
TZ_REFRESH_TOKENYesRefresh token for obtaining new access tokens

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription
weekly_client_reviewPrepare 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

NameDescription

No resources

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/Trainzilla/tzilla-mcp'

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