Skip to main content
Glama

Validar expresión cron

validar_cron

Calcula las próximas ejecuciones reales de una expresión cron usando cron-parser (no una suposición del modelo sobre cuándo dispararía). Interpreta los campos en UTC para que el resultado no dependa de la zona horaria del servidor que corre la tool. Cuesta $0.02 USDC (Base) por llamada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoCantidad de próximas ejecuciones a devolver. Default 5, máximo 20.
from_dateNoFecha ISO 8601 desde la cual calcular las próximas ejecuciones (ej: "2026-08-07T00:00:00Z"). Si se omite, se usa el momento actual.
cron_expressionYesExpresión cron estándar de 5 campos (minuto hora día-mes mes día-semana), 6 con segundos, o un atajo como "@daily". Ej: "0 9 * * 1-5" = 9am de lunes a viernes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorYesMensaje de error si valid_expression es false; null si es válida.
next_executionsYesFechas ISO 8601 en UTC de las próximas ejecuciones, en orden cronológico.
valid_expressionYesfalse si la expresión cron no es válida.

TDQS

A4/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 of behavioral disclosure. It discloses that it uses cron-parser for real calculations (not model guesses), interprets fields in UTC for deterministic results, and costs $0.02 USDC per call. These are meaningful behavioral details, though error handling and edge cases are not covered.

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 three sentences, front-loaded with the core function, then adds parser details, UTC handling, and cost. Every sentence provides distinct value with no redundancy or fluff, making it highly concise and well-structured.

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?

Given an output schema exists, the description does not need to explain return values. It covers the tool's purpose, calculation method, timezone behavior, and cost, which is quite complete for a simple computation tool. However, it lacks explicit usage guidelines and error behavior, preventing a perfect score.

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 coverage is 100%, so the baseline is 3. The description adds context about UTC interpretation and cron-parser usage, which indirectly informs how parameters like cron_expression and from_date behave, but it does not add explicit parameter-level semantics beyond 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 the tool calculates the next real executions of a cron expression using cron-parser, which is a specific verb+resource. It distinguishes itself from sibling tools (validar_regex, validar_sql) by focusing on cron expressions and their execution timing, not just regex or SQL validation.

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 implies usage by explaining it computes next executions and uses a real parser, but it does not explicitly state when to use this tool vs alternatives or provide exclusions. The UTC timezone note and cost hint at appropriate contexts, but no direct comparison to siblings is given, so guidance is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a completely different domain: cron expressions, regular expressions, and SQL queries. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow the same 'validar_' prefix followed by the target domain (cron, regex, sql). This creates a clear and predictable pattern.

Tool Count5/5

With exactly three tools for three distinct validation areas, the count is well-scoped and each tool justifies its existence.

Completeness5/5

The server fully covers the stated purpose of validating cron, regex, and SQL. Each tool provides meaningful execution and results, leaving no obvious gaps.