Skip to main content
Glama

scaffold_task

Create a Harbor task directory from a specification, enforce required instruction/verifier/solution fields, copy staged files, and prepare the task for validation.

Instructions

Write a Harbor task directory from the spec you produced. This is the only way to materialise a task, so the spec shape is enforced here rather than in prose: instruction_md is the task text the solving agent sees, verifier_code is the test that writes /logs/verifier/reward.txt, solution_code is the reference solution. Files listed in copy_from_staging are copied into the image and land at the root of the working directory under their own file name. Call validate_task on the result. The task name is prefixed with the org you pass.

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": {
      "name": "<name>",
      "instruction_md": "<instruction_md>",
      "verifier_code": "<verifier_code>"
    },
    "name": "scaffold_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgNoenvwiki
nameYes
tagsNo
workdirNo/app
categoryNogeneral
task_dirNo
target_osNolinux
base_imageNoubuntu:24.04
difficultyNomedium
descriptionNo
staging_dirNo
source_notesNo
solution_codeNo
verifier_codeYes
instruction_mdYes
setup_commandsNo
copy_from_stagingNo
solution_languageNobash
verifier_languageNobash

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the load and does disclose non-obvious behavior: spec shape is enforced here, copy_from_staging files land at the working-directory root under their own names, and the task name is rewritten with the org prefix. It omits whether an existing task directory is overwritten, what errors look like, and any permission requirements, which keeps it below 5.

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?

Five dense sentences, front-loaded with the action and the exclusivity claim, then the enforcement contract, then the file-placement rule, then the follow-up step. No filler or restatement of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the core creation contract is conveyed. But for a 19-parameter, no-annotation mutation tool, the absence of overwrite/error behavior and the silence on most parameters leaves the definition thinner than the tool's complexity warrants.

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 coverage is 0% across 19 parameters, so the description must compensate, and it does explain the three required params with real semantics (instruction_md is the text the solving agent sees, verifier_code writes /logs/verifier/reward.txt, solution_code is the reference) plus org and copy_from_staging placement. However, roughly a dozen params (base_image, target_os, workdir, setup_commands, task_dir, staging_dir, solution_language, verifier_language, difficulty, category, tags, source_notes) get no mention at all, leaving a large documented gap.

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?

"Write a Harbor task directory from the spec you produced" gives a concrete verb and resource, and the line "This is the only way to materialise a task" positions it unambiguously against the surrounding planning/validation siblings. An agent can tell this is the creation step, distinct from validate_task or plan_task.

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?

Usage is clearly implied by the precondition (you must already have produced a spec) and the explicit follow-up "Call validate_task on the result," which establishes sequencing. It stops short of naming an alternative or a when-not-to-use case, so it does not reach the top band.

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