add_table_row
Insert a new row into a Glide app table by specifying the app ID, table ID, and column values for the row. Facilitates data management via a secure, type-safe interface.
Instructions
Add a new row to a table in a Glide app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | ID of the Glide app | |
| tableId | Yes | ID of the table | |
| values | Yes | Column values for the new row |
Implementation Reference
- src/index.ts:327-341 (handler)Handler for the 'add_table_row' tool. Extracts appId, tableId, and values from arguments, then makes a POST request to the Glide API endpoint `/apps/{appId}/tables/{tableId}/rows` with the values to add a new row.case 'add_table_row': { const { appId, tableId, values } = request.params.arguments as { appId: string; tableId: string; values: Record<string, any>; }; const result = await this.apiClient.makeRequest( 'POST', `/apps/${appId}/tables/${tableId}/rows`, values ); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }
- src/index.ts:194-216 (registration)Registration of the 'add_table_row' tool in the list of available tools, including its description and input schema definition.{ name: 'add_table_row', description: 'Add a new row to a table in a Glide app', inputSchema: { type: 'object', properties: { appId: { type: 'string', description: 'ID of the Glide app', }, tableId: { type: 'string', description: 'ID of the table', }, values: { type: 'object', description: 'Column values for the new row', additionalProperties: true, }, }, required: ['appId', 'tableId', 'values'], }, },
- src/index.ts:197-215 (schema)Input schema for the 'add_table_row' tool, defining required parameters: appId, tableId, and values object.inputSchema: { type: 'object', properties: { appId: { type: 'string', description: 'ID of the Glide app', }, tableId: { type: 'string', description: 'ID of the table', }, values: { type: 'object', description: 'Column values for the new row', additionalProperties: true, }, }, required: ['appId', 'tableId', 'values'], },