Skip to main content
Glama
onnobos

Volleymetrics MCP Server

by onnobos

Refresh Volleymetrics OAuth Session

refresh_volleymetrics_session

Refresh an expired Volleymetrics Bearer token headlessly with .env credentials to keep automated scouting workflows authenticated without opening a browser.

Instructions

Perform a headless OAuth 2.0 token refresh for the Volleymetrics session using .env credentials (VOLLEYMETRICS_EMAIL and VOLLEYMETRICS_PASSWORD), unlike login_to_volleymetrics (which opens an interactive desktop browser window for manual/SSO/2FA login).

When to Use

  • Refresh an expired Volleymetrics Bearer token in headless or automated environments where VOLLEYMETRICS_EMAIL and VOLLEYMETRICS_PASSWORD are configured in .env.

  • Test whether stored .env credentials can mint a fresh token without user interaction.

When NOT to Use

  • Do NOT use when the user authenticates via password manager, Hudl SSO, or 2FA without storing plaintext credentials in .env; call login_to_volleymetrics instead.

  • Do NOT call in a loop if this tool returns Interactive Login Recommended, as that indicates .env credentials are not configured.

Behavioral Guarantees & Security

  • Side Effects: Executes an OAuth password-grant token request (or headless Playwright fallback), persists the new JWT to OS Keychain and .env (chmod 0600), and optionally clears the local response cache when clear_cache=True.

  • Fallback Guidance: If .env credentials are absent, performs zero network calls and immediately directs the agent to call login_to_volleymetrics.

Parameter & Workflow Semantics

  • Leave clear_cache=True when recovering from an authentication error or switching accounts; set clear_cache=False to retain cached 7-day historical match data across token renewals.

Returns & Error States

  • On success: Confirmation message with masked JWT (eyJhbGci...).

  • When .env credentials are missing or rejected: Actionable instructions to invoke login_to_volleymetrics.

Input Schema

NameRequiredDescriptionDefault
clear_cacheNoWhen True (default), clears the local disk query cache (~/.volleymetrics_mcp/cache) after minting a new OAuth Bearer token so subsequent queries fetch fresh data.
timeout_secondsNoMaximum timeout in seconds (5 to 120) for the headless OAuth token refresh request against https://auth.volleymetrics.hudl.com.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare a non-read-only, open-world, non-idempotent operation but say nothing about side effects; the description fills that gap by disclosing the password-grant request, headless Playwright fallback, persistence of the JWT to OS Keychain and `.env` with `chmod 0600`, and conditional cache clearing. It also states the zero-network-call behavior when credentials are absent, which is exactly the kind of pre-call safety context annotations cannot convey.

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?

Well front-loaded and organized under scannable headings, with the key differentiator in the first sentence. It is somewhat long for a two-parameter tool, and the 'credentials missing' condition is restated three times (When NOT to Use, Fallback Guidance, Returns & Error States), which is mild 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?

For a mutation-style auth tool with no output schema, the description covers what the agent needs: trigger conditions, side effects, parameter choice, success confirmation format (masked JWT), and the actionable error path. Nothing material is left to inference.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds decision-level meaning for `clear_cache` (set True when recovering from an auth error or switching accounts, False to retain 7-day cached match data) that goes beyond the schema's mechanical 'clears the cache after minting' wording. The `timeout_seconds` parameter is never mentioned in the description, which keeps this from a 5.

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?

States a specific verb and resource (headless OAuth 2.0 token refresh for the Volleymetrics session) and immediately contrasts it with the sibling `login_to_volleymetrics`, which is described as the interactive desktop-browser alternative. An agent can distinguish the two without opening either 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?

Provides explicit 'When to Use' and 'When NOT to Use' sections, naming the exact conditions (headless/automated environments with `.env` credentials vs. password-manager/SSO/2FA users) and pointing to the concrete alternative tool. It also warns against looping on the 'Interactive Login Recommended' result.

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