Skip to main content
Glama

presupuestos.red

Vincular a mi cuenta

vincular_presupuesto
DestructiveIdempotent

Vincula explícitamente el presupuesto público reclamable por ID a la cuenta autorizada. First-wins: otra cuenta puede haberlo vinculado antes. Conserva versiones, datos y originales; revoca el enlace compartido. Repetir para el mismo propietario es seguro.

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

Input Schema

NameRequiredDescriptionDefault
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.
versionYesVersión abierta; se conserva al vincular.
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.
accountKeyNoCuenta que inició la vinculación en el visor.
presupuestoIdYesID del documento que el usuario decidió vincular.
readSharePathNoEnlace de lectura del presupuesto abierto.
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. Changed2 schema fields changed
    • addedInput schema / properties / accountKey
      Added value: +{
      +  "description": "Cuenta que inició la vinculación en el visor.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • addedInput schema / properties / readSharePath
      Added value: +{
      +  "description": "Enlace de lectura del presupuesto abierto.",
      +  "maxLength": 120,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedOutput schema / $defs / __schema0 / maxLength
      Added value: +120
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "context": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "dataFingerprint": {
      -            "$ref": "#/$defs/__schema0"
      -          },
      -          "presupuestoId": {
      -            "$ref": "#/$defs/__schema0"
      -          },
      -          "readSharePath": {
      -            "$ref": "#/$defs/__schema0"
      -          },
      -          "version": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "presupuestoId",
      -          "version",
      -          "dataFingerprint"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "ok",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "context"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "recoverable": {
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "const": "rejected",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code",
      -      "recoverable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "context": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "editsRevision": {
      +            "description": "Revisión de edits como entero decimal en texto.",
      +            "pattern": "^(0|[1-9][0-9]{0,18})$",
      +            "type": "string"
      +          },
      +          "presupuestoId": {
      +            "description": "ID del presupuesto consultado.",
      +            "pattern": "^[0-9a-f]{10}$",
      +            "type": "string"
      +          },
      +          "readSharePath": {
      +            "$ref": "#/$defs/__schema0",
      +            "description": "Enlace de lectura del contexto, si existe."
      +          },
      +          "version": {
      +            "description": "Versión documental consultada.",
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "presupuestoId",
      +          "version",
      +          "editsRevision"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "ok",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "context"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "recoverable": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "const": "rejected",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code",
      +      "recoverable"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed3 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "A 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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The 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.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "presupuestoId",
      -  "version"
      -]New value: +[
      +  "presupuestoId",
      +  "version",
      +  "context"
      +]
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations by naming the destructive side effect concretely: it revokes the shared link, while preserving versions, data and originals, so the agent knows exactly what is lost and what survives. It also discloses the first-wins race condition and that repeats for the same owner are safe, which corroborates idempotentHint=true. It stops short of saying what authorization 'cuenta autorizada' requires or what a failed claim returns, keeping it at 4 rather than 5.

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?

Four short sentences, each carrying a distinct fact: what is linked, the first-wins race, what is destroyed versus preserved, and the idempotency guarantee. The core action is front-loaded and there is no filler.

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?

For a destructive mutation with an output schema (so return values need no explanation), the description covers the essential risks: irreversibility of the claim, the one thing it destroys (the shared link), and safe retry. Only the precondition of authorized-account access is left unstated, which is a minor gap given the annotations already flag destructiveness.

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%, so all seven parameters, including context, accountKey and readSharePath, are already documented in the schema. The description reinforces the ID-based lookup and the fact that the open version is carried over ('Conserva versiones'), which maps to the required version parameter, but adds no syntax or format detail beyond the schema. The baseline of 3 applies.

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?

States a specific verb and resource: it links a claimable public budget, identified by ID, to the authorized account. That is clearly distinct from read-oriented siblings such as abrir_presupuesto or consultar_datos_presupuesto, but the description never names an alternative, so the differentiation has to be inferred 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 phrase 'vincula explícitamente' implies the call happens when the user has decided to claim a budget, and 'First-wins: otra cuenta puede haberlo vinculado antes' tells the agent what to expect if another account got there first. However, it gives no explicit when-not guidance or alternative tool (conectar_cuenta, abrir_presupuesto) for the cases where linking is the wrong action; the guidance is 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