Skip to main content
Glama
jarvislee90s-dot

local-datasource

align_series

Merge multiple CSV files by date into a single wide table, with options for forward-filling and resampling to weekly or monthly periods. Outputs the combined result as a CSV.

Instructions

把本库产出的多份 CSV 按日期对齐合并成一张宽表(默认各取 close 列),支持并集/交集、前向填充、重采样到周(周五)/月(取期末交易日);纯本地计算,不联网。输出写入 file_path 为 CSV。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fillNoForward-fill value columns after join (leading NaN stays NaN)none
alignNoJoin on date: outer (union, missing = NaN) or inner (intersection)outer
namesNoOutput column name per input file, aligned with file_paths; default file name stem
columnsNoValue column per input file, aligned with file_paths; default close for each
resampleNoPer-series resample before join: week (W-FRI) or month; keeps each period's last actual trading daynone
file_pathYesOutput CSV file path
file_pathsYesInput CSV paths (>= 2) produced by this library; first column must be date/datetime/日期

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It does disclose local computation, no network access, and output written to file_path as CSV. However, it does not disclose whether an existing output file is overwritten or whether input files are strictly read-only.

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?

The description is a single dense sentence that front-loads the core purpose, then efficiently enumerates options and side effects. Every clause adds useful information, with no filler or repetition of the schema.

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 tool with no annotations and no output schema, the combination of description and schema covers the input constraints, alignment modes, fill behavior, resampling, defaults, and output path. The main residual gap is overwrite behavior, which is minor.

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 100%, so the baseline is 3. The description reinforces defaults like close, union/intersection, forward-fill, and weekly/monthly resampling, but these are essentially also carried by the input schema. It adds little beyond what the schema already provides.

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?

The description states the exact operation: aligning multiple library-produced CSVs by date into one wide table, with a default value column of close. This clearly differentiates it from the query_* sibling tools and from the raw name alone.

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?

The description specifies when to use it: on CSV files produced by this library, with pure local computation and no network access. It does not name alternatives explicitly or list exclusion rules, but the scope is clear enough to route an agent correctly.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarvislee90s-dot/local-datasource'

If you have feedback or need assistance with the MCP directory API, please join our Discord server