Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

export

Save a past pull as a CSV or Excel file on your machine by rerunning its stored SQL and writing every row; returns the file path.

Instructions

Export a past pull to a file on the user's machine: format 'csv' or 'xlsx' (Excel). Runs the pull's stored SQL again and writes every row; you get only the file's path.

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": {
      "pull_id": "<pull_id>"
    },
    "name": "export"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNocsv
pull_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the key non-obvious behaviors — the pull's stored SQL is re-executed (so results are freshly computed, with the attendant cost/time) and every row is written without truncation. It also states the return contract explicitly (only the file path, not the data). It stops short of permissions, error, or overwrite behavior.

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?

A single front-loaded sentence with the verb and output first, then a colon-delimited specification of formats, execution semantics, and return value. 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 two-parameter tool with no output schema and no annotations, the description covers purpose, side effects, format options, and the return value. The remaining gaps are secondary: error conditions, whether an existing file is overwritten, and how to source a pull_id.

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 coverage is 0%, so the description must compensate, and it largely does: it names the two format values 'csv' or 'xlsx' (and labels xlsx as Excel) and characterizes pull_id as referencing a past pull whose stored SQL is re-run. It does not say where to obtain a valid pull_id or whether the format value is case-sensitive.

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 (export a past pull to a file on the user's machine), plus the concrete output artifact and supported formats. An agent can tell this is a file-producing export of an existing pull, distinguishing it from reporting or data-returning siblings.

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 implied rather than stated: it operates on a 'past pull' that must already exist, and it re-runs stored SQL, which hints at when it applies. There is no explicit when-not-to-use guidance, no mention of alternatives for getting data in another form, and no prerequisites spelled out.

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