Skip to main content
Glama

presupuestos.red

Simula un escenario económico

simular_cambios_presupuesto
Read-onlyIdempotent

Calcula una hipótesis sin modificar ni guardar el presupuesto; funciona sin login. scenario.kind=budget-changes combina cambios de cantidades, precios de recursos y coeficientes en un solo presupuesto y recalcula todos los conceptos y cargos. resource-price y matrix-coefficient afectan todos los usos compartidos. Usa los IDs y valores vigentes: expectedPrice es el costo del catálogo, no el costo calculado de una matriz; matrixCatalogId/itemIndex identifican su renglón. Devuelve el impacto conjunto; includeConceptEffects añade desglose. kind=coefficient limita la hipótesis a una occurrence de un concepto y no equivale a editar globalmente su matriz; exclude-concepts calcula exclusiones del alcance indicado. Alternativas se simulan por separado, nunca se suman. Usa el contexto del presupuesto abierto. El acceso depende de la cuenta propietaria, de que el documento sea público o del enlace de lectura vigente. No guarda cambios ni emite una opinión profesional.

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": {
      "scenario": "<scenario>",
      "presupuestoId": "<presupuestoId>",
      "version": "<version>"
    },
    "name": "simular_cambios_presupuesto"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYesNúmero de la revisión publicada que quieres consultar. Usa el que acompaña al presupuesto en el contexto del visor.
scenarioYesHipótesis económica que quieres probar sobre los datos vigentes del presupuesto.
presupuestoIdYesIdentifica el documento. Tómalo del contexto que devuelve el visor al importar o abrir el presupuesto.
readSharePathNoEnlace que da acceso de lectura a un presupuesto compartido. Para un documento privado compartido, toma este valor del contexto con el que lo abriste.
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.
includeConceptEffectsNoIncluye el desglose por concepto afectado del escenario conjunto.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description still adds value beyond them by naming access conditions (owner account, public document, or valid read link), reiterating that nothing is saved, and disclaiming that it issues no professional opinion. That is meaningful context, but return shape and failure behavior are left to the output schema.

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?

Front-loaded with the non-mutating promise, and every clause carries information about a distinct scenario kind. The trade-off is density: several rules are compressed into telegraphic fragments ('Alternativas se simulan por separado, nunca se suman') that are terse to the point of near-opacity for a model parsing at speed.

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

Completeness5/5

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

For a tool with four polymorphic scenario shapes plus 6 top-level parameters, the description supplies the selection logic, the ID/provenance rules for expected* fields, the access model, and the explicit no-side-effect guarantee, while an output schema handles return values and annotations handle safety. Nothing an agent needs in order to choose a scenario kind and assemble valid inputs is missing.

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 already 100%, yet the description resolves the one ambiguity the schema cannot: 'expectedPrice es el costo del catálogo, no el costo calculado de una matriz', and it explains that matrixCatalogId/itemIndex locate a specific row. It also clarifies that includeConceptEffects adds a per-concept breakdown and that exclude-concepts works on the stated scope. It does not mention dataFingerprint staleness handling or readSharePath usage, which the schema alone must carry.

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 ('Calcula una hipótesis') plus the crucial scope limit ('sin modificar ni guardar el presupuesto; funciona sin login'), which immediately separates it from the mutation siblings such as aplicar_edicion_presupuesto. It also enumerates the four scenario shapes the tool handles, so an agent knows exactly what class of computation it gets.

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?

Gives real routing guidance: kind=budget-changes for combined effects, kind=coefficient restricted to a single occurrence and explicitly 'no equivale a editar globalmente su matriz', exclude-concepts for scope exclusions, and 'Alternativas se simulan por separado, nunca se suman'. It also says to use the open budget context. What it never states is the inverse case — when to abandon simulation and call the actual edit tool — so it stops short of full when/when-not coverage.

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