Skip to main content
Glama
afialho

MCP Dev Tools

by afialho

date_utils

Generate, validate, convert, calculate, format, and analyze dates, times, and timestamps. Handles time zones, ranges, business days, ages, and recurring sequences.

Instructions

Utilitários completos para datas, horários e timestamps - Geração, validação, conversão, cálculos, formatação e análise

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tipoNoTipo de geração (apenas para operação gerar)
datasNoLista de datas para validar/converter/formatar/analisar
valorNoValor para adicionar/subtrair
idiomaNoIdioma para formatação (pt-BR, en-US)pt-BR
formatoNoFormato de apresentaçãoiso
unidadeNoUnidade para cálculos de diferença/adição/subtraçãodias
data_fimNoData de fim para geração aleatória ou sequência (YYYY-MM-DD)
operacaoYesOperação: gerar datas/timestamps, validar formatos, converter entre formatos/fusos, calcular diferenças/idades, formatar apresentação, analisar informações
quantidadeNoQuantidade de datas/horários para gerar
data_inicioNoData de início para geração aleatória ou sequência (YYYY-MM-DD)
data_maximaNoData máxima para validação de intervalo (YYYY-MM-DD)
data_minimaNoData mínima para validação de intervalo (YYYY-MM-DD)
fuso_origemNoFuso horário de origem (ex: UTC, America/Sao_Paulo)UTC
horario_fimNoHorário de fim (HH:mm)23:59
fuso_destinoNoFuso horário de destinoAmerica/Sao_Paulo
fuso_horarioNoFuso horário para operaçõesAmerica/Sao_Paulo
incluir_horaNoIncluir horário na formatação
tipo_analiseNoTipo de análise a realizarcompleta
tipo_calculoNoTipo de cálculo a realizar
formato_saidaNoFormato de saída para resultadosiso
formato_origemNoFormato de origem para conversãoauto
horario_inicioNoHorário de início (HH:mm)00:00
intervalo_diasNoIntervalo em dias para sequências
tipo_conversaoNoTipo de conversão a realizarformato
tipo_validacaoNoTipo de validação a realizarformato
data_nascimentoNoData de nascimento para cálculo de idade (YYYY-MM-DD)
formato_destinoNoFormato de destino para conversãoiso
intervalo_horasNoIntervalo em horas para sequências de horário
formato_esperadoNoFormato esperado para validaçãoauto
incluir_feriadosNoIncluir feriados nos cálculos
incluir_segundosNoIncluir segundos na formatação
apenas_dias_uteisNoGerar apenas dias úteis (segunda a sexta)
incluir_astronomiaNoIncluir informações astronômicas (fases da lua, estações)
formato_customizadoNoPadrão customizado (ex: DD/MM/YYYY HH:mm:ss)
incluir_fins_semanaNoIncluir fins de semana nos cálculos
incluir_milissegundosNoIncluir milissegundos no timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing: no indication of side effects (implicitly read-only but unstated), no output/return shape, no auth or rate-limit context. It only lists operation categories, which the schema already conveys.

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?

A single sentence with no waste, front-loading the resource before the operation list. It is efficient, though the trailing enumeration is somewhat list-like rather than informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 36-parameter mega-tool with six distinct operations, no annotations, and no output schema, the definition is far too thin. It omits operation-to-parameter mapping, return formats, and sibling disambiguation that an agent would need to call it correctly.

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% across all 36 parameters, so the schema already documents each field, its enum, defaults, and formats. The description adds no parameter-level meaning beyond what the schema provides, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (dates, times, timestamps) and enumerates the six operation families it covers (generation, validation, conversion, calculation, formatting, analysis), which maps cleanly onto the 'operacao' enum. It is clear what the tool does, but it does not differentiate itself from overlapping siblings such as calcular_idade or competencia_utils, which also deal with date computation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance at all; the agent must infer selection from the 'operacao' enum values alone. Crucially, it never mentions that calcular_idade exists as a sibling for age calculation or when this general utility should be preferred over it.

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