Skip to main content
Glama
edwin042331-hue

dgcp-mcp-server

Calculadora Normativa DGCP: Umbrales, Garantías y Alertas de Ilegalidad

dgcp_calculadora_legal
Read-onlyIdempotent

Calculates exact legal obligations under Ley 340-06 for a procurement budget: determines required modality, detects improper splitting, and computes guarantee amounts, advance limits, and deadlines.

Instructions

Calcula las obligaciones legales exactas bajo la Ley 340-06 para cualquier presupuesto:

  1. Determina la modalidad de contratación legal obligatoria (LPN, Comparación de Precios, Compra Menor, etc.).

  2. Detecta FRACCIONAMIENTO o uso de modalidad incorrecta por parte de la institución contratante (causal de impugnación).

  3. Calcula con precisión de centavos:

    • Garantía de Seriedad de Oferta (1%).

    • Garantía de Fiel Cumplimiento (4% General o 1% MIPYME con Decreto 416-23).

    • Anticipo Máximo Legal (20%).

  4. Indica plazos mínimos legales de convocatoria y recepción de ofertas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
es_mipymeNotrue si la empresa oferente cuenta con certificación MIPYME del MICM
tipo_objetoNoTipo de contratación: 'bienes_servicios' u 'obras'bienes_servicios
monto_estimadoYesMonto estimado del proceso en pesos dominicanos (DOP).
modalidad_planteadaNoModalidad utilizada por la institución para validar si es correcta o si incurre en fraccionamiento.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the full safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is low. The description adds genuine context: it is a deterministic legal computation producing illegality warnings ('detecta FRACCIONAMIENTO') and cent-precision figures grounded in Ley 340-06 and Decreto 416-23, which tells the agent what kind of result to expect.

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?

Purpose is front-loaded in the opening clause, then a numbered list maps cleanly onto distinct outputs with no filler. It is somewhat long, but each enumerated item (modality, illegality detection, the three guarantee types, deadlines) carries independent information.

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?

There is no output schema, so the description must convey return content; it does so by enumerating the four result categories including specific percentages and the statutory basis. It stops short of describing the output structure or units (though DOP is implied by the schema), leaving a small gap for a computation 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 description coverage is 100%, so baseline is 3. The description adds value by tying parameters to behavior: es_mipyme is linked to the 1% vs 4% Fiel Cumplimiento rate, monto_estimado frames the Ley 340-06 thresholds, and modalidad_planteada is explained as the input used to validate correctness or detect fraccionamiento.

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+resource ('calcula las obligaciones legales exactas bajo la Ley 340-06') and enumerates the four concrete outputs (modalidad, fraccionamiento, garantías, plazos). This clearly distinguishes it from the buscar_*, generador_* and simulador_* siblings, which retrieve, generate, or score rather than compute obligations.

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?

The description gives clear context for when the tool applies ('para cualquier presupuesto') and enumerates the situations it covers: validating modality, detecting fractionamiento as a causal de impugnación, and deriving guarantees/deadlines. It does not, however, name alternatives or exclusions relative to overlapping siblings such as dgcp_auditor_pliego_trampa or dgcp_generador_recurso_impugnacion, so routing still requires inference.

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