Skip to main content
Glama

export_query

Run read-only SELECT queries on WRDS without row limits and save results to CSV, Parquet, or Excel. Returns the file path, row count, and columns.

Instructions

Run a read-only SELECT with no row limit and save it to the output folder (default ~/wrds-data). fmt: csv, parquet or xlsx. Returns the path, row count and columns; a 5-row preview is included only for AI-allowed sources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fmtNocsv
sqlYes
filenameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 reasonably well: it discloses read-only semantics, that no row limit is applied, the default output location, accepted formats, and that a 5-row preview is granted only for AI-allowed sources. It omits overwrite behavior, permission requirements, and whether the filename needs an extension.

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?

Three compact sentences, front-loaded with the core action. The 'fmt: csv, parquet or xlsx' fragment is terse but slightly choppy against the prose around it.

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?

An output schema exists, so return values need not be described, yet the description still summarizes them (path, row count, columns) without harm. Remaining gaps are minor operational details such as overwrite behavior and filename format conventions.

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 description coverage is 0%, so the description must compensate. It adds value for `fmt` by enumerating csv, parquet, and xlsx, and clarifies `sql` is a read-only SELECT, but `filename` gets no guidance (path vs. name, extension handling) beyond the default folder mention.

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 gives a specific verb and resource: run a read-only SELECT and save the result to a file. It implies the distinction from the sibling `query` tool by emphasizing persistence to the output folder and no row limit, but it never names `query` explicitly, so the differentiation is inferred rather than stated.

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 ('no row limit', 'save it to the output folder') which suggests this is for large result sets the agent wants persisted, but it never states when to use this over `query` or `check_availability`. No exclusions or prerequisites are given.

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