Skip to main content
Glama

Defense vs Position & Pace

defense_vs_position
Read-onlyIdempotent

Use this when the user asks which teams allow the most or fewest to a position ('best matchups for centers', 'defenses vs TE'). Returns what each NBA or NFL team allows per game to a position group (NBA: G, F, C, with pace rank; NFL: QB, RB, WR, TE), each number as [value, league rank] (1 = allows the most). Without position the NBA answer lists each group's ten softest teams (data_more counts the rest) and the NFL's the softest half: pass position for every team, as for the fewest allowed. Window 'recent' (last 10 games) needs Pro. Not for one player's matchup (player_profile's next game).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "league": "<league>"
    },
    "name": "defense_vs_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
leagueYesLeague ("nba" or "nfl").
seasonNoOptional season year. Defaults to the current season.
windowNoSample window: "season" (free) or "recent" (last 10 games, requires Pro).season
positionNoOptional position group filter (NBA: "G", "F", "C"; NFL: "QB", "RB", "WR", "TE").
player_idNoOptional numeric player ID: adds `player_matchup`, his next game's opponent and, per stat, his percentile in his position group beside what that defense allows the group (the first stat for every caller, every stat with Pro).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / player_id
      Added value: +{
      +  "description": "Optional numeric player ID: adds `player_matchup`, his next game's opponent and, per stat, his percentile in his position group beside what that defense allows the group (the first stat for every caller, every stat with Pro).",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, closed-world safety, but the description adds real behavioral detail beyond them: return format as [value, league rank] with rank 1 semantics, the data_more truncation counter, the asymmetric default behavior per league when position is omitted, and the Pro gating on window='recent'.

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?

Front-loaded with the trigger and dense but waste-free; every clause carries a fact. The single middle sentence about omitting position is nested enough that a reader must re-parse it once, costing a little clarity.

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?

No output schema exists, so the description must carry the return contract and it does: value/rank pairs, rank direction, truncation via data_more, and the extra player_matchup payload. 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.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds meaning the schema cannot express: position-dependent output shape (NBA top-ten softest per group vs NFL softest half), when to pass position explicitly, and what player_id actually produces (player_matchup plus percentile beside group allowance, first stat free / all stats with Pro).

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?

Opens with a concrete user-intent trigger plus example phrasings ('best matchups for centers', 'defenses vs TE') and names the exact resource: per-game allowances by position group for NBA and NFL. An agent can distinguish it from player-level tools without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use phrasing, an explicit when-NOT-to-use ('Not for one player's matchup') routed to a named sibling (player_profile's next game), and conditions for the Pro-gated 'recent' window. Covers all three guidance requirements in one short paragraph.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources