Skip to main content
Glama

presupuestos.red

Preparar presupuesto nuevo

preparar_presupuesto_nuevo

Prepara nombre, moneda y un catálogo inicial opcional. Declara el costo directo unitario o la composición del APU. Pricing calcula el PU. Entrega reviewUrl al usuario para que revise y pulse Crear presupuesto en la web.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "currency": "<currency>",
      "context": "<context>"
    },
    "name": "preparar_presupuesto_nuevo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNombre del presupuesto nuevo.
contextYesA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
insumosNoCatálogo compartido de insumos referenciados por clave en la composición.
pricingNoFactores globales de la plantilla cd-ci-cf-u-v1, en puntos porcentuales. U: 10 significa 10 % de utilidad.
currencyYesCódigo de moneda, por ejemplo MXN.
partidasNoPartidas del presupuesto inicial, en orden.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / insumos
      Added value: +{
      +  "description": "Catálogo compartido de insumos referenciados por clave en la composición.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "claseParaBase": {
      +        "description": "Clase compatible con el grupo de costo para formar bases porcentuales.",
      +        "enum": [
      +          "eq",
      +          "he",
      +          "equipo_y_herramienta",
      +          "au",
      +          "otro"
      +        ],
      +        "type": "string"
      +      },
      +      "codigo": {
      +        "description": "Clave del insumo en su ámbito.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "costGroup": {
      +        "description": "Grupo de costo del insumo.",
      +        "enum": [
      +          "ma",
      +          "mo",
      +          "eq",
      +          "other"
      +        ],
      +        "type": "string"
      +      },
      +      "costoUnitario": {
      +        "description": "Costo unitario del insumo ordinario. Cero es válido.",
      +        "type": "number"
      +      },
      +      "descripcion": {
      +        "description": "Descripción del insumo.",
      +        "type": "string"
      +      },
      +      "metodoPorcentual": {
      +        "description": "Ordinario por defecto. Un cargo porcentual requiere su base.",
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "tipo": {
      +                "const": "ordinario",
      +                "description": "Insumo de costo unitario.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tipo"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "base": {
      +                "description": "Base del cargo porcentual.",
      +                "enum": [
      +                  "ma",
      +                  "mo",
      +                  "eq",
      +                  "he",
      +                  "au"
      +                ],
      +                "type": "string"
      +              },
      +              "tipo": {
      +                "const": "porcentual",
      +                "description": "Cargo valorado sobre una base de la matriz.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tipo",
      +              "base"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "unidad": {
      +        "description": "Unidad del insumo.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "codigo",
      +      "descripcion",
      +      "unidad",
      +      "costGroup"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / partidas
      Added value: +{
      +  "description": "Partidas del presupuesto inicial, en orden.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "codigo": {
      +        "description": "Clave de la partida.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "conceptos": {
      +        "description": "Conceptos dentro de esta partida, en orden.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cantidad": {
      +              "description": "Cantidad del concepto.",
      +              "type": "number"
      +            },
      +            "codigo": {
      +              "description": "Clave del concepto.",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "composicion": {
      +              "description": "Filas reales del APU. Omitir cuando sólo se conoce el costo directo.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "cantidad": {
      +                    "description": "Coeficiente de este renglón del APU.",
      +                    "type": "number"
      +                  },
      +                  "insumo": {
      +                    "description": "Clave de un insumo de esta propuesta.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "op": {
      +                    "description": "Multiplicar consumo o dividir por rendimiento.",
      +                    "enum": [
      +                      "*",
      +                      "/"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "insumo",
      +                  "cantidad",
      +                  "op"
      +                ],
      +                "type": "object"
      +              },
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "costoDirectoUnitario": {
      +              "description": "CD unitario declarado de esta ocurrencia.",
      +              "type": "number"
      +            },
      +            "descripcion": {
      +              "description": "Descripción propia del concepto.",
      +              "type": "string"
      +            },
      +            "unidad": {
      +              "description": "Unidad del insumo.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "codigo",
      +            "descripcion",
      +            "cantidad",
      +            "unidad"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "descripcion": {
      +        "description": "Descripción de la partida.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "codigo",
      +      "descripcion",
      +      "conceptos"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / pricing
      Added value: +{
      +  "additionalProperties": {
      +    "type": "number"
      +  },
      +  "description": "Factores globales de la plantilla cd-ci-cf-u-v1, en puntos porcentuales. U: 10 significa 10 % de utilidad.",
      +  "propertyNames": {
      +    "enum": [
      +      "CI",
      +      "CF",
      +      "U"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "currency": {
      +        "type": "string"
      +      },
      +      "expiresAt": {
      +        "description": "Vencimiento del intento pendiente en UTC.",
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "reviewUrl": {
      +        "description": "Enlace HTTPS de revisión para la cuenta que preparó la propuesta.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "prepared",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "name",
      +      "currency",
      +      "reviewUrl",
      +      "expiresAt"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "recoverable": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "const": "rejected",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "_mcp_instructions": {
      -    "description": "Server-issued metadata for this conversation.",
      -    "properties": {
      -      "conversation_id": {
      -        "description": "The server-issued conversation identifier.",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "code": {
      -    "type": "string"
      -  },
      -  "currency": {
      -    "type": "string"
      -  },
      -  "message": {
      -    "type": "string"
      -  },
      -  "name": {
      -    "type": "string"
      -  },
      -  "recoverable": {
      -    "type": "boolean"
      -  },
      -  "status": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "status"
      -]
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already mark this as a non-readonly, non-destructive, non-idempotent mutation, so the safety profile is covered. The description adds real value beyond that by disclosing that nothing is committed immediately: the call yields a reviewUrl and the user must press 'Crear presupuesto' in the web UI. It also explains that pricing computes the PU from the declared inputs, which is domain behavior not visible in the annotations. It does not warn about repeating the call given idempotentHint=false, a minor gap.

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?

Four short sentences, front-loaded with the payload it builds before the workflow outcome, with no filler. The tradeoff is density: acronyms (APU, PU, CD) appear without expansion, which costs a little clarity for a reader unfamiliar with the domain.

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

Completeness3/5

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

An output schema exists and schema coverage is complete, so return-value documentation is not required, and the human-approval step is captured. For an 8-parameter tool with deeply nested objects, however, the description stays terse on the catalog/partida relationship and does not state what a repeated call does, leaving an agent to derive model semantics from the schema alone.

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% and the nested insumos/partidas/pricing structures are documented field by field, so the baseline of 3 applies. The description adds light conceptual framing (declare CD unitario OR the APU composición; pricing derives the PU) but no format, ordering, or validation detail beyond what the schema already says.

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?

Names a concrete verb+resource (prepare a new budget) and enumerates what it assembles: name, currency, an optional initial catalog of insumos, and partidas whose conceptos carry either a declared costoDirectoUnitario or an APU composición. It is clearly a creation-stage tool, but it never names preparar_edicion_presupuesto or any sibling to make the boundary explicit, so the agent must infer the distinction from the verb alone.

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 sentence 'Entrega reviewUrl al usuario para que revise y pulse Crear presupuesto en la web' communicates the expected workflow: the agent prepares, then hands off to the human for confirmation. That is genuinely useful context, but there is no explicit statement of when to choose this over preparar_edicion_presupuesto or what preconditions are needed (existing account, prior abrir_presupuesto), leaving the selection decision implied rather than stated.

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