Skip to main content
Glama

vnoi_submit

Submits code to VNOI for a specified problem and language, then waits for judging and returns per-test verdicts with status, time, and memory.

Instructions

Nộp code lên VNOI, đợi chấm xong rồi trả về kết quả từng test (batch, trạng thái AC/WA/TLE/..., thời gian, bộ nhớ). problem_code: mã bài, ví dụ "vnoicup25_r1_a". code: mã nguồn. language: mã ngôn ngữ — 4 = C++17 (mặc định), 14 = C++20, 23 = C++23, 9 = Python 3, 17 = PyPy 3.

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_code": "<problem_code>",
      "code": "<code>"
    },
    "name": "vnoi_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
languageNo4
problem_codeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden, and it does disclose the key trait: this is a blocking call that waits for grading to complete before returning per-test results (batch, AC/WA/TLE status, time, memory). It omits side effects the agent would care about — submission quota, whether submissions are public, authentication requirements, or session/rate 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 action and the return behavior, then a compact parameter list. Every line earns its place; the parenthetical list of result fields is slightly verbose given an output schema exists, but still readable and well structured.

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 three-parameter submit tool with an output schema, the definition covers what to send and what comes back. Two gaps remain: restating return fields that the output schema already defines, and no mention of permissions, quota, or failure modes for a mutation-style tool with zero annotation coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description fully compensates: problem_code is given with a concrete format example ('vnoicup25_r1_a'), code is identified as source code, and the language parameter is expanded with an explicit numeric-to-language mapping and a stated default (4 = C++17). This is exactly the enum information the bare schema lacks.

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?

The description states a specific verb and resource ('Nộp code lên VNOI' = submit code to VNOI) and adds scope: it waits for grading and returns per-test results. Sibling differentiation is only implied by the verb (get/list vs submit), which is enough given the name itself is a clear verb-noun pair.

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 rather than stated: the 'đợi chấm xong rồi trả về' (wait for grading to finish, then return) wording hints that the caller does not need to poll separately, but no alternative is named (e.g., vnoi_get_result) and there are no when-not conditions or prerequisites such as login or submission limits.

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