Counterspell (p. 258, PHB) says:
On a failed save, the spell dissipates with no effect, and the action, Bonus Action, or Reaction used to cast it is wasted. If that spell was cast with a spell slot, the slot isn’t expended.
My question is: how does counterspell interact when you counter an x/day spell provided by the Spellcasting feature in a monster stat block. Does it get back the daily use, or not?
The lengthy explanation of why I have problems figuring this out follows.
Only some legacy monsters use spellcasting with explicit spell slots currently. For example, the Archmage from the 2014 MM does. P. 9 tells us:
A monster with the Spellcasting class feature has a spellcaster level and spell slots, which it uses to cast its spells of 1st level and higher
and the Archmage's spellcasting entry spell list (p. 342) reads like this:
Cantrips (at will): fire bolt, light, mage hand, prestidigitation, shocking grasp
1st level (3 slots): detect magic, identify, mage armor*, magic missile
2nd level (3 slots): detect thoughts, mirror image, mistry step
[etc]
There has been no version that supercedes this legacy 2014 MM Archmage. So, if you counter his or her spells, they get to keep the slot.
However, for other casters that appear in Mordenkainen Presents: Monsters of the Multiverse, the way their spellcasting looks has been changed, to make it more manageable for the DM. Instead of a list of spells and spell slots, it now looks like this (example from the Conjurer), and we can expect spellcasting monsters in the new 2024 MM to follow this more recent pattern:
At will: dancing lights, mage hand, prestidigitation
2/day each: fireball, mage armor, unseen servant
1/day each: fly, stinking cloud, web
Innate Spellcasting from the 2014 MM (p. 9) that uses the same format says:
Unless noted otherwise, an innate spell of 1st level or higher is always cast at its lowest possible level and can't be cast at a higher level.
and does not say Innate Spellcasting uses slots. However, the feature is not called "Innate Spellcasting", it is still called "Spellcasting", and I was unable to find any header material in the MP:MotM book that says that this is a new version of spellcasting that does not use spell slots.
If you look at the monster stat block, it does not provide spell slots of different levels, and for the 2/day spells fireball is a level 3 spell while mage armor and unseen servant are level 1 spells, for the 1/day spells, fly and stinking cloud are level 3 spells, and web is a level 2 spell. This would imply there is a total of 4 level 1 slots, 1 level 2 slot, and 4 level 3 slots, a slot progression that does not make any sense. Moreover it would be anathema to making work easier for the DM if the idea was that the DM has to figure out the slots by looking up the base spell levels for all the spells. Because of this I think it is probably the idea that these spells are not meant to be cast with spell slots, nevermind what the Spellcasting entry in the 2014 MM tells us, and they just forgot to provide an updated version of the description of the Spellcasting feature.
There also is this snippet from the 2024 PHB, on p. 234 about Casting without Slots:
Special Abilities. Some characters and monsters have special abilities that allow them to cast specific spells without a spell slot. This casting is usually limited in another way, such as being able to cast the spell a limited number of times per day.
But if that is so, then when you Counterspell the spell of a monster using this format, the way Counterspell is written, they do not get back the daily use, as there is no slot, and they get back no slot.
That also would mean that for the time being, PC and leveled NPCs, as well as some NPC spellcasters would have the ability to repeatedly cast their top end spell if you counter it (because they get the slot back) while others NPCs or monsters, using the new format, would not have the ability to repeat their spell, an inconsistency I would find highly dissatisfying (but that may just be the case -- there are lots of rules that are somewhat asymmetric to the benefit of the PCs).