Skip to main content
Glama
Sports Hub MCP Server

Sports Hub MCP Server

mlb: Get team roster

mlb_get_team_roster
Read-onlyIdempotent

Fetch an MLB team's roster with player names, positions, jersey numbers, and status to check active, full-season, or depth chart lineups.

Instructions

Get a team's roster with player names, positions, jersey numbers, and status.

Input Schema

NameRequiredDescriptionDefault
fieldsNoKeys to keep (comma-separated).
seasonNoSeason year
team_idYesTeam ID
rosterTypeNoRoster type: active, fullSeason, 40Man, depthChart, etc.active

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.4.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "Keys to keep (comma-separated).",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv1.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, covering the safety profile completely. The description adds only output content, not behavior: it says nothing about what rosterType changes, how season defaults behave, or whether the result is filtered or paginated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the verb and resource come first and the output fields follow. It is efficient, though it stops short of any additional routing or scoping detail.

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?

With no output schema, the description partially compensates by listing returned fields, and annotations plus a fully documented schema cover safety and inputs. Missing context includes what 'status' means and what the non-default rosterType values return, which an agent calling this tool would reasonably want.

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%, so all four parameters are documented in the schema and the baseline is 3. The description adds no parameter-level meaning, notably omitting that rosterType defaults to 'active' and accepts values like fullSeason, 40Man, and depthChart.

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?

States a specific verb and resource ('Get a team's roster') and enumerates the returned fields (names, positions, jersey numbers, status), so it is clearly distinguishable from mlb_get_teams or mlb_get_player. It does not, however, explicitly contrast itself with the near-identical nhl_get_team_roster or other sibling roster tools.

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?

There is no when-to-use guidance, no prerequisites (e.g., that team_id must come from mlb_get_teams), and no mention of alternatives such as mlb_get_player for individual players. The agent must infer usage entirely from the name and schema.

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

Deploy Server

Other Tools