Skip to main content
Glama

Get library item

tp_get_library_item
Read-onlyIdempotent

Retrieve the complete workout template and interval structure from your TrainingPeaks library, enabling scheduling or reuse of existing training sessions.

Instructions

Get one workout template in full, including its interval structure - use before tp_schedule_library_workout or when reusing structure. IDs from tp_get_library_items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
athleteNoTarget athlete name or ID (coach accounts only). Omit to use your own profile.
item_idYes
library_idYes
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior. The description adds context about the interval structure being included and the intended reuse scenario, which goes beyond the structured hints. However, it does not detail return format or edge cases, so a 4 is appropriate.

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 a single, focused sentence with no filler. It front-loads the main purpose and immediately provides usage context and ID sourcing in a compact way.

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?

The tool is simple, has strong annotations, and the description covers the core purpose, return expectation (full template with intervals), and usage context. There is no output schema, but the description's detail about interval structure helps set expectations. A small gap is not specifying possible response variations, but overall it is sufficiently complete for an AI agent.

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 only 33% (only athlete described). The description compensates by indicating that IDs come from tp_get_library_items, which effectively explains the library_id and item_id parameters. It does not describe each parameter individually, but the provided sourcing hint adds meaningful value beyond the schema.

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 clearly states the tool retrieves a single workout template in full, including its interval structure. It distinguishes itself from the plural list tool tp_get_library_items and from tp_schedule_library_workout by emphasizing the full detail retrieval.

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?

It explicitly tells when to use this tool: before tp_schedule_library_workout or when reusing the structure. It also points to tp_get_library_items for the source of IDs, giving concrete guidance on how to obtain valid inputs.

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

Install Server

Other Tools

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/JamsusMaximus/TrainingPeaks-MCP'

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