Skip to main content
Glama

Create custom exercise

create_exercise
Idempotent

Create a custom exercise for the user. Only use when list_exercises has no reasonable match. Returns the existing one if the user already has an exercise with this exact name. Set laterality='unilateral' for one-side-at-a-time movements and load_type for how weight is logged. Edit later with update_exercise. It stays private to the user until a Heza admin reviews it; only admins can set a video link.

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>"
    },
    "name": "create_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
categoryNo
equipmentNo
load_typeNoDefault: per_hand for dumbbell pairs, bodyweight for body only, else total
video_urlNoDemo video link (e.g. YouTube). Admins only; ignored for others.
lateralityNounilateral = done one side at a time (split squat, single-leg calf raise, side plank, one-arm row)
instructionsNoShort step-by-step cues
primary_musclesNo
secondary_musclesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare idempotentHint=true, but the description earns credit by spelling out the actual dedupe semantics: an exact-name match returns the existing exercise rather than creating a duplicate. It also discloses two behaviors not in any structured field: the record stays private until an admin reviews it, and video_url is silently ignored for non-admins. Missing only return shape and what happens on near-duplicate names.

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?

Six short sentences, each front-loading the actionable constraint (fallback condition, dedupe, laterality, privacy note). Slight waste in echoing laterality/load_type guidance already present in the schema property descriptions, but nothing is padded.

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 9-parameter mutation without an output schema, the description covers the essentials an agent needs: when to create versus edit, duplicate handling, visibility/review lifecycle, and admin-only fields. It omits category/equipment selection guidance and any pagination/return detail, but those are secondary for a create call.

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

Parameters3/5

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

Schema coverage is 44%, so the description is expected to compensate but only partly does: it restates the laterality='unilateral' meaning and the purpose of load_type, both of which the schema already describes. Several parameters undocumented in the schema (category, equipment, instructions, muscle lists) get no added guidance, though their names are largely self-explanatory.

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 and resource ('Create a custom exercise for the user') and immediately scopes it against siblings by naming list_exercises as the fallback path and update_exercise as the edit path. An agent can distinguish it from update_exercise and list_exercises without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition ('Only use when list_exercises has no reasonable match') and names the follow-up alternative ('Edit later with update_exercise'). Both the when and the when-not are stated, leaving little to inference.

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