Skip to main content
Glama

datetime_filter

Filter rows by a datetime range using ISO start and end dates. Subset data to a specific time period, with open-ended ranges when an endpoint is omitted.

Instructions

Filter rows by datetime range. Start/end as ISO strings (e.g., '2024-01-01'). Leave start or end empty for open-ended range. Subset data to a specific time period. WARNING: modifies in-place. Use copy_dataframe first if you need the full date range later. Example: datetime_filter(column="date", start="2024-01-01", end="2024-06-30")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
startNo
columnYes
df_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full transparency burden. It explicitly warns 'modifies in-place' and advises using `copy_dataframe` first, which is a critical behavioral disclosure. It also explains the open-ended range behavior, but does not cover edge cases like invalid column names or inclusivity of the range.

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 concise and well-structured: purpose, parameter details, warning, and example. The sentence 'Subset data to a specific time period' is somewhat redundant with the first sentence, but the overall organization is effective.

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 covers the core purpose, parameter behavior, in-place mutation, and includes an example. Given an output schema exists, return values need not be explained. However, the unexplained `df_name` parameter and missing details about validation or inclusivity create minor gaps.

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 explains the format and semantics of `start` and `end` (ISO strings, open-ended) and gives an example for `column`. However, `df_name` is completely ignored, and the `column` parameter is only demonstrated, not explicitly defined.

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 'Filter rows by datetime range', using a specific verb and resource. It distinguishes itself from the generic sibling `filter_rows` by specifying the datetime-range scope.

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?

Provides clear usage context: explains open-ended ranges by leaving start/end empty, and includes a concrete example. However, it does not explicitly mention when not to use this tool or mention alternatives such as `filter_rows`.

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/AstyanM/mcp-data-science'

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