Skip to main content
Glama
sharpapi-mcp

sharpapi-mcp

Official
by Sharp-API

get_leagues

Read-only

Lists sports leagues with their IDs, sport, and event counts, optionally filtered by sport, so you can retrieve league IDs for use in other queries.

Instructions

List leagues with their ids, sport and event counts. Pass sport to list one sport: without it the list covers every sport and runs to several hundred leagues. Use the returned ids for the league argument elsewhere.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_leagues"
  }
}

Input Schema

NameRequiredDescriptionDefault
sportNoSport id from list_sports, e.g. "football". Comma-separate for several.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly and non-destructive, so the safety profile is covered. The description adds real context beyond that: the unfiltered result volume (hundreds of records) and the fact that returned ids are the intended input to a `league` argument elsewhere. Pagination and result limits remain unstated.

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?

Three short sentences, front-loaded with what is returned, then the filtering rule, then the downstream-use note. Every sentence carries distinct information with no redundancy.

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

Completeness5/5

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

With a single optional parameter and no output schema, the description compensates by enumerating the returned fields and giving the volume expectation for the unfiltered case. Nothing an agent needs to call this correctly is missing.

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 coverage is 100%, and the schema itself documents the `sport` id source and comma-separated syntax, so baseline is 3. The description only adds the consequence of omitting the parameter rather than any new syntax or format meaning.

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 ("List leagues") and names the fields returned (ids, sport, event counts). It also positions the tool relative to downstream use ("Use the returned ids for the `league` argument elsewhere"), which separates it from sibling lookups even though no sibling is named directly.

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?

Gives clear conditional guidance: pass `sport` to narrow to one sport, omit it to cover every sport. It also warns that the unfiltered case is large (hundreds of leagues), which steers the agent toward filtering. There is no explicit when-not or named alternative, so it stops short of a 5.

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