Skip to main content
Glama

TinyFn

validate_ip_2

Validate if a string is a valid IP address.

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": {
      "ip": "<ip>"
    },
    "name": "validate_ip_2"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIP address to validate

Output Schema

NameRequiredDescriptionDefault
ipYes
validYes
is_ipv4Yes
is_ipv6Yes
versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / $defs / ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"ValidateIPResponse"New value: +"app__routers__ip_utils__ValidateIPResponse"
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__ip_utils__ValidateIPResponse"New value: +"ValidateIPResponse"
  3. Changed3 schema fields changed
    • removedOutput schema / $defs / ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"ValidateIPResponse"New value: +"app__routers__ip_utils__ValidateIPResponse"
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__ip_utils__ValidateIPResponse"New value: +"ValidateIPResponse"
  5. Changed3 schema fields changed
    • removedOutput schema / $defs / ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"ValidateIPResponse"New value: +"app__routers__ip_utils__ValidateIPResponse"
  6. Changed3 schema fields changed
    • addedOutput schema / $defs / ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__ip_utils__ValidateIPResponse"New value: +"ValidateIPResponse"
  7. Changed3 schema fields changed
    • removedOutput schema / $defs / ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"ValidateIPResponse"New value: +"app__routers__ip_utils__ValidateIPResponse"
  8. Changed3 schema fields changed
    • addedOutput schema / $defs / ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__ip_utils__ValidateIPResponse"New value: +"ValidateIPResponse"
  9. Changed3 schema fields changed
    • removedOutput schema / $defs / ValidateIPResponse
      Removed value: -{
      -  "properties": {
      -    "ip": {
      -      "title": "Ip",
      -      "type": "string"
      -    },
      -    "is_ipv4": {
      -      "title": "Is Ipv4",
      -      "type": "boolean"
      -    },
      -    "is_ipv6": {
      -      "title": "Is Ipv6",
      -      "type": "boolean"
      -    },
      -    "valid": {
      -      "title": "Valid",
      -      "type": "boolean"
      -    },
      -    "version": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "title": "Version"
      -    }
      -  },
      -  "required": [
      -    "ip",
      -    "valid",
      -    "is_ipv4",
      -    "is_ipv6"
      -  ],
      -  "title": "ValidateIPResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__ip_utils__ValidateIPResponse
      Added value: +{
      +  "properties": {
      +    "ip": {
      +      "title": "Ip",
      +      "type": "string"
      +    },
      +    "is_ipv4": {
      +      "title": "Is Ipv4",
      +      "type": "boolean"
      +    },
      +    "is_ipv6": {
      +      "title": "Is Ipv6",
      +      "type": "boolean"
      +    },
      +    "valid": {
      +      "title": "Valid",
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Version"
      +    }
      +  },
      +  "required": [
      +    "ip",
      +    "valid",
      +    "is_ipv4",
      +    "is_ipv6"
      +  ],
      +  "title": "ValidateIPResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"ValidateIPResponse"New value: +"app__routers__ip_utils__ValidateIPResponse"
  10. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are present, so the description must carry the full burden. It does not disclose what constitutes 'valid' (e.g., IPv4 only, IPv6, both), the return format, or any edge cases. This is inadequate for understanding tool behavior.

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 a single concise sentence with no wasted words. It is front-loaded and easy to parse, but it could be more informative while remaining concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity and presence of an output schema, the description lacks completeness. It does not differentiate from siblings, provide usage context, or clarify validation scope, leaving gaps for an AI agent.

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 coverage is 100%, and the parameter description in the schema is sufficient. The tool description adds no extra semantic meaning beyond what is in the schema, 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 clearly states the tool validates if a string is a valid IP address (verb+resource). However, it does not distinguish this tool from the sibling tool 'validate_ip', which likely has similar functionality.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like 'validate_ip'. There is no mention of when not to use it or under what conditions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.