Skip to main content
Glama

extract_point_timeseries

Extracts nearest-pixel monthly time series from NetCDF files, writing a CSV with year, month, date, and variable columns for soil moisture index (SMI) calculation.

Instructions

Extracts the nearest-pixel monthly time series from a downloaded NetCDF file and writes it as a CSV with columns year,month,date,. This CSV is the expected input format for the calculate-smi skill.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude of the target point (degrees north).
lonYesLongitude of the target point (degrees east).
filepathYesPath to the source NetCDF file (e.g., output of fetch_era5_land_soil_moisture).
variableNoVariable name to extract. If omitted and the file has exactly one data variable, that one is used automatically. Example: extract_point_timeseries('data/raw/era5land_sm_layer1_1950_2020.nc', 50.9, 6.4, 'data/processed/juelich_sm_layer1.csv')
output_csvYesPath to write the output CSV (e.g., 'data/processed/point_sm.csv').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses the extraction method (nearest-pixel), temporal resolution (monthly), and output format. However, it does not mention overwrite behavior, error handling, or explicit file existence prerequisites beyond 'downloaded', leaving some gaps in side-effect transparency.

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 two sentences, front-loaded with the main action, and includes a purposeful reference to the downstream skill. Every sentence contributes, with no fluff or redundancy.

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?

The description, combined with the high schema coverage and presence of an output schema, gives sufficient context for correct usage. It explains the exact CSV format and ties to the calculate-smi skill. Minor gaps like multi-variable handling are already addressed by the schema's optional variable parameter and examples.

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 schema has 100% coverage for all parameters with clear descriptions, so the baseline is 3. The description adds context about the output columns and nearest-pixel selection, but it does not elaborate on parameter specifics beyond what the schema already provides. Thus, minimal added value over the schema.

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 clearly states a specific action (extracts nearest-pixel monthly time series) and a specific output (CSV with columns year,month,date,<variable>). It distinguishes itself from sibling fetch/inspect tools by operating on a downloaded NetCDF file and producing a CSV, making its purpose unambiguous.

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 implies it should be used after a NetCDF file is downloaded and its output is intended for the calculate-smi skill. It does not explicitly exclude other tools, but given the sibling tools are fetching or inspecting, the context is clear. It lacks direct alternative naming but provides sufficient contextual workflow guidance.

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

Install Server

Other Tools

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/leandroavl/SMI_mcp'

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