Skip to main content
Glama

Get the next unit to port

port_unit
Idempotent

Fetch the complete next unit to port—source text, mapped API hints, conventions, dependency symbols, target rules and a checklist—and mark it in progress.

Instructions

Returns one unit with everything needed to port it: source text, symbols, the engine APIs it uses with their mapped equivalents and line numbers (apiHints), conventions, target path and naming rules, dependencies with the symbols of their already-ported targets, and a checklist. Marks it in_progress.

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": {
      "planId": "<planId>"
    },
    "name": "port_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoRepeat the conventions and checklist even after the first finished unit (they are shortened after that).
unitNoUnit id (u001…), or its source/target path. Omit for the next unit in dependency order.
planIdYesPort plan id from port_plan (port_status lists them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, and the description correctly discloses the corresponding side effect ('Marks it in_progress'), so there is no contradiction. It also explains the 'full' toggle restoring conventions and checklist after the first finished unit. It does not discuss concurrency, what happens if a unit is already in_progress, or how state is released.

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 that leads with the returned resource and then enumerates contents in a logical order. It is dense and runs long, but every clause carries information; a short list format would read better than the comma chain.

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?

There is no output schema, so the description carries the burden of describing returns, and it does so thoroughly by naming each bundle component. With 100% parameter coverage and an explicit side effect, the main remaining gap is the shape/structure of the returned object rather than its contents.

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 100%, so all three parameters are already documented, which sets the baseline at 3. The description adds only marginal meaning, mainly implying the dependency-order default already stated in the schema.

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 ('Returns one unit') and enumerates the payload (source text, symbols, apiHints, conventions, target path, dependencies, checklist), which makes clear it is the unit-fetching tool in the port family. It does not explicitly name a contrasting sibling, so differentiation is implied by content rather than stated.

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

Usage Guidelines3/5

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

The schema/description indicate that omitting 'unit' yields the next unit in dependency order, which is real usage guidance for sequencing. However, there is no explicit when-to-use vs alternatives, no statement of prerequisites beyond the planId source (port_plan/port_status), and no guidance about calling it repeatedly or when to prefer fetching a specific unit.

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