Skip to main content
Glama

get_athlete

Retrieve athlete profile data with sport-specific zones and performance thresholds to analyze training metrics and personalize workout plans.

Instructions

Get athlete profile including sport zones and thresholds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:25-28 (handler)
    The main handler function for the 'get_athlete' tool. Decorated with @mcp.tool(), it returns athlete profile data by calling the _get() helper with the athlete endpoint.
    @mcp.tool()
    def get_athlete() -> dict:
        """Get athlete profile including sport zones and thresholds."""
        return _get(f"/athlete/{ATHLETE_ID}")
  • main.py:25-25 (registration)
    The @mcp.tool() decorator that registers get_athlete as an MCP tool.
    @mcp.tool()
  • main.py:14-22 (helper)
    Helper functions used by get_athlete. _client() creates an httpx client with authentication, and _get() performs the actual HTTP GET request and returns JSON.
    def _client() -> httpx.Client:
        return httpx.Client(auth=("API_KEY", API_KEY), base_url=BASE_URL)
    
    
    def _get(path: str, params: dict[str, Any] | None = None) -> Any:
        with _client() as client:
            r = client.get(path, params=params)
            r.raise_for_status()
            return r.json()
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It partially discloses what data is returned ('sport zones and thresholds'), but lacks information on caching behavior, authentication requirements, rate limits, or error conditions. It implies a read-only operation through the verb 'Get'.

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, efficient sentence of seven words. It is front-loaded with the action verb and contains no redundant or wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without an output schema, the description partially compensates by mentioning specific return content ('sport zones and thresholds'), but lacks details on response structure, data types, or complete field enumeration. Given the tool's simplicity (no inputs) and lack of annotations, this is minimally adequate but has clear gaps.

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?

The input schema contains zero parameters. According to the scoring rules, zero parameters warrant a baseline score of 4, as there are no parameter semantics to clarify beyond what the schema already provides.

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?

The description provides a specific verb ('Get'), resource ('athlete profile'), and scope ('including sport zones and thresholds'). It implicitly distinguishes from siblings (get_activities, get_fitness, etc.) by focusing on static profile data rather than time-series or activity data, though it doesn't explicitly differentiate from them.

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

Usage Guidelines2/5

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

No guidance provided on when to use this tool versus alternatives like get_fitness (which may overlap with 'thresholds') or get_wellness. No prerequisites or exclusion criteria are mentioned.

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/ryansheppard/intervals.mcp'

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