Skip to main content
Glama

list_marathons

List all marathon events tracked by RunDida, including dates and locations.

Instructions

List all marathon events tracked by RunDida with dates and locations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function that executes the list_marathons tool logic. It fetches marathon data from the API, sorts by date, formats the list with names, dates, cities, and tier indicators, and returns a formatted text response.
    async () => {
      const data = await fetchJSON(`${BASE_URL}/api/marathons.json`);
      const list = data.active
        .sort((a, b) => a.date.localeCompare(b.date))
        .map(m => {
          const tierLabel = m.tier === 1 ? ' ★' : '';
          const idHint = m.slug || m.id;
          return `- ${m.name.en}${tierLabel} — ${m.date} — ${m.city} [${idHint}]`;
        })
        .join('\n');
      return {
        content: [{
          type: 'text',
          text: `RunDida tracks ${data.meta.totalActive} upcoming marathons:\n\n${list}\n\nUse get_marathon with an ID or slug (e.g. "tokyo", "boston2026") for details.\n★ = World Major / Flagship race`,
        }],
      };
    }
  • Empty schema object (no input parameters required) for the list_marathons tool.
    'List all marathon events tracked by RunDida with dates and locations',
    {},
  • index.js:152-174 (registration)
    Tool registration using server.tool() with name 'list_marathons' and description 'List all marathon events tracked by RunDida with dates and locations'.
    // Tool: list_marathons
    server.tool(
      'list_marathons',
      'List all marathon events tracked by RunDida with dates and locations',
      {},
      async () => {
        const data = await fetchJSON(`${BASE_URL}/api/marathons.json`);
        const list = data.active
          .sort((a, b) => a.date.localeCompare(b.date))
          .map(m => {
            const tierLabel = m.tier === 1 ? ' ★' : '';
            const idHint = m.slug || m.id;
            return `- ${m.name.en}${tierLabel} — ${m.date} — ${m.city} [${idHint}]`;
          })
          .join('\n');
        return {
          content: [{
            type: 'text',
            text: `RunDida tracks ${data.meta.totalActive} upcoming marathons:\n\n${list}\n\nUse get_marathon with an ID or slug (e.g. "tokyo", "boston2026") for details.\n★ = World Major / Flagship race`,
          }],
        };
      }
    );
Behavior3/5

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

No annotations provided, so description bears full burden. It describes a read operation and specifies returned fields (dates, locations), but lacks details on potential pagination, limits, or performance considerations. Adequate for a simple tool.

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?

Single sentence of 10 words, front-loaded with action and resource. No wasted words.

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?

Given no parameters and no output schema, the description is mostly complete. It states what the tool returns (dates and locations). However, it could mention if the list is unfiltered or if there are any default limits, but for a tool with no params, this is sufficient.

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?

No parameters defined; schema coverage is 100% trivially. According to rules, 0 parameters baseline is 4. The description does not need to add parameter info.

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?

Description clearly states verb 'List', resource 'marathon events', scope 'all', and output includes 'dates and locations'. Distinguishes from siblings like get_marathon (single event) and list_guides (different resource).

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

Usage Guidelines3/5

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

No explicit guidance on when to use vs alternatives. The name and description imply listing all events, but no mention of when to prefer get_marathon for details or calculate_pace for pace calculations. Usage is implied but not clarified.

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/XWeaponX7/rundida-mcp'

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