Commit 2d5d333
authored
refactor: remove
The `ParseParams` Tool interface is only passing the tool's parameter
into a generic `parameters.ParseParams()` helper. Instead of keeping it
as a tool interface, we add a `GetParameters()` method
(googleapis#2374) to the tool
interface and call it directly from the API handlers. This way we keep
the parameter parsing logic independent from the tools.ParseParams() from Tool interface (googleapis#2375)1 parent 252fc30 commit 2d5d333
193 files changed
Lines changed: 14 additions & 776 deletions
File tree
- internal
- server
- mcp
- v20241105
- v20250326
- v20250618
- v20251125
- tools
- alloydbainl
- alloydb
- alloydbcreatecluster
- alloydbcreateinstance
- alloydbcreateuser
- alloydbgetcluster
- alloydbgetinstance
- alloydbgetuser
- alloydblistclusters
- alloydblistinstances
- alloydblistusers
- alloydbwaitforoperation
- bigquery
- bigqueryanalyzecontribution
- bigqueryconversationalanalytics
- bigqueryexecutesql
- bigqueryforecast
- bigquerygetdatasetinfo
- bigquerygettableinfo
- bigquerylistdatasetids
- bigquerylisttableids
- bigquerysearchcatalog
- bigquerysql
- bigtable
- cassandra/cassandracql
- clickhouse
- clickhouseexecutesql
- clickhouselistdatabases
- clickhouselisttables
- clickhousesql
- cloudgda
- cloudhealthcare
- cloudhealthcarefhirfetchpage
- cloudhealthcarefhirpatienteverything
- cloudhealthcarefhirpatientsearch
- cloudhealthcaregetdataset
- cloudhealthcaregetdicomstoremetrics
- cloudhealthcaregetdicomstore
- cloudhealthcaregetfhirresource
- cloudhealthcaregetfhirstoremetrics
- cloudhealthcaregetfhirstore
- cloudhealthcarelistdicomstores
- cloudhealthcarelistfhirstores
- cloudhealthcareretrieverendereddicominstance
- cloudhealthcaresearchdicominstances
- cloudhealthcaresearchdicomseries
- cloudhealthcaresearchdicomstudies
- cloudmonitoring
- cloudsqlmssql/cloudsqlmssqlcreateinstance
- cloudsqlmysql/cloudsqlmysqlcreateinstance
- cloudsqlpg
- cloudsqlpgcreateinstances
- cloudsqlpgupgradeprecheck
- cloudsql
- cloudsqlcloneinstance
- cloudsqlcreatebackup
- cloudsqlcreatedatabase
- cloudsqlcreateusers
- cloudsqlgetinstances
- cloudsqllistdatabases
- cloudsqllistinstances
- cloudsqlrestorebackup
- cloudsqlwaitforoperation
- couchbase
- dataform/dataformcompilelocal
- dataplex
- dataplexlookupentry
- dataplexsearchaspecttypes
- dataplexsearchentries
- dgraph
- elasticsearch/elasticsearchesql
- firebird
- firebirdexecutesql
- firebirdsql
- firestore
- firestoreadddocuments
- firestoredeletedocuments
- firestoregetdocuments
- firestoregetrules
- firestorelistcollections
- firestorequerycollection
- firestorequery
- firestoreupdatedocument
- firestorevalidaterules
- http
- looker
- lookeradddashboardelement
- lookeradddashboardfilter
- lookerconversationalanalytics
- lookercreateprojectfile
- lookerdeleteprojectfile
- lookerdevmode
- lookergenerateembedurl
- lookergetconnectiondatabases
- lookergetconnectionschemas
- lookergetconnections
- lookergetconnectiontablecolumns
- lookergetconnectiontables
- lookergetdashboards
- lookergetdimensions
- lookergetexplores
- lookergetfilters
- lookergetlooks
- lookergetmeasures
- lookergetmodels
- lookergetparameters
- lookergetprojectfiles
- lookergetprojectfile
- lookergetprojects
- lookerhealthanalyze
- lookerhealthpulse
- lookerhealthvacuum
- lookermakedashboard
- lookermakelook
- lookerquerysql
- lookerqueryurl
- lookerquery
- lookerrundashboard
- lookerrunlook
- lookerupdateprojectfile
- mindsdb
- mindsdbexecutesql
- mindsdbsql
- mongodb
- mongodbaggregate
- mongodbdeletemany
- mongodbdeleteone
- mongodbfindone
- mongodbfind
- mongodbinsertmany
- mongodbinsertone
- mongodbupdatemany
- mongodbupdateone
- mssql
- mssqlexecutesql
- mssqllisttables
- mssqlsql
- mysql
- mysqlexecutesql
- mysqlgetqueryplan
- mysqllistactivequeries
- mysqllisttablefragmentation
- mysqllisttablesmissinguniqueindexes
- mysqllisttables
- mysqlsql
- neo4j
- neo4jcypher
- neo4jexecutecypher
- neo4jschema
- oceanbase
- oceanbaseexecutesql
- oceanbasesql
- oracle
- oracleexecutesql
- oraclesql
- postgres
- postgresdatabaseoverview
- postgresexecutesql
- postgresgetcolumncardinality
- postgreslistactivequeries
- postgreslistavailableextensions
- postgreslistdatabasestats
- postgreslistindexes
- postgreslistinstalledextensions
- postgreslistlocks
- postgreslistpgsettings
- postgreslistpublicationtables
- postgreslistquerystats
- postgreslistroles
- postgreslistschemas
- postgreslistsequences
- postgresliststoredprocedure
- postgreslisttablespaces
- postgreslisttablestats
- postgreslisttables
- postgreslisttriggers
- postgreslistviews
- postgreslongrunningtransactions
- postgresreplicationstats
- postgressql
- redis
- serverlessspark
- createbatch
- serverlesssparkcancelbatch
- serverlesssparkgetbatch
- serverlesssparklistbatches
- singlestore
- singlestoreexecutesql
- singlestoresql
- snowflake
- snowflakeexecutesql
- snowflakesql
- spanner
- spannerexecutesql
- spannerlistgraphs
- spannerlisttables
- spannersql
- sqlite
- sqliteexecutesql
- sqlitesql
- tidb
- tidbexecutesql
- tidbsql
- trino
- trinoexecutesql
- trinosql
- utility/wait
- valkey
- yugabytedbsql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | 165 | | |
171 | 166 | | |
172 | 167 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 171 | | |
177 | 172 | | |
178 | 173 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | 176 | | |
182 | 177 | | |
183 | 178 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 151 | | |
157 | 152 | | |
158 | 153 | | |
| |||
0 commit comments