Skip to main content
Glama
SCP Golf MCP Server
by Dswane

SCP Golf — Profile 001 of the Sports Context Protocol

The context, safety, and memory layer for sports agents. Golf first.

Before a sports agent acts, it checks SCP. Then SCP learns from what happened.

SCP — Sports Context Protocol — is an open context layer for AI agents operating in sports. Every sport venue has the same five things underneath: inventory, rules, actions, consequences, and memory. SCP is the standard way an agent reads those before it acts, and learns from the outcome after.

SCP Golf is Profile 001 — the first working profile. Golf is the cleanest wedge because an agent cannot safely book, price, move, or recommend anything at a course without understanding tee-sheet state, protected inventory, pricing policy, pace risk, events, and operator memory. Golf makes the problem impossible to ignore.

This repository is SCP Golf Alpha: a synthetic demo course, a local MCP server, booking and pricing safety checks, soft holds, a decision ledger, and a self-learning memory. No real course data, no integrations, no database.

Why golf agents need this

AI golf agents are coming — answering calls, booking tee times, quoting prices, moving reservations. The problem: most agents only know the conversation. They do not know the course: the tee-sheet state, the member protections, the league blocks, the pricing floor, the pace risk, the operator's preferences, and what happened the last time a similar decision was made.

SCP Golf gives them that, and then it learns.

Related MCP server: mmw

What the alpha does

  • Models one synthetic course — Harbor Ridge Golf Club — for Saturday, June 6, 2026: a 67-slot tee sheet with member, league, and outing blocks.

  • Exposes the course as 11 MCP resources (read-only context).

  • Exposes 9 MCP tools for safe booking, pricing, soft holds, decision logging, outcome feedback, and learning insights.

  • Exposes 4 MCP prompts (reusable workflows).

  • Logs every decision to a ledger and learns from outcomes — operator overrides, pace issues, price rejections — so the next similar decision is better.

Install

npm install
npm run build
npm run typecheck
npm run test

Run

npm run dev      # runs the MCP server on stdio (tsx, no build needed)
npm start        # runs the compiled server from dist/

Test it interactively with the MCP Inspector:

npx @modelcontextprotocol/inspector npm run dev

The tools

Tool

What it does

get_course_context

Full operating context — read this before acting.

get_available_inventory

Available tee times near a preferred time.

check_booking_action

Is a booking allowed, blocked, risky? Writes a decision.

check_pricing_action

Is a quoted/discounted price allowed? Writes a decision.

create_soft_hold

Temporary hold on a tee time before confirmation.

write_decision_event

Log a decision directly.

submit_outcome_feedback

The learning tool. Feed an outcome back to SCP.

get_learning_insights

What SCP has learned.

explain_action

Explain a result for golfer / operator / developer.

The resources

scp://course/demo and its children: context, tee-sheet, booking-policy, pricing-policy, events, weather, pace, decision-ledger, learning-memory, soft-holds.

The self-learning loop

This is the heart of SCP. It is operational learning — no model training.

  1. An agent calls a tool. SCP builds a decision fingerprint (a bucketed, deterministic description of the kind of decision).

  2. SCP checks rules and learned memory keyed on that fingerprint.

  3. SCP recommends a safe action and logs a decision event.

  4. Feedback arrives via submit_outcome_feedback.

  5. SCP scores the outcome and updates its learning memory.

  6. The next decision with a matching fingerprint is shaped by that memory.

The demo moment: ask for Saturday ~09:00, have an operator override the result once, ask again — SCP now recommends the operator's preferred time. See docs/LEARNING_LOOP.md.

Docs

Status

Alpha. Synthetic data. Booking safety first. Self-learning from decision outcomes. Not partnered with any course, not integrated with any provider, not live with any operator.

License

MIT

Available Tools

9 tools
check_booking_actionCheck booking actionC

Checks whether a booking is allowed, blocked, risky, or warns based on policy and learned memory. Writes a decision event to the ledger.

Inputs: requestedStartTime (required), now, date, agentId, +3 more.

check_pricing_actionCheck pricing actionB

Checks whether a quoted or discounted price is allowed, given the absolute floor, time-window rate, discount limits, approval rules, and learned pricing patterns. Writes a decision event.

Inputs: startTime (required), currentPrice (required), proposedPrice (required), date, +2 more.

create_soft_holdCreate soft holdC

Creates a temporary hold on a tee time before confirmation. Marks the slot as soft_hold on the tee sheet.

Inputs: date, agentId, players, courseId, +3 more.

explain_actionExplain actionB

Explains a decision result for a chosen audience: golfer (simple, no internal language), operator (operational detail), or developer (structured detail).

Inputs: result (required), actionType (required), audience.

get_available_inventoryGet available inventoryB

Finds available tee times near a preferred time. Never returns protected, booked, or blocked inventory as bookable.

Inputs: date, players, publicAgent, preferredTime, +1 more.

get_course_contextGet course contextA

Returns the full operating context for the course: tee-sheet summary, inventory, booking and pricing policies, events, weather, pace risks, recent decisions, and learning insights. An agent should call this before acting.

Inputs: date, courseId.

get_learning_insightsGet learning insightsC

Returns what SCP has learned: lessons, operator preferences, pricing and pace patterns, and similar past decisions. Optionally filtered to a decision fingerprint key.

Inputs: courseId, fingerprintKey.

submit_outcome_feedbackSubmit outcome feedbackC

The learning tool. Attaches an outcome to a past decision and updates SCP's learning memory so future similar decisions improve.

Inputs: feedbackType (required), decisionEventId (required), notes, metrics.

write_decision_eventWrite decision eventB

Logs a decision event to the ledger. Most decision tools write their own events; this tool is for agents that want to log an action directly.

Inputs: allowed (required), toolName (required), actionType (required), inputSummary (required), +7 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: context retrieval, inventory lookup, policy checks, hold creation, decision logging, feedback, insights, and explanation. No overlap in functionality.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case, using imperative verbs like get_, check_, create_, write_, submit_, explain_. No mixing of conventions.

    Tool Count5/5

    9 tools is perfectly scoped for a golf course management domain, covering context, inventory, policies, actions, logging, learning, and explanation without excess.

    Completeness4/5

    Covers core workflows: context, inventory, booking/pricing checks, holds, decision logging, and learning. Minor gap: no explicit release or confirm tool, but temporary holds auto-expire as per description.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to store, retrieve, validate, and prune persistent memory with sub-2ms latency, and to execute tenant-isolated external integrations.
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to browse customers, bookings, and availability while any booking creation or cancellation stays gated behind a human-approved, single-use token cryptographically bound to the exact arguments. Runs over stdio or Streamable HTTP and enforces the read/write separation in host code with a full audit trail.
      7
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to safely interact with operations systems such as cloud inventory, runbooks, and ticketing while enforcing role-based access, JWT authentication, write confirmation, secret and PII redaction, rate limits, and audit logging.
      MIT