delete_device_custom_field
Deletes a device custom field configuration by removing its definition from the organization. Provide the custom field ID to perform the removal.
Instructions
Delete a device custom field configuration. Removes a custom field definition from the organization.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customFieldId": "<customFieldId>"
},
"name": "delete_device_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customFieldId | Yes | The ID of the custom field to delete. Make sure user wants to delete a device custom field and not an identity custom field |
Implementation Reference
- The main handler function that executes the delete_device_custom_field tool logic. It calls the Admina API DELETE /fields/custom/{customFieldId} endpoint.
export async function deleteDeviceCustomField(params: DeleteDeviceCustomFieldParams) { const client = getClient(); return client.makeDeleteApiCall(`/fields/custom/${params.customFieldId}`); } - Zod schema defining the input for delete_device_custom_field. Expects a required numeric 'customFieldId'.
export const DeleteDeviceCustomFieldSchema = z.object({ customFieldId: z .number() .describe( "The ID of the custom field to delete. Make sure user wants to delete a device custom field and not an identity custom field", ), });