Skip to main content
Glama

Verify a port

port_verify
Read-onlyIdempotent

Checks a port plan for missing files, unported units, source leftovers, TODO markers, stubs, and dormant logic; returns pass status and a resume note.

Instructions

Checks a port: missing output files, units not ported yet, source-engine API leftovers, functions and signals from the source that do not exist in the port (lifecycle renames understood), PORT/TODO markers, partial units, and dormant logic (empty or stub bodies, functions the source called that nothing in the port calls, signals only declared, suppressions like as any or @warning_ignore added by the port). passed is true only when everything is ported and clean. Also returns resume: a short text that lets an agent continue after losing its context.

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_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds substantial context: the exact checks performed, the meaning of `passed`, and the `resume` field that helps an agent recover from context loss. This is useful behavioral detail beyond the annotations.

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 description is dense but front-loaded: it first states the tool's purpose and the full list of checks, then clarifies the `passed` and `resume` outputs. Every sentence is relevant, though the long enumeration could be slightly easier to scan with formatting.

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?

With no output schema, the description must explain return values. It does explain `passed` and `resume` and enumerates the categories of issues checked, giving an agent enough to interpret results. However, it does not specify the structure of detailed findings beyond the boolean and resume text, leaving a minor gap.

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?

There is only one parameter, `planId`, and schema description coverage is 100%. The schema already explains that it comes from port_plan and that port_status lists them. The description adds no additional parameter semantics, so the baseline score of 3 is appropriate.

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 states a specific verb ('Checks a port') and enumerates the exact categories of checks performed (missing files, API leftovers, lifecycle renames, PORT/TODO markers, dormant logic, etc.). This clearly distinguishes it from sibling tools like port_status or port_convert, though it does not explicitly name an alternative.

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?

Usage is implied: verify a port after porting work, with planId supplied from port_plan. There is no explicit guidance on when to call this versus port_status or other verification tools, and no stated exclusions or prerequisites beyond the planId reference in the schema.

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