Skip to main content
Glama
nitinchakravarthy

Workout Tracker MCP Server

save_workout_plan_to_dynamodb

Save a workout plan JSON to DynamoDB, creating all related plan, week, session, and exercise records for the specified user.

Instructions

Save a workout plan to DynamoDB

Takes the JSON output from workout_plan_prompt and saves it to DynamoDB
following the schema defined in DYNAMODB_DATA_MODEL.md.

This creates all necessary entities:
- WorkoutPlan (plan metadata)
- WeekTemplate (one per week)
- WorkoutSession (one per workout day)
- PlannedExercise (one per exercise)

Args:
    workout_plan_json: JSON string of workout plan (output from workout_plan_prompt)
    user_id: User ID who owns this plan
    plan_id: Optional plan ID (auto-generated UUID if not provided)
    table_name: DynamoDB table name (default: WorkoutPlans)
    region: AWS region (default: us-west-2)

Returns:
    Dictionary with success status and statistics about created entities

Example:
    result = save_workout_plan_to_dynamodb(
        workout_plan_json='{"plan_metadata": {...}, "weeks": [...]}',
        user_id="user_123"
    )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionNous-west-2
plan_idNo
user_idYes
table_nameNoWorkoutPlans
workout_plan_jsonYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description carries the behavioral burden. It clearly discloses that the tool creates four kinds of entities and returns a status/statistics dictionary. It stops short of describing overwrite/upsert behavior for an existing plan_id or permission requirements, but the primary side effects are well documented.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, then uses compact bullets for created entities, an Args list mirroring parameter order, a Returns line, and a concrete example. No filler sentences; each section adds callable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter, side-effect-heavy tool with no output schema or annotations, the description covers source, target, entity creation, defaults, return shape, and an example. It could add more detail about returned dictionary keys or behavior when an existing plan_id is supplied, but the essential calling context is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% because the schema only has titles, so the description fully compensates. It explains each parameter with semantics: workout_plan_json is plan output, user_id is the owner, plan_id is optional and auto-generates a UUID, and table_name and region have defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (save), resource (workout plan to DynamoDB), and precise input source (JSON output from workout_plan_prompt). The list of created entities makes its scope unambiguous and distinguishes it from siblings like log_workout_session_to_dynamodb.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to use it with the JSON output from workout_plan_prompt, giving an agent a clear condition for when this tool is appropriate. It does not explicitly mention alternatives or exclusions, but saving a full multi-entity plan is clearly different from logging a single session or retrieving a plan.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/nitinchakravarthy/workout_tracker_mcp'

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