Skip to main content
Glama

Author a complete problem

repovive_build_author_complete_problem
Idempotent

Import a complete problem into a draft: replace test cases, then write metadata, statement, tests, solution, editorial, and validator. Check report to confirm readiness before publishing separately.

Instructions

Import a complete problem into a draft in one call: clears the existing test cases (unless replace_testcases=False), then writes metadata, statement, test cases, the reference solution, editorial pages and input validator. Returns a per-step report — check all_ok before treating the draft as ready. This edits a private draft; publishing it to a contest is a separate call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesBuild session id to write into
problem_jsonYesA problem object (e.g. from repovive_generate_problem)
learn_pages_jsonNoOptional editorial pages: [{"title": str, "content": str}]
validator_sourceNoOptional input-validator source
replace_testcasesNoDelete existing manual test cases first

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior1/5

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

The description discloses substantial behavior: clearing test cases, writing multiple artifacts, returning a per-step report, and editing a private draft. However, it says it 'clears the existing test cases' while annotations declare destructiveHint=false, which is a direct contradiction. Per the rubric, this makes the score 1 despite otherwise strong disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences with no filler. It front-loads the core action, then gives the side effect, return semantics, and scope boundary. Every sentence earns its place.

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 five-parameter tool with an output schema and rich annotations, the description covers destination, artifacts written, the reporting mechanism, and the draft-vs-contest scope. It is slightly less complete because the destructiveHint conflict leaves the safety profile ambiguous.

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?

The input schema covers 100% of the five parameters, so the baseline is 3. The description reinforces the replace_testcases behavior and references problem_json coming from repovive_generate_problem, but it does not add meaning beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: 'Import a complete problem into a draft in one call', then enumerates exactly what gets written. It distinguishes this from the granular build_* sibling tools and from publishing by saying 'publishing it to a contest is a separate call'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly signals when to use this tool: when you want a complete, one-call import into a draft. It also sets an exclusion by noting publishing is separate. It does not explicitly name the alternative granular build_* tools for partial updates, so it stops short of full when/when-not guidance.

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

Install Server

Other Tools

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/dwin-gharibi/repovive-mcp'

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