Skip to main content
Glama

Dias úteis

dias_uteis
Read-onlyIdempotent

Calculates Brazilian business-day deadlines by excluding weekends and national or state holidays. Count business days between two dates or find the date after a given number of business days.

Instructions

Faz contas de prazo em dias úteis, descontando sábados, domingos e feriados nacionais (e estaduais, com a UF). Dois usos: (1) informe fim para contar quantos dias úteis há entre inicio e fim; (2) informe dias para saber em que data cai o prazo de N dias úteis a partir de inicio. Regra de prazo: o dia de início não conta, o último dia conta. Feriados municipais não são considerados.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dias_uteis"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla do estado (ex.: RS). Com ela entram também os feriados estaduais.
fimNoData final, para contar os dias úteis do período.
diasNoQuantidade de dias úteis a somar a partir do início.
inicioNoData inicial em AAAA-MM-DD ou DD/MM/AAAA. Se omitida, hoje (horário de Brasília).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's job is domain semantics — and it delivers the decisive one: the counting convention ('o dia de início não conta, o último dia conta'), which is precisely where date-deadline tools are ambiguous. It also scopes holiday coverage (national always, state only with UF, municipal never), which the annotations say nothing about.

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?

Purpose first, then the two modes in a parallel numbered structure, then the counting rule and the holiday limitation. Every clause carries independent information; nothing is restated from the schema.

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?

With no output schema, the agent is left to infer the return shape (a count versus a date) from the mode descriptions — inferable but not stated. Otherwise complete: defaults, holiday scope, and the inclusive/exclusive counting convention are all covered.

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

Parameters4/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, but the description earns extra by binding parameters to modes: `fim` for counting, `dias` for projecting, `uf` for state holidays. It complements rather than repeats the schema field descriptions.

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?

States a specific verb and resource ('Faz contas de prazo em dias úteis') and immediately distinguishes the two operations the tool performs. An agent reading only the first sentence plus the two numbered uses knows exactly what the tool computes, without touching 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 Guidelines4/5

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

Explicitly enumerates the two usage modes and the parameter that selects each ('informe `fim`...' / 'informe `dias`...'), plus an exclusion ('Feriados municipais não são considerados'). It does not point to the sibling 'feriados' tool when a holiday listing would be the better call, so it stops short of full alternative routing.

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