Getting one is the first hurdle. In the GameCube era you could trade Jirachi over from Pokémon Colosseum, and later players used an Action Replay, which is a cheat device rather than an in-game feature.
As for what it does: Jirachi is the Wish Maker, and its Pokédex flavour is built around granting wishes. That's lore, not a mechanic. There is no wishing tag, no white rock, and no in-game wish system, which is a myth that gets repeated endlessly.
Practically, you use it like any other mythical Pokémon: battle with it, level it, and trade it, since event-only creatures are valuable to collectors. Its signature move, Doom Desire, is the closest thing to a wish the game actually implements.