Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_userA

Fetches a complete Codeforces profile in one call, returning:

  • Current rating, max rating, title, and max title.

  • Number of total contests given.

  • Recent 5 contest rating changes (delta).

  • Total distinct problems solved.

  • Breakdown of solved problems by difficulty.

  • Top 10 problem categories solved.

compare_userB

Compare two Codeforces users side-by-side. Returns a detailed comparison of ratings, titles, contest count, and problem solving breakdown (difficulty & category).

get_problemlistA

Search the entire Codeforces problemset and return up to 10 problems.

Parameters:

  • min_rating: Minimum difficulty rating (e.g., 800)

  • max_rating: Maximum difficulty rating (e.g., 2400)

  • topics: List of tags to filter by (e.g., ["dp", "greedy"])

  • sort_by: "recent" (newest first) or "oldest" (oldest first)

  • match_type: "OR" (match any topic) or "AND" (must match ALL topics)

Returns 10 problems with names, ratings, tags, and direct links.

get_problemA

Fetch the full problem statement, rating, and topics for a specific Codeforces problem. Provide the contest ID and the problem index (e.g., contest_id=4, index='A').

get_practiceproblemsA

Analyzes a user's solved problems to identify their weakest topics. Recommends up to 3 practice problems within +300 rating of their current level.

get_random_practiceA

Ignore weaknesses and recommend a single, completely random Codeforces problem within +/- 300 rating of the user's current rating. Great for a fresh, challenging surprise!

get_upsolveB

Analyze the user's last 10 rated Codeforces contests. Recommends up to 2 unsolved problems per contest if:

  • The problem is unrated, OR

  • The problem is rated within +/- 300 of the user's current rating. This is perfect for targeted practice to improve rank!

get_statusA

Fetch the last 1000 submissions of a user. Provides a summary of their AC/WA/TLE count, and details of their 20 most recent submissions. Great for debugging how a user is performing on their current attempts.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spr7a/cf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server