Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

add_source

Connect SQLite, CSV, Excel, Postgres, or MySQL data sources for read-only querying while keeping database passwords out of chat and in the system keychain.

Instructions

Connect a source; adding a name again replaces it. The file kinds take path, the file's location, and are added only once the user says yes themselves (Portward asks them): 'sqlite' a SQLite file, 'csv' a CSV file (one table named after the file), 'excel' an .xlsx workbook (one table per sheet). 'postgres' and 'mysql' take host, port, database and user, never a password: the user types the password themselves where you can't see it, and it goes straight to the computer's keychain. Never ask for a password or connection string in the chat.

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": {
      "name": "<name>",
      "kind": "<kind>"
    },
    "name": "add_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
kindYes
nameYes
pathNo
portNo
userNo
databaseNo

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, the description carries the full burden and does so well: re-adding a name replaces the existing entry, file kinds require the user's own confirmation, and passwords are never accepted in chat but typed by the user into the keychain. Missing are what happens on invalid credentials/duplicate connections and whether the connection is validated on add.

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?

Front-loaded with the core action, then organized by source kind. Dense but nearly every clause carries operational information; the parenthetical "(Portward asks them)" and repeated password warnings are slightly redundant but justified by the security constraint.

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 7-parameter mutation tool with no annotations and no output schema, the description covers consent flow, credential handling, per-kind parameter mapping, and replacement semantics. Remaining gaps are return/validation behavior, which are lower risk given the descriptive coverage provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates by mapping every parameter to a kind family: `name`, `path` for file kinds, and `host`/`port`/`database`/`user` for postgres and mysql, plus the note that no password parameter exists. It does not explain the port's dual string/integer type or allowed `kind` values as a strict enumeration.

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+resource ("Connect a source") and then enumerates the source kinds ('sqlite', 'csv', 'excel', 'postgres', 'mysql'), so an agent knows exactly what the tool creates. It does not explicitly point away from siblings like test_source or describe_source, so it falls short of 5.

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 clear per-kind usage rules: file kinds take `path`, database kinds take host/port/database/user, and file sources require the user's explicit yes first. It lacks an explicit statement of when not to use it (e.g. to test or describe an already-added source), so no exclusion guidance.

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