Skip to main content
Glama

validate_jdbc_url

Parse a JDBC URL for MySQL, PostgreSQL, Oracle, or SQL Server to extract host, port, and database, plus security warnings. Validates connection strings offline without connecting.

Instructions

Parse a JDBC URL for MySQL, PostgreSQL, Oracle or SQL Server. Returns host, port, database and security warnings. OFFLINE - never connects to the database.

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": {
      "url": "<url>"
    },
    "name": "validate_jdbc_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

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?

With no annotations provided, the description carries the full burden, and it discloses the most important behavioral trait: it never opens a connection to the database, which an agent could not otherwise know and which rules out network side effects or auth requirements. It also enumerates the return fields, host, port, database and security warnings; the remaining gap is what happens on a malformed or unsupported URL (error vs. partial result), which is left unspecified.

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 clauses, front-loaded with the verb and resource, then outputs, then the safety constraint. No filler and nothing buried.

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?

For a one-parameter, annotation-free tool with no output schema, the description covers the two things that matter most: what comes back (host, port, database, warnings) and that no live connection is made. Only error/validation semantics for bad input are missing, a modest gap for a static parser.

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?

The single parameter has 0% schema description coverage, so the description must compensate: it names the accepted dialects and implies the URL must contain host, port and database components, which does constrain expected input format. It still does not say whether embedded credentials, connection properties, or dialect-specific syntax are tolerated, so meaningful ambiguity remains for the only input.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (parse a JDBC URL) plus the exact supported dialects, MySQL, PostgreSQL, Oracle and SQL Server. It also names the extracted fields and the non-obvious output element, security warnings, so an agent knows precisely what the call produces; none of the listed siblings overlap with this purpose.

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 only implied: the tool is for parsing/validating a JDBC URL, and the OFFLINE note makes clear it is a safe static inspection rather than a connectivity test. There is no explicit statement of when to prefer this over other checks, nor any exclusion, but the narrow scope makes the intent reasonably inferable.

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