Skip to main content
Glama

Próceres · escritos judiciales de España: papeleta, demanda y recursos

Simulación de la segunda oportunidad: qué deudas se exoneran y cómo sería el plan de pagos o la liquidación

simular_segunda_oportunidad
Read-only

Simula la exoneración del pasivo insatisfecho con el texto refundido de la Ley Concursal, con el mismo motor que la pantalla «Segunda oportunidad» de la web de deudas: si el deudor puede pedirla (arts. 486 a 488), qué parte de cada deuda se exonera y cuál no —con el tope de Hacienda y de la Seguridad Social y la pensión de alimentos, que nunca se exonera— (art. 489), las dos vías (plan de pagos, arts. 495 a 500; liquidación o concurso sin masa, arts. 37 bis y 501 a 502) con lo que pasa con la vivienda, los efectos (arts. 490 a 492) y la revocación (art. 493). Cada afirmación lleva su artículo; lo que la ley deja al juez se dice así. No es un escrito: es una simulación orientativa. No pide ni devuelve datos personales: el nombre, el DNI, el domicilio y el contacto NO están entre sus campos (el escrito los deja como huecos entre corchetes para que los rellene quien lo presenta). No le pidas esos datos y no los escribas en la llamada.

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": {
      "deudas": "<deudas>",
      "ingresosMensuales": "<ingresosMensuales>"
    },
    "name": "simular_segunda_oportunidad"
  }
}

Input Schema

NameRequiredDescriptionDefault
deudasYesCada deuda, con su clase y su importe pendiente. Varias de la misma clase pública comparten el tope del art. 489.1.5.º.
condenaNoCondena firme en los últimos diez años por los delitos del art. 487.1.1.º TRLC: «no»; «si»; o «saldado» si ya se pagó o se extinguió la responsabilidad (la salvedad del art. 487.1 TRLC).
temeridadNoSi se dio información falsa o el endeudamiento fue temerario o negligente (lo aprecia el juez).
empresarioNoSi hay actividad empresarial o profesional (autónomo).
bienesLibresNoEl valor de lo embargable libre de cargas que no es la vivienda: cuentas, coche, otros bienes.
viviendaValorNoSi la vivienda habitual es propia: lo que vale. Sin este campo, no hay vivienda propia.
personaAfectadaNoDeclarado persona afectada en el concurso culpable de un tercero en diez años: «no»; «si»; o «saldado» si ya se pagó o se extinguió la responsabilidad (la salvedad del art. 487.1 TRLC).
sancionMuyGraveNoSanción muy grave tributaria, de Seguridad Social o del orden social, o derivación de responsabilidad, en diez años (art. 487.1.2.º): «no»; «si»; o «saldado» si ya se pagó o se extinguió la responsabilidad (la salvedad del art. 487.1 TRLC).
cargasFamiliaresNoSi hay familiares a cargo (rebaja lo embargable, art. 607 LEC).
concursoCulpableNoConcurso anterior declarado culpable: «no», «si», «soloPorRetraso» (solo por pedirlo tarde) o «sinFirmeza» (la calificación no es firme).
viviendaHipotecaNoLo que queda de hipoteca sobre la vivienda habitual.
conservarViviendaNoSi se quiere conservar la vivienda habitual.
ingresosMensualesYesLo que se cobra cada mes, neto.
sancionGravePagadaNoSi esa sanción grave está pagada.
exoneracionAnteriorNoSi ya se obtuvo una exoneración: por qué vía. Sin este campo, no la hubo.
sancionGraveImporteNoSanción tributaria grave en los últimos diez años: su importe; 0 si no la hubo.
procedimientoEnCursoNoSi hay en curso un procedimiento penal o administrativo de los del art. 487.1.1.º o 2.º.
aniosExoneracionAnteriorNoHace cuántos años fue esa exoneración anterior.
cuotaNoExonerableMensualNoLo que se paga al mes de deudas que no se exoneran: la hipoteca que se conserva, los alimentos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive and closed-world, so the safety profile is covered; the description earns credit by adding behaviour they do not: every claim is traceable to a specific article, what the law leaves to judicial discretion is flagged as such, and the output is stated to be orientative rather than a legal document. The explicit data-handling contract (no personal data requested, returned, or to be typed into the call) is a genuinely useful behavioural rule. It stops short of describing the response shape or how the per-debt breakdown is presented.

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 verb and resource, then deliberately condensed with article citations that let the reader judge depth at a glance. The middle section is one very long run-on clause, and the personal-data warning is stated twice («No pide ni devuelve datos personales» then «No le pidas esos datos»), which is mild redundancy in an otherwise tight description.

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 19-parameter tool with no output schema, the description does the necessary work: it says what the simulation returns (eligibility, exoneration per debt, both routes, treatment of the home, effects, revocation) so the agent can set expectations. The absence of any output-shape or format statement is the remaining gap, though it is modest for a read-only calculator.

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 every one of the 19 parameters, including the debt-class enum and the art. 489 cap aggregation, is already documented in the schema. The description adds only the substantive rule that alimony is never exonerated and that Hacienda/Social Security debts are capped, which indirectly informs how to classify debts. Baseline 3 applies since the schema does the heavy lifting.

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 object: simulate the exoneration of unsatisfied liabilities under the TRLC, and enumerates exactly what the simulation covers (eligibility arts. 486-488, per-debt exoneration art. 489, the two routes, effects and revocation). The sentence «No es un escrito: es una simulación orientativa» explicitly separates it from the escrito_* siblings that dominate the toolset.

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 scope of the simulation implies when to use it, and the «no es un escrito» line tells the agent not to use it to draft a filing, but no alternative tool is ever named for the case where the user actually wants the escrito or the carta_deudas. There are also no stated prerequisites (e.g. what happens if the debtor is not insolvent), so usage is inferred rather than instructed.

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