Two Green party politicians, including its candidate for mayor of London at the last election, have criticised police chiefs who recorded their political activities on a secret database that was set up to track campaigners deemed to be "domestic extremists". Neither politician has a criminal record.

They recorded a tweet she sent about possible police tactics at a pro-cycling protest, and details of public meetings she addressed about issues including police violence and Conservative cuts in public spending.

Jones and Ian Driver, who is a local councillor for the Green party in Thanet, Kent, have objected to the monitoring and have signed witness statements to support a lawsuit, to be heard later this year in the supreme court, which seeks to curb the clandestine database.

The Met added that the domestic extremism database is maintained in accordance with a code of practice. It said it had recently deleted a large number of files on individuals after Her Majesty's Inspectorate of Constabulary found that there appeared to be no justification for keeping some records. The Met was unable to say how many elected politicians were on the database.

Jones said she had never been arrested, and all the information on her related to her work as an elected politician. The monitoring was unjustified and not a good use of police resources, she added.

Driver said the demonstrations he helped organised were "all peaceful and lawful", adding that he too has never been arrested and has never been "involved in planning, carrying out or supporting any illegal activities". The councillor, who was elected in 2011, added: "I am very upset and annoyed that I appear to have been spied upon for two years by the police when there was no good reason to do so."

Police recorded that "open source material" indicated that she "has tweeted that she, a Green party mayor candidate" was going to be attending a pro-cycling protest in August 2012 and was "concerned that she may be kettled by the Met".

Two entries record that she spoke at a public meeting and demonstration in May 2009 to object to the deaths of individuals in police custody and police tactics at protests, following the death of Ian Tomlinson.

Other entries record that she spoke at a conference to advance progressive policies in London in 2009, and protests against the arms trade and invasion of Iraq.

The court of appeal ruled that the Metropolitan police had unlawfully logged on the database details of his presence at 55 protests between 2005 and 2009. His habit of sketching and drawing the scenes at demonstrations had been recorded. He too has no criminal record.