Skip to main content
Glama

get_routines

Read-onlyIdempotent

Use this when the user asks about their saved routines ("show me my Push routine") or before changing one. Returns routines in any plan or none, each with its exercises (default_sets, notes) and in_plans (plans using it, with day_of_week). Filter by routine_id or a name search, or omit both for all. Each routine carries updated_at: pass it as base_updated_at to edit_routine, which refuses the edit if the routine changed in the Reps app after you read it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
searchNo
routine_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
routinesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotent, non-destructive), yet the description adds real behavioral value: return shape, the in_plans cross-reference, and the optimistic-concurrency contract where updated_at must be passed as base_updated_at or the edit is refused. That last point is non-obvious and operationally important.

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?

Three densely packed sentences, front-loaded with the usage trigger followed by return contents and the edit_routine handoff. No filler; each sentence carries distinct 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?

An output schema exists, so return values needn't be explained, and the description goes beyond that with filtering rules and the concurrency contract. The only gap is the undocumented `limit` parameter, which an agent may need to understand for large result sets.

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?

With 0% schema description coverage the description must carry the load, and it explains routine_id filtering, name search, and the omit-both-for-all default. However, the `limit` parameter is never mentioned in the description or schema, leaving one of three parameters undocumented.

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+resource ('Returns routines') with explicit scope ('in any plan or none') and details the returned content (exercises, default_sets, notes, in_plans with day_of_week). This clearly distinguishes it from edit_routine and save_routine among the siblings.

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?

Gives a concrete trigger ('when the user asks about their saved routines') and a workflow role ('before changing one'), and routes the mutation to edit_routine via base_updated_at. It lacks explicit when-not guidance versus siblings like get_training_plan or get_exercise_library, so it falls just short of a 5.

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