Skip to main content
Glama
KerkhofMe
by KerkhofMe

get_activities_between

Retrieve Strava activities within a specified date range using ISO 8601 formatted start and end dates to analyze training data and track fitness progress.

Instructions

Get Strava activities within a specific date range

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterYesStart date (ISO 8601, e.g. 2025-01-01)
beforeYesEnd date (ISO 8601, e.g. 2025-12-31)

Implementation Reference

  • Registration and handler implementation for the "get_activities_between" tool in src/index.ts. It defines the parameters using Zod and performs the API call to fetch activities within the provided date range.
    server.tool(
      "get_activities_between",
      "Get Strava activities within a specific date range",
      {
        after: z
          .string()
          .describe("Start date (ISO 8601, e.g. 2025-01-01)"),
        before: z
          .string()
          .describe("End date (ISO 8601, e.g. 2025-12-31)"),
      },
      async ({ after, before }) => {
        const afterEpoch = Math.floor(new Date(after).getTime() / 1000);
        const beforeEpoch = Math.floor(new Date(before).getTime() / 1000);
        const activities = await stravaFetch(
          `/athlete/activities?after=${afterEpoch}&before=${beforeEpoch}&per_page=100`
        );
        return {
          content: [{ type: "text", text: JSON.stringify(activities, null, 2) }],
        };
      }
    );
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the action but lacks behavioral details like authentication requirements, rate limits, pagination, return format, or error handling. For a read operation with no annotations, this is insufficient disclosure.

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 with zero wasted words. It is front-loaded and appropriately sized for the tool's complexity, making it easy to parse quickly.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete. It does not cover behavioral aspects like response format, pagination, or error cases, which are critical for a tool with two required parameters and no structured output guidance.

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 description coverage is 100%, with clear parameter descriptions in the schema. The description adds minimal value by implying date-range filtering but does not provide additional semantics beyond what the schema already documents, meeting the baseline for high coverage.

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 clearly states the verb ('Get') and resource ('Strava activities') with scope ('within a specific date range'), making the purpose unambiguous. However, it does not explicitly differentiate from siblings like 'get_activities' (which likely lacks date filtering) or 'get_activity' (singular), so it misses full sibling distinction.

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 is provided on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or compare to siblings such as 'get_activities' (possibly unfiltered) or 'get_activity' (for a single activity), leaving the agent to infer usage context.

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/KerkhofMe/StravaMCP'

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