fix(docs): added missing google tools descriptions

This commit is contained in:
Waleed Latif
2025-04-22 21:20:37 -07:00
parent 884b7181b3
commit d13eeccbbb
13 changed files with 75 additions and 39 deletions

View File

@@ -59,6 +59,8 @@ Read content from a Google Docs document
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Docs API |
| `documentId` | string | Yes | The ID of the document to read |
#### Output #### Output
@@ -74,6 +76,9 @@ Write or update content in a Google Docs document
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Docs API |
| `documentId` | string | Yes | The ID of the document to write to |
| `content` | string | Yes | The content to write to the document |
#### Output #### Output
@@ -89,6 +94,10 @@ Create a new Google Docs document
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Docs API |
| `title` | string | Yes | The title of the document to create |
| `content` | string | No | The content of the document to create |
| `folderId` | string | No | The ID of the folder to create the document in |
#### Output #### Output

View File

@@ -75,6 +75,11 @@ Upload a file to Google Drive
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Drive API |
| `fileName` | string | Yes | The name of the file to upload |
| `content` | string | Yes | The content of the file to upload |
| `mimeType` | string | No | The MIME type of the file to upload |
| `folderId` | string | No | The ID of the folder to upload the file to |
#### Output #### Output
@@ -98,6 +103,8 @@ Download a file from Google Drive
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Drive API |
| `fileId` | string | Yes | The ID of the file to download |
#### Output #### Output
@@ -121,6 +128,11 @@ List files and folders in Google Drive
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Drive API |
| `folderId` | string | No | The ID of the folder to list files from |
| `query` | string | No | A query to filter the files |
| `pageSize` | number | No | The number of files to return |
| `pageToken` | string | No | The page token to use for pagination |
#### Output #### Output

View File

@@ -62,6 +62,9 @@ Read data from a Google Sheets spreadsheet
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Sheets API |
| `spreadsheetId` | string | Yes | The ID of the spreadsheet to read from |
| `range` | string | No | The range of cells to read from |
#### Output #### Output
@@ -77,6 +80,12 @@ Write data to a Google Sheets spreadsheet
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Sheets API |
| `spreadsheetId` | string | Yes | The ID of the spreadsheet to write to |
| `range` | string | No | The range of cells to write to |
| `values` | array | Yes | The data to write to the spreadsheet |
| `valueInputOption` | string | No | The format of the data to write |
| `includeValuesInResponse` | boolean | No | Whether to include the written values in the response |
#### Output #### Output
@@ -98,6 +107,12 @@ Update data in a Google Sheets spreadsheet
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- | | --------- | ---- | -------- | ----------- |
| `accessToken` | string | Yes | The access token for the Google Sheets API |
| `spreadsheetId` | string | Yes | The ID of the spreadsheet to update |
| `range` | string | No | The range of cells to update |
| `values` | array | Yes | The data to update in the spreadsheet |
| `valueInputOption` | string | No | The format of the data to update |
| `includeValuesInResponse` | boolean | No | Whether to include the updated values in the response |
#### Output #### Output

View File

@@ -15,10 +15,10 @@ export const createTool: ToolConfig<GoogleDocsToolParams, GoogleDocsCreateRespon
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Docs API' },
title: { type: 'string', required: true }, title: { type: 'string', required: true, description: 'The title of the document to create' },
content: { type: 'string', required: false }, content: { type: 'string', required: false, description: 'The content of the document to create' },
folderId: { type: 'string', required: false }, folderId: { type: 'string', required: false, description: 'The ID of the folder to create the document in' },
}, },
request: { request: {
url: () => { url: () => {

View File

@@ -12,8 +12,8 @@ export const readTool: ToolConfig<GoogleDocsToolParams, GoogleDocsReadResponse>
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Docs API' },
documentId: { type: 'string', required: true }, documentId: { type: 'string', required: true, description: 'The ID of the document to read' },
}, },
request: { request: {
url: (params) => { url: (params) => {

View File

@@ -12,9 +12,9 @@ export const writeTool: ToolConfig<GoogleDocsToolParams, GoogleDocsWriteResponse
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Docs API' },
documentId: { type: 'string', required: true }, documentId: { type: 'string', required: true, description: 'The ID of the document to write to' },
content: { type: 'string', required: true }, content: { type: 'string', required: true, description: 'The content to write to the document' },
}, },
request: { request: {
url: (params) => { url: (params) => {

View File

@@ -12,8 +12,8 @@ export const downloadTool: ToolConfig<GoogleDriveToolParams, GoogleDriveDownload
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Drive API' },
fileId: { type: 'string', required: true }, fileId: { type: 'string', required: true, description: 'The ID of the file to download' },
}, },
request: { request: {
url: (params) => `https://www.googleapis.com/drive/v3/files/${params.fileId}?alt=media`, url: (params) => `https://www.googleapis.com/drive/v3/files/${params.fileId}?alt=media`,

View File

@@ -19,9 +19,9 @@ export const exportTool: ToolConfig<
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Drive API' },
fileId: { type: 'string', required: true }, fileId: { type: 'string', required: true, description: 'The ID of the file to export' },
mimeType: { type: 'string', required: false }, mimeType: { type: 'string', required: false, description: 'The MIME type to export the file as' },
}, },
request: { request: {
url: (params) => { url: (params) => {

View File

@@ -12,11 +12,11 @@ export const listTool: ToolConfig<GoogleDriveToolParams, GoogleDriveListResponse
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Drive API' },
folderId: { type: 'string', required: false }, folderId: { type: 'string', required: false, description: 'The ID of the folder to list files from' },
query: { type: 'string', required: false }, query: { type: 'string', required: false, description: 'A query to filter the files' },
pageSize: { type: 'number', required: false }, pageSize: { type: 'number', required: false, description: 'The number of files to return' },
pageToken: { type: 'string', required: false }, pageToken: { type: 'string', required: false, description: 'The page token to use for pagination' },
}, },
request: { request: {
url: (params) => { url: (params) => {

View File

@@ -12,11 +12,11 @@ export const uploadTool: ToolConfig<GoogleDriveToolParams, GoogleDriveUploadResp
additionalScopes: ['https://www.googleapis.com/auth/drive.file'], additionalScopes: ['https://www.googleapis.com/auth/drive.file'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Drive API' },
fileName: { type: 'string', required: true }, fileName: { type: 'string', required: true, description: 'The name of the file to upload' },
content: { type: 'string', required: true }, content: { type: 'string', required: true, description: 'The content of the file to upload' },
mimeType: { type: 'string', required: false }, mimeType: { type: 'string', required: false, description: 'The MIME type of the file to upload' },
folderId: { type: 'string', required: false }, folderId: { type: 'string', required: false, description: 'The ID of the folder to upload the file to' },
}, },
request: { request: {
url: 'https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart', url: 'https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart',

View File

@@ -12,9 +12,9 @@ export const readTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsReadRespon
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'], additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Sheets API' },
spreadsheetId: { type: 'string', required: true }, spreadsheetId: { type: 'string', required: true, description: 'The ID of the spreadsheet to read from' },
range: { type: 'string', required: false }, range: { type: 'string', required: false, description: 'The range of cells to read from' },
}, },
request: { request: {
url: (params) => { url: (params) => {

View File

@@ -12,12 +12,12 @@ export const updateTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsUpdateRe
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'], additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Sheets API' },
spreadsheetId: { type: 'string', required: true }, spreadsheetId: { type: 'string', required: true, description: 'The ID of the spreadsheet to update' },
range: { type: 'string', required: false }, range: { type: 'string', required: false, description: 'The range of cells to update' },
values: { type: 'array', required: true }, values: { type: 'array', required: true, description: 'The data to update in the spreadsheet' },
valueInputOption: { type: 'string', required: false }, valueInputOption: { type: 'string', required: false, description: 'The format of the data to update' },
includeValuesInResponse: { type: 'boolean', required: false }, includeValuesInResponse: { type: 'boolean', required: false, description: 'Whether to include the updated values in the response' },
}, },
request: { request: {
url: (params) => { url: (params) => {

View File

@@ -12,12 +12,12 @@ export const writeTool: ToolConfig<GoogleSheetsToolParams, GoogleSheetsWriteResp
additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'], additionalScopes: ['https://www.googleapis.com/auth/spreadsheets'],
}, },
params: { params: {
accessToken: { type: 'string', required: true }, accessToken: { type: 'string', required: true, description: 'The access token for the Google Sheets API' },
spreadsheetId: { type: 'string', required: true }, spreadsheetId: { type: 'string', required: true, description: 'The ID of the spreadsheet to write to' },
range: { type: 'string', required: false }, range: { type: 'string', required: false, description: 'The range of cells to write to' },
values: { type: 'array', required: true }, values: { type: 'array', required: true, description: 'The data to write to the spreadsheet' },
valueInputOption: { type: 'string', required: false }, valueInputOption: { type: 'string', required: false, description: 'The format of the data to write' },
includeValuesInResponse: { type: 'boolean', required: false }, includeValuesInResponse: { type: 'boolean', required: false, description: 'Whether to include the written values in the response' },
}, },
request: { request: {
url: (params) => { url: (params) => {