Skip to main content
Glama

Send a program to MassBuilder

send_program
Read-onlyIdempotent

Check a training program against MassBuilder's rules and get a link that opens it in the app on the person's iPhone, where they look it over, change anything and save it. The workouts run in turn, and the app adds weight when every set is done in full. If something breaks a rule, the answer lists what to fix: fix it and call this again. Nothing is stored: the program is in the link itself. Give the person the link as it is.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "days": "<days>"
    },
    "name": "send_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesThe workouts, in the order they run.
nameYesThe program's name.
unitNoThe unit of startWeight. Leave out for kg.
notesNoUp to five short lines for the person: what you assumed or chose.
weeksNoHow many weeks the program runs before the app suggests a new one. Leave out for 12.
sourceNoYour name as the person knows you, like Claude, ChatGPT or Grok. The app shows it.
languageNoThe language you and the person write in, like en or sv, for the page the link opens.
daysPerWeekNoTraining days a week. The workouts run in turn, so two workouts can be three days a week.
progressionNoOne or two sentences on how the weights go up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint=false), the description adds substantial behavior: nothing is stored, the entire program lives in the link, failures return a list of rule violations, and the workouts run in rotation with automatic weight increases when all sets are completed. It also warns not to alter the returned link, which is a real behavioral constraint.

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

Conciseness4/5

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

The core action is front-loaded in the first clause and every sentence carries information about validation, the app flow, or the no-storage contract. Some sentences are long and clause-heavy (the review-and-save sentence), which costs a little readability but not substance.

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 nine-parameter tool with nested day/exercise objects and no output schema, the description covers the return value (a link, or a list of rule violations), the no-persistence contract, and the follow-up action. It does not address link lifetime or any limits on repeated calls, which would round it out.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description goes beyond it by explaining the semantics of the progression-related fields: workouts run in turn (daysPerWeek vs. number of days), and weight increases only when every set hits the top of the range (increment, repsMax).

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?

The description opens with a specific compound verb-plus-resource: validate a training program against MassBuilder's rules and return a link that opens it in the app. It is clearly distinguishable from find_exercises, which is referenced only as the source of exerciseID values.

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?

It gives clear usage context: the person reviews and edits the program in the iPhone app, and on a rule violation you fix the problem and call the tool again. It stops short of stating explicit when-not-to-use conditions or naming an alternative path, but the retry loop is spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources