Skip to main content
Glama

port

Read-onlyIdempotent

Identify a file's route, tier, required validation gates, applicable lessons, and next commands before editing; read-only, with the exit code as the verdict.

Instructions

START HERE before editing a file: its route, tier, the gates to run, the lessons that apply, and the next commands. Read-only; the exit code is the verdict.

Input Schema

NameRequiredDescriptionDefault
targetYesa file, a directory, or . for the tree.
runtimeNoa runtime_entry id, for --frame agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the description correctly reinforces 'Read-only' without contradiction. It adds useful behavioral context beyond the annotations by explaining what the tool returns and that 'the exit code is the verdict,' though it does not detail exit-code values or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the critical instruction 'START HERE before editing a file' and then lists the useful outputs. Every clause carries information, and there is no filler.

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 only two fully documented parameters, no output schema, and clear read-only annotations, the description is nearly complete for guiding an agent. It lists the categories of information returned and notes the exit-code verdict, though it could say more about how to interpret that exit code.

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 both parameters are documented in the input schema. The description adds no parameter-specific meaning beyond implying that a file can be the subject. The baseline of 3 is appropriate when the schema fully documents parameters.

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 clearly states that the tool is the first step before editing a file, returning its route, tier, gates, lessons, and next commands. It distinguishes itself from siblings like route and gate by positioning itself as the entrypoint that surfaces all of those things together, though the name 'port' remains ambiguous without the description.

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

Usage Guidelines4/5

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

It gives clear timing guidance: 'START HERE before editing a file.' This tells the agent exactly when to use it. It does not name alternative tools or state when not to use it, but the context is strong enough to guide invocation.

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