Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OJ_URLYesThe URL of the Orange Juice Online Judge API server (e.g., http://localhost:8000).
OJ_PASSWORDYesYour password for the Orange Juice Online Judge.
OJ_USERNAMEYesYour username for the Orange Juice Online Judge.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_problems

Fetch the list of problems from the Online Judge. Returns a JSON string containing total count and results.

list_my_submissions

Fetch the list of latest submissions made by the authenticated user. Returns a JSON string containing the submission histories.

get_problem_details
Fetch the detailed information of a specific problem.
problem_id: The external ID/display ID of the problem (e.g., "PR-114-1-31").
submit_code
Submit code to the Online Judge for a specific problem.
problem_id: the internal system ID of the problem.
language: string such as "C", "C++", "Python3".
code: the source code to submit.
get_submission_status
Get the status and result of a previously submitted code.
submission_id: The ID returned when submitting the code.

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/wangicheng/oj-mcp-server'

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