Skip to main content
Glama
msweeney-pnnl

eplusout-mcp

execute_multiline_pandas_on_timeseries

Run multi-line pandas code on EnergyPlus timeseries data to compute custom analyses like monthly peaks or hourly patterns.

Instructions

Execute multi-line pandas code on timeseries data from an EnergyPlus model.

Retrieves timeseries data for a specific variable and executes multi-line pandas code on it. The dataframe is available as 'df' in your code. Use 'result = ...' to return values.

Args: model_id: The model_id of the EnergyPlus model (obtain from get_available_models). rddid: List of RDD IDs for the desired variables (obtain from get_sql_available_hourlies). code: Multi-line Python code to execute

Returns: String representation of the result or execution status.

Examples: # Complex analysis with multiple steps code = ''' df['hour'] = df['dt'].dt.hour df['month'] = df['dt'].dt.month monthly_peaks = df.groupby('month')['Value'].max() result = monthly_peaks ''' execute_multiline_pandas_on_timeseries(model_id, rddid, code)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
rddidYes
model_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the return behavior ('String representation of the result or execution status') and explains the execution mechanism (code runs against a dataframe bound to 'df'). However, this is an arbitrary code execution tool and the description offers no safety caveat, no error-handling notes, and no warning about what the execution environment permits. The core behavior is disclosed, but meaningful behavioral context for a code-execution tool is missing.

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?

The description is front-loaded with its purpose and stays efficient. The included code example is substantial but earns its space by demonstrating real multi-step usage of df, groupby, and result assignment. Every sentence serves a purpose, though the example adds length that could be trimmed for brevity without losing value.

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 code-execution tool with zero annotations and an output schema (string return), the description covers purpose, all three parameters, return format, and a concrete example. Gaps remain in error/timeout behavior and safety considerations for arbitrary code, but the essential calling contract is fully specified. The complexity of this tool is high, and the description handles most of it well.

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

Parameters5/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 fully compensate, and it does. Each parameter is given meaning beyond its schema entry: model_id is tied to get_available_models, rddid is clarified as a list of RDD IDs obtained from get_sql_available_hourlies, and code is explained with the df/result conventions plus a worked example. All three parameters are effectively documented despite the empty 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 uses a specific verb ('Execute') with a clear resource ('multi-line pandas code on timeseries data from an EnergyPlus model'). It distinguishes itself from sibling tools like execute_pandas_on_timeseries (single-line) and execute_multiline_pandas_on_html_table (multi-line on HTML tables) by specifying both the multiline and timeseries dimensions. An agent can identify this tool's purpose without opening the schema.

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?

The description explains how to use the tool mechanically (df variable, 'result = ...' to return values) and points to sibling tools for obtaining parameters (model_id from get_available_models, rddid from get_sql_available_hourlies). However, it never explicitly contrasts this tool with its close siblings — it does not say when to prefer multiline over single-line pandas execution or timeseries over HTML table variants. The usage context is present but exclusions/alternatives are left to inference.

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