Skip to main content
Glama

Días hábiles y vencimientos

dias_habiles
Read-onlyIdempotent

Cuenta los días hábiles (lunes a viernes sin feriados nacionales) entre dos fechas, o suma N días hábiles a una fecha para calcular un vencimiento. Devuelve también los feriados que caen en el rango. Solo considera feriados nacionales: para feriados provinciales, días inhábiles judiciales o vencimientos de ARCA usá calendario_fiscal. Costo: gratis.

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_habiles"
  }
}

Input Schema

NameRequiredDescriptionDefault
desdeNoFecha inicial, YYYY-MM-DD. Por defecto hoy.
hastaNoFecha final (inclusive) para contar días hábiles
sumar_dias_habilesNoAlternativa: cuántos días hábiles sumar a `desde`

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / hasta / $ref
      Removed value: -"#/properties/desde"
    • addedInput schema / properties / hasta / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / hasta / type
      Added value: +"string"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive and closed-world, so the safety profile is covered. The description adds genuine context beyond that: the holiday scope limitation (national only), that holidays falling in the range are returned, and that the tool is free — though it says nothing about how local holidays or defaults interact.

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?

Three tight sentences: capability first, return content second, scope exclusion and alternative third. No filler or repetition of the title.

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 description partially compensates by stating that the in-range holidays are also returned, but it doesn't indicate the shape of the returned count/date, which would matter for a two-mode calculation tool.

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; the description goes further by framing 'sumar_dias_habiles' as an alternative mode to the desde/hasta counting mode, which clarifies the otherwise ambiguous mutual exclusivity of the three optional params.

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 concrete verb and resource ('Cuenta los días hábiles... entre dos fechas, o suma N días hábiles a una fecha') and explicitly defines what a business day means (Mon–Fri minus national holidays), so its behavior is distinguishable from any generic date utility.

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

Usage Guidelines5/5

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

Gives explicit when-not guidance: for provincial holidays, judicial non-business days, or ARCA deadlines it names the alternative 'calendario_fiscal'. It also notes the tool is free, which is a useful selection signal in this catalog.

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.

Resources