Skip to main content
Glama
@racehooks/mcp

@racehooks/mcp

Official

Get Session Analytics

get_session_analytics
Read-onlyIdempotent

Retrieve per-lap ML analytics for a race session, including pit and safety-car probabilities, tyre health, LTOE, and win probability, to evaluate race dynamics.

Instructions

Get per-lap ML analytics snapshot for a session (pit probability, SC probability, tyre health, LTOE, win probability). Requires Developer or higher.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "get_session_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesSession ID, e.g. '2026-bahrain_r'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds a genuinely non-schema behavioral fact: the Developer-or-higher authorization requirement, which the agent needs before attempting the call. It does not disclose cost, latency, or whether the ML snapshot can be stale/missing for live sessions.

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 sentences with no padding: the capability and its payload are front-loaded, followed by the access constraint. Every clause carries information an agent would otherwise have to guess.

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?

For a single-parameter read-only tool this is very nearly complete, and the enumerated metric list effectively communicates what comes back in the absence of an output schema. What's missing is any hint about response shape (per-lap array? keyed by lap number?) or behavior when analytics are unavailable for a session.

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?

There is a single required parameter with 100% schema description coverage, including an example format ('2026-bahrain_r'). The description adds nothing about the sessionId beyond what the schema already provides, so the baseline 3 applies.

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 ('Get') and a well-scoped resource ('per-lap ML analytics snapshot for a session'), then enumerates the exact metrics returned (pit probability, SC probability, tyre health, LTOE, win probability). That makes it clearly distinct from generic siblings like get_race_summary or get_race_insights. It stops short of naming an alternative sibling, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is only implied by the presence of the metric list – an agent can infer it should call this when it needs model-derived per-lap probabilities. There is no explicit statement of when to prefer this over get_race_insights or get_race_telemetry_laps, and the 'Requires Developer or higher' line is a prerequisite, not a usage rule.

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