Skip to main content
Glama
openGym MCP Bridge

openGym MCP Bridge

by Nirvana-Z777

preview_plan_change

Validate proposed openGym plan edits in a dry run and return an exact change list plus a short-lived proposal ID for review before applying; no data is written.

Instructions

Dry-run ONLY. Validate proposed edits to the openGym plan and return an exact change list plus a short-lived proposal_id. This does not write anything. Edit existing routines with rename_routine, add/remove/replace/move_routine_exercise and set_exercise_target; also create_routine, assign_weekday and override_date. Sequential indices refer to earlier edits in this proposal. Before create_routine, use search_exercises to get valid exercise IDs. A new routine may include weekdays (0=Sunday through 6=Saturday) to assign it in the same proposal.

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": {
      "actions": "<actions>"
    },
    "name": "preview_plan_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.5.1
    • addedInput schema / properties / actions / items / properties / rest_off
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / actions / items / properties / rest_sec
      Added value: +{
      +  "maximum": 3600,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / actions / items / properties / seconds
      Added value: +{
      +  "maximum": 86400,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / actions / items / properties / side_rest_off
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / actions / items / properties / side_rest_sec
      Added value: +{
      +  "maximum": 3600,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / actions / items / properties / warmup_rest_off
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / actions / items / properties / warmup_rest_sec
      Added value: +{
      +  "maximum": 3600,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv0.4.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden and does it well: 'Dry-run ONLY' and 'This does not write anything' explicitly declare non-destructiveness, and 'short-lived proposal_id' discloses that the proposal expires. It also reveals the critical ordering behavior that 'Sequential indices refer to earlier edits in this proposal.' It omits what a validation failure looks like and any limits on proposal size or lifetime.

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?

Five sentences, each carrying distinct information, with the most important constraint ('Dry-run ONLY') front-loaded and the read-only guarantee immediately after. No filler or restatement of the tool name.

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?

This is a complex nine-action-type nested schema with no annotations and no output schema, so the description needs to do a lot, and it covers the dry-run guarantee, the return shape, index semantics, and the exercise-ID prerequisite. Remaining gaps are the maximum of 20 actions, error/validation behavior, and where the proposal_id is consumed.

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?

Top-level schema coverage is 0% and the nested schema leaves index/to_index/exercise_index undefined, but the description supplies the missing meaning: indices refer to earlier edits within the same proposal. It also explains the weekday encoding and how weekdays can be attached at creation time, and routes exercise_id sourcing to search_exercises. It does not disambiguate index vs to_index vs exercise_index individually.

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

Purpose4/5

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

States a specific verb and resource ('Validate proposed edits to the openGym plan') plus the exact outputs ('change list plus a short-lived proposal_id'), and leads with 'Dry-run ONLY' to fix the mode. It does not explicitly contrast itself with the other preview_* siblings (preview_workout_edit, preview_custom_exercise_change), so it stops short of full sibling differentiation.

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?

Enumerates the supported editing operations (rename_routine, add/remove/replace/move_routine_exercise, set_exercise_target, create_routine, assign_weekday, override_date), which effectively defines when this tool applies. It also gives a concrete prerequisite chain: 'Before create_routine, use search_exercises to get valid exercise IDs.' It doesn't say what to do with the resulting proposal_id or which tool applies the change, leaving the next step implicit.

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