quickbase_update_field
Modify field properties in QuickBase tables by updating labels, requirements, or choices. Specify table and field IDs to ensure precise adjustments for improved data management.
Instructions
Update an existing field
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choices | No | New choices for choice fields | |
| fieldId | Yes | Field ID to update | |
| label | No | New field label | |
| required | No | Whether field is required | |
| tableId | Yes | Table ID |
Implementation Reference
- src/quickbase/client.ts:128-133 (handler)Core implementation of the quickbase_update_field tool: sends a POST request to QuickBase API /fields/{fieldId} with tableId and field updates.async updateField(tableId: string, fieldId: number, updates: Partial<QuickBaseField>): Promise<void> { await this.axios.post(`/fields/${fieldId}`, { tableId, ...updates }); }
- src/tools/index.ts:210-224 (schema)Input schema definition for the quickbase_update_field tool, defining parameters like tableId, fieldId, label, required, choices.{ name: 'quickbase_update_field', description: 'Update an existing field', inputSchema: { type: 'object', properties: { tableId: { type: 'string', description: 'Table ID' }, fieldId: { type: 'number', description: 'Field ID to update' }, label: { type: 'string', description: 'New field label' }, required: { type: 'boolean', description: 'Whether field is required' }, choices: { type: 'array', items: { type: 'string' }, description: 'New choices for choice fields' } }, required: ['tableId', 'fieldId'] } },
- src/index.ts:178-194 (registration)MCP server handler registration: switch case that parses args and calls qbClient.updateField, returns success message.case 'quickbase_update_field': if (!args || typeof args !== 'object') { throw new Error('Invalid arguments'); } await this.qbClient.updateField(args.tableId as string, args.fieldId as number, { label: args.label as string, required: args.required as boolean, choices: args.choices as string[] }); return { content: [ { type: 'text', text: `Field ${args.fieldId} updated successfully`, }, ], };