x402-is-port
Is Port: Check whether a number is a valid network port (0-65535). Provide value. 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No |
Is Port: Check whether a number is a valid network port (0-65535). Provide value. 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| value | No |
Changes observed during successful MCP inspections.
Input schema / properties / value / descriptionRemoved value: -"Value to process"Input schema / properties / valueAdded value: +{
+ "description": "Value to process",
+ "type": "string"
+}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 the accepted domain (0-65535) and the payment/quota model (5 free trial calls per signed wallet), which is genuinely useful context, but it never says what the response looks like (presumably a boolean), whether out-of-range input errors or returns false, or what happens after the free trial is exhausted.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The core sentence is front-loaded and efficient, but "Provide value." is filler that restates the obvious, and the pricing emoji line, while short, is bolted on rather than integrated into the definition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter predicate with no output schema and no annotations, the description covers the validation domain and the payment gate, which is the minimum an agent needs to invoke it. It falls short on return-value shape and edge-case behavior, which are exactly the gaps an unannotated tool must fill itself.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter "value" is documented at 0% in the schema, so the description must compensate. The range hint implies the value should be a number-like port, but it does not resolve the ambiguity that the schema types it as a string, nor say whether "8080" (string), 8080 (number), or padded forms are accepted.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
"Check whether a number is a valid network port (0-65535)" states a specific verb and resource plus the accepted range, so the operation is unambiguous. It does not differentiate itself from the many sibling validators (x402-is-ip, x402-is-numeric, x402-validate-*), but the name and range make the intent clear enough to select it without reading the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to choose this over closely related siblings such as x402-is-ip or x402-is-numeric, nor any prerequisite or exclusion. "Provide value" is an instruction about filling a field, not about tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.