Skip to main content
Glama

pt_export

Exports a plan JSON to JavaScript, CLI configs, and JSON files, saving outputs to a project folder in the MCP working directory.

Instructions

Exports the plan to files: JS script, CLI configs and JSON.

Parameters:

  • plan_json: plan JSON

  • project_name: project name

  • output_dir: folder inside the MCP's working directory (PT_MCP_WORKDIR); a path that points elsewhere is reduced to a folder name there.

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": {
      "plan_json": "<plan_json>"
    },
    "name": "pt_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_jsonYes
output_dirNoprojects
project_nameNotopology

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.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 behavioral burden. It does disclose a genuinely non-obvious constraint: output_dir is confined to the MCP working directory (PT_MCP_WORKDIR) and out-of-tree paths are silently reduced to a folder name there. That is valuable, but it omits other write-side behavior an agent needs—whether existing files are overwritten, whether directories are created, and where the returned files land.

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?

The purpose sentence is front-loaded and the parameter list is terse and scannable. The bullet list largely mirrors the parameter names, but it earns its place through the added output_dir note, so little is wasted.

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 not be explained, and the export artifact scope is clear. Still, for a filesystem-writing tool with zero annotation coverage, the definition should state overwrite behavior, whether the output directory is created if missing, and the role of project_name—gaps that matter before invoking it.

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, which it partially does by naming all three parameters and explaining output_dir's path-coercion rule in detail. However, plan_json is restated as 'plan JSON' with no format or encoding guidance, and project_name is described only as 'project name' with no indication of how it influences output file naming.

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 opens with a specific verb and resource ('Exports the plan') and enumerates the concrete artifacts produced (JS script, CLI configs, JSON), which tells an agent precisely what the tool yields. It does not differentiate itself from the closely named sibling pt_export_topology, so the boundary between the two export tools must be inferred from names alone.

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?

No guidance is given on when to choose this export over pt_export_topology or any other tool, nor are preconditions (e.g. a plan must already exist) stated. Usage is only implied by the word 'Exports', leaving the agent to guess at selection between overlapping siblings.

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

Deploy Server

Other Tools