Skip to main content
Glama
proplineapi

PropLine

Official

propline_get_scores

Retrieve recent and live game scores with status (scheduled, live, final) for a sport. Quickly check if a game is finished and see the final score.

Instructions

Free-tier endpoint. Returns recent and live game scores plus status (scheduled, live, final) for a sport. Useful for: 'is this game over yet, what was the final score'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sport_keyYes
days_fromNoHow many past days of completed games to include. Defaults to 1.

Implementation Reference

  • src/index.ts:196-218 (registration)
    Registration of the 'propline_get_scores' tool in the tools array. Defines name, description, input schema (sport_key required, optional days_from), and the inline handler.
    {
      name: "propline_get_scores",
      description:
        "Free-tier endpoint. Returns recent and live game scores plus " +
        "status (scheduled, live, final) for a sport. Useful for: 'is " +
        "this game over yet, what was the final score'.",
      inputSchema: {
        type: "object",
        properties: {
          sport_key: { type: "string" },
          days_from: {
            type: "number",
            description:
              "How many past days of completed games to include. Defaults to 1.",
          },
        },
        required: ["sport_key"],
        additionalProperties: false,
      },
      handler: (args) =>
        client().getScores(args.sport_key as string, {
          daysFrom: args.days_from as number | undefined,
        }),
  • The handler function that executes the tool logic. Calls client().getScores() with sport_key and optional daysFrom parameter.
    handler: (args) =>
      client().getScores(args.sport_key as string, {
        daysFrom: args.days_from as number | undefined,
      }),
  • Input schema for the tool: requires 'sport_key' (string), optional 'days_from' (number), with additionalProperties disabled.
    inputSchema: {
      type: "object",
      properties: {
        sport_key: { type: "string" },
        days_from: {
          type: "number",
          description:
            "How many past days of completed games to include. Defaults to 1.",
        },
      },
      required: ["sport_key"],
      additionalProperties: false,
  • The getScores() helper method on PropLineClient that makes the actual HTTP GET request to /v1/sports/{sportKey}/scores with optional daysFrom query parameter.
    getScores(sportKey: string, opts: { daysFrom?: number } = {}): Promise<unknown> {
      return this.request(`/v1/sports/${sportKey}/scores`, {
        daysFrom: opts.daysFrom,
      });
    }
Behavior3/5

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

No annotations, so description carries full burden. Discloses Free-tier nature (suggests rate limits) and returned data types. However, does not specify how recent data is, max results, or if any side effects exist. Adequate but not rich.

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?

Two concise sentences plus a usage quote. Front-loaded with main purpose. No unnecessary words. Excellent structure.

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 the simplicity (2 params, no output schema), the description covers purpose and usage adequately. Could mention pagination or limits, but not essential for typical use. Slightly incomplete regarding 'recent' definition.

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 50% (only days_from documented). Description adds context that tool returns 'recent and live' scores, but does not elaborate on sport_key format or usage beyond the schema. Adequate but not exceptional.

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?

Clearly states it returns recent and live game scores plus status for a sport. Verb 'returns' and resource 'scores and status' are specific. Distinguished from siblings like 'propline_get_event_results' by focusing on live scores.

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?

Provides a concrete use case ('is this game over yet, what was the final score') that helps agent select tool. However, no explicit when-not-to-use or alternatives given, but context is clear enough.

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/proplineapi/propline-mcp'

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