Skip to main content
Glama

pack_import

Validate a harness-produced JSON result against pack gates and record it in the workspace to ensure only compliant outputs are imported.

Instructions

Validate a harness-produced JSON result against the pack gates and record it in the workspace.

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": {
      "workspace": "<workspace>",
      "kind": "<kind>",
      "run_id": "<run_id>",
      "result_path": "<result_path>"
    },
    "name": "pack_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
run_idYes
workspaceYes
result_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.2.0
    • changedInput schema / additionalProperties
      Previous value: -trueNew value: +false
    • addedInput schema / properties
      Added value: +{
      +  "kind": {
      +    "type": "string"
      +  },
      +  "result_path": {
      +    "type": "string"
      +  },
      +  "run_id": {
      +    "type": "string"
      +  },
      +  "workspace": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / required
      Added value: +[
      +  "workspace",
      +  "kind",
      +  "run_id",
      +  "result_path"
      +]
  2. First observedv4.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It implies a write ('record it in the workspace') but never says whether a failed gate validation errors out or writes a partial record, whether an existing record for the same run_id is overwritten, or whether the operation is idempotent/retryable — all critical for a mutating tool.

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?

A single front-loaded sentence with no filler or redundant restatement of the name. It is terse to the point of under-specification, but the sentence structure itself is clean and efficient.

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

Completeness2/5

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

For a four-required-parameter mutation tool with no annotations, no output schema, and zero parameter documentation, one sentence is not enough. The agent cannot determine validation failure behavior, what the tool returns, or what the opaque parameters must contain before calling it.

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

Parameters2/5

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

Schema description coverage is 0% across four required parameters, and the description only implicitly touches two of them ('workspace' and the result file). It adds no meaning for 'kind' (what gate/pack type is expected, allowed values) or 'run_id' (harness run identity, uniqueness, reuse semantics), so half the inputs remain opaque.

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 compound action (validate a harness-produced JSON result, then record it in the workspace) on a specific artifact, which is far from tautological. The jargon 'pack gates' and 'harness-produced' is left undefined, and nothing distinguishes it from pack_plan/pack_scaffold/pack_task beyond the word 'validate', keeping it out of 5 territory.

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 statement that this is the step following a harness run, no prerequisite that a pack must first be scaffolded via pack_scaffold, and no mention of alternatives such as writing_import. The reader must infer the pipeline position from the phrase 'harness-produced'.

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