The Speaker of the House of Commons declined a request from the Scottish Parliament's presiding officer to inform him of Westminster legislation which may affect Scotland.

In May, the Scottish Parliament's presiding officer sent a letter to the Speaker John Bercow complaining over the lack of information the institution received from Westminster as to how the official EU referendum period would impact Holyrood as a public body.

A Freedom of Information request by STV revealed the Speaker refused to alert Macintosh in future to instances where legislation passed by Westminster would impact on the Scottish Parliament.

In a letter to Macintosh, Bercow wrote: "I note your suggestion that I should seek to alert the devolved legislatures to the possible consequences for them of legislation passing through the House of Commons. I do not think it is right for me to do that".

The Scottish Parliament had to send official guidance to MSPs warning them not to discuss the referendum in such a manner which would influence voters as the institution was a public body and could not use public funds in such a way.

Every word that is spoken by MSPs in the debating chamber is recorded and reproduced in a daily official report by Holyrood.

Macintosh sent a letter of complaint to Bercow and the Secretary of State for Scotland David Mundell over the situation.

The presiding officer said: "Neither the Scottish parliament nor the Scottish Government was consulted on these matters as the Bill completed its passage. I would therefore be grateful for your assistance in ensuring that the Scottish Parliament is consulted in future on any legislation which has the potential to impact on the Parliament in such a way".

A spokesperson for the Scottish Parliament confirmed to STV the presiding officer had sought future reassurance from the Speaker and Mundell.

The spokesperson said: "Neither the Scottish Parliament nor Scottish Government was consulted during the passage of the Bill, or as it completed its final parliamentary stage.

"Presiding officer Ken Macintosh wrote to both the Speaker and to the Secretary of State for Scotland on May 23, 2016 to point out that the Scottish Parliament had not been consulted on the restrictions now in place.

"Mr Macintosh sought the assistance of both Speaker and Secretary of State in ensuring in future that the Scottish Parliament is consulted on any legislation which may impact in this way.

"Tricia Marwick also raised the same matter with Speaker Bercow in March 2016."

The House of Commons however said it is not "appropriate" for the Speaker to inform the Scottish parliament on the potential ramifications of legislation passed in Westminster.

A spokesperson for the Speaker said: ""As the impartial chair it would not be appropriate for the Speaker to comment on, or interpret the effects of, legislation passing through the House."