Skip to main content
Glama

port_read

Read-only

Read x86 I/O ports via dosbox-mcp to inspect VGA registers, sound cards, or HGC control ports; choose byte or word width.

Instructions

Read an x86 I/O port. Width is 1 (byte) or 2 (word). Use for VGA registers, sound cards, HGC control ports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portYesI/O port address (0x0000..0xFFFF).
widthNoWidth: 1 (byte) or 2 (word). Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered by structured data. The description adds nothing beyond that about side effects (some I/O port reads can clear status or have hardware effects) or what value is returned, and there is no output schema to compensate.

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?

Three short, front-loaded sentences with no filler; the core operation comes first and supplementary detail follows.

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?

For a two-parameter read tool this is close, but with no output schema the description should say what is returned (the read value, its type/width relationship). That return-value gap keeps it at minimum-viable.

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 'port' address range and 'width' semantics are fully documented in the schema. The description's width explanation ('1 (byte) or 2 (word)') merely repeats the schema, adding no new meaning.

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 ('Read') and resource ('x86 I/O port'), which cleanly contrasts with the sibling port_write. However, it never names the alternative or any other sibling, so differentiation is left implicit 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 Guidelines4/5

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

Gives concrete when-to-use context ('VGA registers, sound cards, HGC control ports'), which tells an agent the domain the tool applies to. It stops short of exclusions or warnings about when reading a port is risky or inappropriate.

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