Skip to main content
Glama
OnlineCompiler MCP Server

OnlineCompiler MCP Server

Official

Judge Problem

judge_problem

Run code against a stored problem's tests and return a verdict, score, summary, submission ID, and signed receipt; hidden tests reveal only their verdict.

Instructions

Judge code against one of your stored problems.

Runs the problem's tests and returns a verdict, a score, a summary, a submission id, a signed receipt, and the problem id and version. Hidden tests return only their verdict, never their input or expected output. It never invents results: if the problem is missing or the run fails, you get an error.

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": {
      "problem": "<problem>",
      "compiler": "<compiler>",
      "code": "<code>"
    },
    "name": "judge_problem"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe source code to judge
modeNo'all' runs every test (default); 'samples' runs only the sample tests.all
problemYesThe id or slug of one of your stored problems
compilerYesCompiler identifier (e.g. 'python-3.14', 'gcc-15'). Use list_compilers to see all options.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it enumerates the return payload, discloses that hidden tests reveal only their verdict and never their input or expected output, and promises an error rather than fabricated results when the problem is missing or the run fails. It does not cover auth requirements or rate/latency limits.

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?

Front-loaded with the core action, then a compact enumeration of outputs and guarantees; there is no filler. The return-value list is slightly redundant given an output schema exists, but it stays tight.

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 four-parameter tool with full schema coverage, an output schema, and a samples/all mode, the definition still covers scope, output contents, hidden-test secrecy, and failure behavior. An agent has everything needed to call it and interpret a failure.

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?

Schema description coverage is 100%, so all four parameters are already documented in the schema, including the mode enum and the compiler example pointing at list_compilers. The description adds little parameter-level detail beyond what the schema states, which is the baseline-3 case.

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?

"Judge code against one of your stored problems" gives a specific verb and resource and scopes it to stored problems, which separates it from a generic code runner. It does not explicitly contrast itself with the sibling run_code or run_tests tools, so the distinction relies on inference.

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 implied: this is the tool that evaluates code against an already-stored problem, and the mode enum clarifies the samples-vs-all choice. There is no explicit statement of when to prefer it over run_code or run_tests, and no stated prerequisites.

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

Deploy Server

Other Tools