Skip to main content
Glama

Stato Treno

stato_treno

Get real-time train status with current delay, last detection, running condition, and all stops including scheduled/actual times and platforms; origin and date are auto-detected from train number.

Instructions

Restituisce lo andamento e lo stato in tempo reale di un treno: ritardo attuale, ultimo rilevamento con stazione e orario, stato di marcia (regolare, soppresso, parzialmente soppresso), e l'elenco completo di tutte le fermate commerciali con orario programmato, orario effettivo e binari. Se codice_stazione_origine e data_partenza non vengono forniti, vengono determinati automaticamente tramite il numero di treno.

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": {
      "numero_treno": "<numero_treno>"
    },
    "name": "stato_treno"
  }
}

Input Schema

NameRequiredDescriptionDefault
numero_trenoYes
data_partenzaNo
codice_stazione_origineNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "description": "Stato in tempo reale completo di un treno con relative fermate (andamentoTreno).",
      -    "properties": {
      -      "arrivato": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se giunto a destinazione finale"
      -      },
      -      "categoria": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Sigla categoria"
      -      },
      -      "categoriaDescrizione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Descrizione categoria"
      -      },
      -      "circolante": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se in viaggio"
      -      },
      -      "codiceCliente": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice dell'impresa ferroviaria"
      -      },
      -      "compNumeroTreno": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Etichetta completa del treno"
      -      },
      -      "compOraUltimoRilevamento": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario ultimo rilevamento HH:MM"
      -      },
      -      "compOrarioArrivo": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario arrivo HH:MM"
      -      },
      -      "compOrarioPartenza": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario partenza HH:MM"
      -      },
      -      "compRitardo": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Testo del ritardo multilingua (elementi possono essere null)"
      -      },
      -      "compRitardoAndamento": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Descrizione estesa ritardo multilingua (elementi possono essere null)"
      -      },
      -      "dataPartenzaTreno": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Data di partenza (mezzanotte ms)"
      -      },
      -      "dataPartenzaTrenoAsDate": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Data di partenza YYYY-MM-DD"
      -      },
      -      "destinazione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Nome stazione di destinazione"
      -      },
      -      "fermate": {
      -        "description": "Lista ordinata delle fermate commerciali con orari e binari",
      -        "items": {
      -          "description": "Singola fermata lungo l'itinerario del treno.",
      -          "properties": {
      -            "actualFermataType": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Stato fermata: 1=effettuata/regolare, 0=non ancora arrivato, 2=non prevista, 3=soppressa"
      -            },
      -            "arrivoReale": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario reale di arrivo in millisecondi"
      -            },
      -            "arrivo_teorico": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario teorico di arrivo in millisecondi"
      -            },
      -            "binarioEffettivoArrivoDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario effettivo di arrivo"
      -            },
      -            "binarioEffettivoPartenzaDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario effettivo di partenza"
      -            },
      -            "binarioProgrammatoArrivoDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario programmato di arrivo"
      -            },
      -            "binarioProgrammatoPartenzaDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario programmato di partenza"
      -            },
      -            "effettiva": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario effettivo in millisecondi (se rilevato)"
      -            },
      -            "id": {
      -              "description": "Codice stazione (es. S01700)",
      -              "type": "string"
      -            },
      -            "partenzaReale": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario reale di partenza in millisecondi"
      -            },
      -            "partenza_teorica": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario teorico di partenza in millisecondi"
      -            },
      -            "programmata": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario programmato in millisecondi"
      -            },
      -            "progressivo": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Numero progressivo fermata nell'itinerario"
      -            },
      -            "ritardo": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Ritardo complessivo alla fermata in minuti"
      -            },
      -            "ritardoArrivo": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Ritardo in arrivo in minuti"
      -            },
      -            "ritardoPartenza": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Ritardo in partenza in minuti"
      -            },
      -            "stazione": {
      -              "description": "Nome della stazione",
      -              "type": "string"
      -            },
      -            "tipoFermata": {
      -              "description": "'P' per Partenza/Origine, 'F' per Fermata intermedia, 'A' per Arrivo/Destinazione",
      -              "type": "string"
      -            },
      -            "visualizzaPrevista": {
      -              "anyOf": [
      -                {
      -                  "type": "boolean"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Flag visualizzazione orario previsto"
      -            }
      -          },
      -          "required": [
      -            "stazione",
      -            "id",
      -            "tipoFermata"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "fermateSoppresse": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Eventuali fermate soppresse"
      -      },
      -      "idDestinazione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice stazione di destinazione"
      -      },
      -      "idOrigine": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice stazione di origine"
      -      },
      -      "impresaFerroviaria": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Nome dell'impresa ferroviaria"
      -      },
      -      "inStazione": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se fermo in stazione"
      -      },
      -      "nonPartito": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se non ancora partito"
      -      },
      -      "numeroTreno": {
      -        "description": "Numero del treno",
      -        "type": "integer"
      -      },
      -      "oraUltimoRilevamento": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario ultimo rilevamento in ms"
      -      },
      -      "orarioArrivo": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario programmato di arrivo a destinazione"
      -      },
      -      "orarioPartenza": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario programmato di partenza dall'origine"
      -      },
      -      "origine": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Nome stazione di origine"
      -      },
      -      "provvedimento": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "0=regolare, 1=soppresso, 2=parzialmente soppresso, 3=deviato"
      -      },
      -      "riprogrammazione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Stato riprogrammazione"
      -      },
      -      "ritardo": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Ritardo attuale in minuti"
      -      },
      -      "statoDescrizione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Descrizione testuale dello stato di circolazione"
      -      },
      -      "stazioneUltimoRilevamento": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Stazione/posto di movimento dell'ultimo rilevamento"
      -      },
      -      "subTitle": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Sottotitolo o note su soppressioni parziali"
      -      },
      -      "tipoTreno": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice tipo treno (es. PG regolare, ST soppresso, PP/SI/SF)"
      -      }
      -    },
      -    "required": [
      -      "numeroTreno"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Stato in tempo reale completo di un treno con relative fermate (andamentoTreno).",
      +    "properties": {
      +      "anormalita": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Anormalita' di circolazione segnalate (vuoto se nessuna)"
      +      },
      +      "arrivato": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se giunto a destinazione finale"
      +      },
      +      "cambiNumero": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Cambi di numero lungo la corsa (vuoto se nessuno)"
      +      },
      +      "categoria": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Sigla categoria"
      +      },
      +      "categoriaDescrizione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Descrizione categoria"
      +      },
      +      "circolante": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se in viaggio"
      +      },
      +      "codiceCliente": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice dell'impresa ferroviaria"
      +      },
      +      "compNumeroTreno": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Etichetta completa del treno"
      +      },
      +      "compOraUltimoRilevamento": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario ultimo rilevamento HH:MM"
      +      },
      +      "compOrarioArrivo": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario arrivo HH:MM"
      +      },
      +      "compOrarioPartenza": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario partenza HH:MM"
      +      },
      +      "compRitardo": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Testo del ritardo multilingua (elementi possono essere null)"
      +      },
      +      "compRitardoAndamento": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Descrizione estesa ritardo multilingua (elementi possono essere null)"
      +      },
      +      "dataPartenzaTreno": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Data di partenza (mezzanotte ms)"
      +      },
      +      "dataPartenzaTrenoAsDate": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Data di partenza YYYY-MM-DD"
      +      },
      +      "destinazione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Nome stazione di destinazione"
      +      },
      +      "fermate": {
      +        "description": "Lista ordinata delle fermate commerciali con orari e binari",
      +        "items": {
      +          "description": "Singola fermata lungo l'itinerario del treno.",
      +          "properties": {
      +            "actualFermataType": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Stato fermata: 1=effettuata/regolare, 0=non ancora arrivato, 2=non prevista, 3=soppressa"
      +            },
      +            "arrivoReale": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario reale di arrivo in millisecondi"
      +            },
      +            "arrivo_teorico": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario teorico di arrivo in millisecondi"
      +            },
      +            "binarioEffettivoArrivoDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario effettivo di arrivo"
      +            },
      +            "binarioEffettivoPartenzaDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario effettivo di partenza"
      +            },
      +            "binarioProgrammatoArrivoDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario programmato di arrivo"
      +            },
      +            "binarioProgrammatoPartenzaDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario programmato di partenza"
      +            },
      +            "effettiva": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario effettivo in millisecondi (se rilevato)"
      +            },
      +            "id": {
      +              "description": "Codice stazione (es. S01700)",
      +              "type": "string"
      +            },
      +            "partenzaReale": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario reale di partenza in millisecondi"
      +            },
      +            "partenza_teorica": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario teorico di partenza in millisecondi"
      +            },
      +            "programmata": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario programmato in millisecondi"
      +            },
      +            "progressivo": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Numero progressivo fermata nell'itinerario"
      +            },
      +            "ritardo": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Ritardo complessivo alla fermata in minuti"
      +            },
      +            "ritardoArrivo": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Ritardo in arrivo in minuti"
      +            },
      +            "ritardoPartenza": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Ritardo in partenza in minuti"
      +            },
      +            "stazione": {
      +              "description": "Nome della stazione",
      +              "type": "string"
      +            },
      +            "tipoFermata": {
      +              "description": "'P' per Partenza/Origine, 'F' per Fermata intermedia, 'A' per Arrivo/Destinazione",
      +              "type": "string"
      +            },
      +            "visualizzaPrevista": {
      +              "anyOf": [
      +                {
      +                  "type": "boolean"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Flag visualizzazione orario previsto"
      +            }
      +          },
      +          "required": [
      +            "stazione",
      +            "id",
      +            "tipoFermata"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "fermateSoppresse": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Eventuali fermate soppresse"
      +      },
      +      "idDestinazione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice stazione di destinazione"
      +      },
      +      "idOrigine": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice stazione di origine"
      +      },
      +      "impresaFerroviaria": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Nome dell'impresa ferroviaria"
      +      },
      +      "inStazione": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se fermo in stazione"
      +      },
      +      "nonPartito": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se non ancora partito"
      +      },
      +      "numeroTreno": {
      +        "description": "Numero del treno",
      +        "type": "integer"
      +      },
      +      "oraUltimoRilevamento": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario ultimo rilevamento in ms"
      +      },
      +      "orarioArrivo": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario programmato di arrivo a destinazione"
      +      },
      +      "orarioPartenza": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario programmato di partenza dall'origine"
      +      },
      +      "origine": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Nome stazione di origine"
      +      },
      +      "provvedimenti": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Provvedimenti attivi sulla corsa (vuoto se nessuno)"
      +      },
      +      "provvedimento": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "0=regolare, 1=soppresso, 2=parzialmente soppresso, 3=deviato"
      +      },
      +      "riprogrammazione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Stato riprogrammazione"
      +      },
      +      "ritardo": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Ritardo attuale in minuti"
      +      },
      +      "statoDescrizione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Descrizione testuale dello stato di circolazione"
      +      },
      +      "stazioneUltimoRilevamento": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Stazione/posto di movimento dell'ultimo rilevamento"
      +      },
      +      "subTitle": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Sottotitolo o note su soppressioni parziali"
      +      },
      +      "tipoTreno": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice tipo treno (es. PG regolare, ST soppresso, PP/SI/SF)"
      +      }
      +    },
      +    "required": [
      +      "numeroTreno"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changedv0.2.0
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "description": "Stato in tempo reale completo di un treno con relative fermate (andamentoTreno).",
      -    "properties": {
      -      "arrivato": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se giunto a destinazione finale"
      -      },
      -      "categoria": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Sigla categoria"
      -      },
      -      "categoriaDescrizione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Descrizione categoria"
      -      },
      -      "circolante": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se in viaggio"
      -      },
      -      "codiceCliente": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice dell'impresa ferroviaria"
      -      },
      -      "compNumeroTreno": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Etichetta completa del treno"
      -      },
      -      "compOraUltimoRilevamento": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario ultimo rilevamento HH:MM"
      -      },
      -      "compOrarioArrivo": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario arrivo HH:MM"
      -      },
      -      "compOrarioPartenza": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario partenza HH:MM"
      -      },
      -      "compRitardo": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Testo del ritardo multilingua"
      -      },
      -      "compRitardoAndamento": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Descrizione estesa ritardo multilingua"
      -      },
      -      "dataPartenzaTreno": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Data di partenza (mezzanotte ms)"
      -      },
      -      "dataPartenzaTrenoAsDate": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Data di partenza YYYY-MM-DD"
      -      },
      -      "destinazione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Nome stazione di destinazione"
      -      },
      -      "fermate": {
      -        "description": "Lista ordinata delle fermate commerciali con orari e binari",
      -        "items": {
      -          "description": "Singola fermata lungo l'itinerario del treno.",
      -          "properties": {
      -            "actualFermataType": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Stato fermata: 1=effettuata/regolare, 0=non ancora arrivato, 2=non prevista, 3=soppressa"
      -            },
      -            "arrivoReale": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario reale di arrivo in millisecondi"
      -            },
      -            "arrivo_teorico": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario teorico di arrivo in millisecondi"
      -            },
      -            "binarioEffettivoArrivoDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario effettivo di arrivo"
      -            },
      -            "binarioEffettivoPartenzaDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario effettivo di partenza"
      -            },
      -            "binarioProgrammatoArrivoDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario programmato di arrivo"
      -            },
      -            "binarioProgrammatoPartenzaDescrizione": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Binario programmato di partenza"
      -            },
      -            "effettiva": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario effettivo in millisecondi (se rilevato)"
      -            },
      -            "id": {
      -              "description": "Codice stazione (es. S01700)",
      -              "type": "string"
      -            },
      -            "partenzaReale": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario reale di partenza in millisecondi"
      -            },
      -            "partenza_teorica": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario teorico di partenza in millisecondi"
      -            },
      -            "programmata": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Orario programmato in millisecondi"
      -            },
      -            "progressivo": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Numero progressivo fermata nell'itinerario"
      -            },
      -            "ritardo": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Ritardo complessivo alla fermata in minuti"
      -            },
      -            "ritardoArrivo": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Ritardo in arrivo in minuti"
      -            },
      -            "ritardoPartenza": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Ritardo in partenza in minuti"
      -            },
      -            "stazione": {
      -              "description": "Nome della stazione",
      -              "type": "string"
      -            },
      -            "tipoFermata": {
      -              "description": "'P' per Partenza/Origine, 'F' per Fermata intermedia, 'A' per Arrivo/Destinazione",
      -              "type": "string"
      -            },
      -            "visualizzaPrevista": {
      -              "anyOf": [
      -                {
      -                  "type": "boolean"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "default": null,
      -              "description": "Flag visualizzazione orario previsto"
      -            }
      -          },
      -          "required": [
      -            "stazione",
      -            "id",
      -            "tipoFermata"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "fermateSoppresse": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Eventuali fermate soppresse"
      -      },
      -      "idDestinazione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice stazione di destinazione"
      -      },
      -      "idOrigine": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice stazione di origine"
      -      },
      -      "impresaFerroviaria": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Nome dell'impresa ferroviaria"
      -      },
      -      "inStazione": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se fermo in stazione"
      -      },
      -      "nonPartito": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "True se non ancora partito"
      -      },
      -      "numeroTreno": {
      -        "description": "Numero del treno",
      -        "type": "integer"
      -      },
      -      "oraUltimoRilevamento": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario ultimo rilevamento in ms"
      -      },
      -      "orarioArrivo": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario programmato di arrivo a destinazione"
      -      },
      -      "orarioPartenza": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Orario programmato di partenza dall'origine"
      -      },
      -      "origine": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Nome stazione di origine"
      -      },
      -      "provvedimento": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "0=regolare, 1=soppresso, 2=parzialmente soppresso, 3=deviato"
      -      },
      -      "riprogrammazione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Stato riprogrammazione"
      -      },
      -      "ritardo": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Ritardo attuale in minuti"
      -      },
      -      "statoDescrizione": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Descrizione testuale dello stato di circolazione"
      -      },
      -      "stazioneUltimoRilevamento": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Stazione/posto di movimento dell'ultimo rilevamento"
      -      },
      -      "subTitle": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Sottotitolo o note su soppressioni parziali"
      -      },
      -      "tipoTreno": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Codice tipo treno (es. PG regolare, ST soppresso, PP/SI/SF)"
      -      }
      -    },
      -    "required": [
      -      "numeroTreno"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Stato in tempo reale completo di un treno con relative fermate (andamentoTreno).",
      +    "properties": {
      +      "arrivato": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se giunto a destinazione finale"
      +      },
      +      "categoria": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Sigla categoria"
      +      },
      +      "categoriaDescrizione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Descrizione categoria"
      +      },
      +      "circolante": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se in viaggio"
      +      },
      +      "codiceCliente": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice dell'impresa ferroviaria"
      +      },
      +      "compNumeroTreno": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Etichetta completa del treno"
      +      },
      +      "compOraUltimoRilevamento": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario ultimo rilevamento HH:MM"
      +      },
      +      "compOrarioArrivo": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario arrivo HH:MM"
      +      },
      +      "compOrarioPartenza": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario partenza HH:MM"
      +      },
      +      "compRitardo": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Testo del ritardo multilingua (elementi possono essere null)"
      +      },
      +      "compRitardoAndamento": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Descrizione estesa ritardo multilingua (elementi possono essere null)"
      +      },
      +      "dataPartenzaTreno": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Data di partenza (mezzanotte ms)"
      +      },
      +      "dataPartenzaTrenoAsDate": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Data di partenza YYYY-MM-DD"
      +      },
      +      "destinazione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Nome stazione di destinazione"
      +      },
      +      "fermate": {
      +        "description": "Lista ordinata delle fermate commerciali con orari e binari",
      +        "items": {
      +          "description": "Singola fermata lungo l'itinerario del treno.",
      +          "properties": {
      +            "actualFermataType": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Stato fermata: 1=effettuata/regolare, 0=non ancora arrivato, 2=non prevista, 3=soppressa"
      +            },
      +            "arrivoReale": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario reale di arrivo in millisecondi"
      +            },
      +            "arrivo_teorico": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario teorico di arrivo in millisecondi"
      +            },
      +            "binarioEffettivoArrivoDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario effettivo di arrivo"
      +            },
      +            "binarioEffettivoPartenzaDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario effettivo di partenza"
      +            },
      +            "binarioProgrammatoArrivoDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario programmato di arrivo"
      +            },
      +            "binarioProgrammatoPartenzaDescrizione": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Binario programmato di partenza"
      +            },
      +            "effettiva": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario effettivo in millisecondi (se rilevato)"
      +            },
      +            "id": {
      +              "description": "Codice stazione (es. S01700)",
      +              "type": "string"
      +            },
      +            "partenzaReale": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario reale di partenza in millisecondi"
      +            },
      +            "partenza_teorica": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario teorico di partenza in millisecondi"
      +            },
      +            "programmata": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Orario programmato in millisecondi"
      +            },
      +            "progressivo": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Numero progressivo fermata nell'itinerario"
      +            },
      +            "ritardo": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Ritardo complessivo alla fermata in minuti"
      +            },
      +            "ritardoArrivo": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Ritardo in arrivo in minuti"
      +            },
      +            "ritardoPartenza": {
      +              "anyOf": [
      +                {
      +                  "type": "integer"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Ritardo in partenza in minuti"
      +            },
      +            "stazione": {
      +              "description": "Nome della stazione",
      +              "type": "string"
      +            },
      +            "tipoFermata": {
      +              "description": "'P' per Partenza/Origine, 'F' per Fermata intermedia, 'A' per Arrivo/Destinazione",
      +              "type": "string"
      +            },
      +            "visualizzaPrevista": {
      +              "anyOf": [
      +                {
      +                  "type": "boolean"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "default": null,
      +              "description": "Flag visualizzazione orario previsto"
      +            }
      +          },
      +          "required": [
      +            "stazione",
      +            "id",
      +            "tipoFermata"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "fermateSoppresse": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Eventuali fermate soppresse"
      +      },
      +      "idDestinazione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice stazione di destinazione"
      +      },
      +      "idOrigine": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice stazione di origine"
      +      },
      +      "impresaFerroviaria": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Nome dell'impresa ferroviaria"
      +      },
      +      "inStazione": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se fermo in stazione"
      +      },
      +      "nonPartito": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True se non ancora partito"
      +      },
      +      "numeroTreno": {
      +        "description": "Numero del treno",
      +        "type": "integer"
      +      },
      +      "oraUltimoRilevamento": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario ultimo rilevamento in ms"
      +      },
      +      "orarioArrivo": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario programmato di arrivo a destinazione"
      +      },
      +      "orarioPartenza": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Orario programmato di partenza dall'origine"
      +      },
      +      "origine": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Nome stazione di origine"
      +      },
      +      "provvedimento": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "0=regolare, 1=soppresso, 2=parzialmente soppresso, 3=deviato"
      +      },
      +      "riprogrammazione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Stato riprogrammazione"
      +      },
      +      "ritardo": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Ritardo attuale in minuti"
      +      },
      +      "statoDescrizione": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Descrizione testuale dello stato di circolazione"
      +      },
      +      "stazioneUltimoRilevamento": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Stazione/posto di movimento dell'ultimo rilevamento"
      +      },
      +      "subTitle": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Sottotitolo o note su soppressioni parziali"
      +      },
      +      "tipoTreno": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Codice tipo treno (es. PG regolare, ST soppresso, PP/SI/SF)"
      +      }
      +    },
      +    "required": [
      +      "numeroTreno"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations present, the description carries the full behavioral burden, and it does disclose non-obvious behavior: the automatic resolution of optional parameters from the train number, plus the enumerated response contents (delay, last detection, running status categories, stop-by-stop times and platforms). It says nothing about failure modes for invalid train numbers or data freshness limits, which keeps it short of a 5.

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?

Two sentences, front-loaded with the returned data and followed by the parameter fallback rule; the enumerated fields are dense but each earns its place. Minor verbosity in the triple status listing, but 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?

An output schema exists, so return values need not be explained at length, and the description still summarizes them usefully for selection. Combined with the auto-resolution rule, an agent has enough to invoke it correctly; only error/edge-case behavior for bad train numbers is missing.

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 0%, so the description must compensate. It explains the role and fallback of codice_stazione_origine and data_partenza, but gives no format detail (e.g. expected date encoding for the integer data_partenza or the station-code convention) and does not characterize numero_treno beyond implying it drives auto-resolution.

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?

The description names a specific verb and resource ('Restituisce lo andamento e lo stato in tempo reale di un treno') and enumerates the returned data: delay, last detection, running status, and the full stop list. It is unambiguous what the tool does, though it never names a sibling such as itinerario_treno_canvas or cerca_numero_treno to draw the boundary explicitly.

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 only guidance is conditional on parameters: origin station code and departure date are auto-derived from the train number when omitted. There is no statement of when to prefer this tool over route or search siblings, and no prerequisite guidance such as obtaining a valid train number first; usage is implied rather than taught.

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