Skip to main content
Glama

validate_task

Check a task directory's local structure and Harbor's TaskConfig when Harbor is importable, returning errors and warnings to fix.

Instructions

Check a task directory: the local structure plus Harbor's own TaskConfig when Harbor is importable. Returns the errors and the warnings you have to fix.

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": {
      "task_dir": "<task_dir>"
    },
    "name": "validate_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_dirYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does usefully disclose a conditional behavior (TaskConfig is only checked when Harbor is importable) and that the result is errors plus warnings, but it never states that the operation is read-only, whether anything on disk is touched, or what happens on a clean directory.

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?

Two compact sentences with the scope front-loaded and nothing redundant. The closing clause 'the errors and the warnings you have to fix' is slightly awkward phrasing but still earns its place by naming the return shape.

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?

The tool is simple (one required parameter) and an output schema exists, so return values need no explanation. The description covers what is validated and under what condition; only path expectations and read-only behavior are missing, which is a minor gap at this complexity.

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 0%, so the description must compensate. It clarifies that task_dir is a directory (not a file or task ID) and that it is the root being checked, but it gives no guidance on path format, absolute vs relative, or expected contents of that directory.

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?

States a specific verb and resource: it checks a task directory and enumerates what is inspected (local structure plus Harbor's TaskConfig when Harbor is importable). This is clearly distinguishable from plan_task and scaffold_task, though the description never names those siblings or contrasts itself with them.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no mention of when this should be run relative to scaffold_task or plan_task. The agent must infer from the tool name alone that this is a pre-flight check.

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